mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 09:49:19 +02:00
proguard.cfg
This commit is contained in:
parent
f6452297c7
commit
36e3c12a01
3 changed files with 26 additions and 2 deletions
|
@ -66,7 +66,7 @@ JNIEnv *AndroidUtil::getEnv() {
|
|||
return env;
|
||||
}
|
||||
|
||||
#define CHECK_NULL(value) if ((value) == 0) { throwRuntimeException(env, #value); }
|
||||
#define CHECK_NULL(value) if ((value) == 0) { return false; }
|
||||
|
||||
bool AndroidUtil::init(JavaVM* jvm) {
|
||||
ourJavaVM = jvm;
|
||||
|
|
24
proguard.cfg
24
proguard.cfg
|
@ -12,7 +12,31 @@
|
|||
-keep public class * extends android.content.ContentProvider
|
||||
-keep class * extends java.lang.Exception
|
||||
|
||||
-keep class org.geometerplus.zlibrary.core.library.ZLibrary
|
||||
-keepclassmembers class org.geometerplus.zlibrary.core.library.ZLibrary {
|
||||
public static ** Instance();
|
||||
public ** getVersionName();
|
||||
}
|
||||
-keep class org.geometerplus.zlibrary.core.filesystem.ZLFile
|
||||
-keepclassmembers class org.geometerplus.zlibrary.core.filesystem.ZLFile {
|
||||
public static ** createFileByPath(**);
|
||||
public ** children();
|
||||
public boolean exists();
|
||||
public boolean isDirectory();
|
||||
public ** getInputStream();
|
||||
public ** getPath();
|
||||
public long size();
|
||||
}
|
||||
-keep class org.geometerplus.fbreader.formats.PluginCollection
|
||||
-keepclassmembers class org.geometerplus.fbreader.formats.PluginCollection {
|
||||
public static ** Instance();
|
||||
}
|
||||
-keep class org.geometerplus.fbreader.library.Book
|
||||
-keepclassmembers class org.geometerplus.fbreader.library.Book {
|
||||
}
|
||||
-keep class org.geometerplus.fbreader.library.Tag
|
||||
-keepclassmembers class org.geometerplus.fbreader.library.Tag {
|
||||
}
|
||||
|
||||
-keepclasseswithmembernames class * {
|
||||
native <methods>;
|
||||
|
|
|
@ -8,6 +8,6 @@
|
|||
# project structure.
|
||||
|
||||
java.encoding=utf-8
|
||||
#proguard.config=proguard.cfg
|
||||
proguard.config=proguard.cfg
|
||||
# Project target.
|
||||
target=android-8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue