mirror of
https://github.com/kiwix/java-libkiwix.git
synced 2025-09-09 15:19:32 -04:00
Merge pull request #68 from kiwix/adapt_libkiwix_991
This commit is contained in:
commit
38373f9ad9
@ -23,8 +23,8 @@ ext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Replace these versions with the latest available versions of libkiwix and libzim
|
// Replace these versions with the latest available versions of libkiwix and libzim
|
||||||
ext.libkiwix_version = "12.1.0"
|
ext.libkiwix_version = "13.0.0"
|
||||||
ext.libzim_version = "8.2.1"
|
ext.libzim_version = "9.0.0"
|
||||||
|
|
||||||
apply from: 'publish.gradle'
|
apply from: 'publish.gradle'
|
||||||
android {
|
android {
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
METHOD(void, setNativeServer, jobject jLibrary)
|
METHOD(void, setNativeServer, jobject jLibrary)
|
||||||
{
|
{
|
||||||
auto library = getPtr<kiwix::Library>(env, jLibrary);
|
auto library = getPtr<kiwix::Library>(env, jLibrary);
|
||||||
SET_PTR(std::make_shared<NATIVE_TYPE>(library.get()));
|
SET_PTR(std::make_shared<NATIVE_TYPE>(library));
|
||||||
} catch (std::exception& e) {
|
} catch (std::exception& e) {
|
||||||
throwException(env, "java/lang/Exception", "Error creating the server");
|
throwException(env, "java/lang/Exception", "Error creating the server");
|
||||||
} CATCH_EXCEPTION()
|
} CATCH_EXCEPTION()
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
/* Kiwix Reader JNI functions */
|
/* Kiwix Reader JNI functions */
|
||||||
METHOD0(void, setNativeHandler)
|
METHOD0(void, setNativeHandler)
|
||||||
{
|
{
|
||||||
SET_PTR(std::make_shared<NATIVE_TYPE>());
|
SET_PTR(NATIVE_TYPE::create());
|
||||||
} CATCH_EXCEPTION()
|
} CATCH_EXCEPTION()
|
||||||
|
|
||||||
DISPOSE
|
DISPOSE
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
METHOD(void, allocate, jobject libraryObj)
|
METHOD(void, allocate, jobject libraryObj)
|
||||||
{
|
{
|
||||||
auto lib = getPtr<kiwix::Library>(env, libraryObj);
|
auto lib = getPtr<kiwix::Library>(env, libraryObj);
|
||||||
SET_PTR(std::make_shared<NATIVE_TYPE>(lib.get()));
|
SET_PTR(std::make_shared<NATIVE_TYPE>(lib));
|
||||||
} CATCH_EXCEPTION()
|
} CATCH_EXCEPTION()
|
||||||
|
|
||||||
DISPOSE
|
DISPOSE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user