Android release v1.0.303

pull/1856/head android-v1.0.303
Laurent Cozic 2019-09-06 17:51:38 +01:00
parent 6a7d40d171
commit 11f23f4e00
3 changed files with 10 additions and 9 deletions

View File

@ -28,7 +28,7 @@ Linux | <a href='https://github.com/laurent22/joplin/releases/download/
Operating System | Download | Alt. Download
-----------------|----------|----------------
Android | <a href='https://play.google.com/store/apps/details?id=net.cozic.joplin&utm_source=GitHub&utm_campaign=README&pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1'><img alt='Get it on Google Play' height="40px" src='https://joplinapp.org/images/BadgeAndroid.png'/></a> | or [Download APK File](https://github.com/laurent22/joplin-android/releases/download/android-v1.0.299/joplin-v1.0.299.apk)
Android | <a href='https://play.google.com/store/apps/details?id=net.cozic.joplin&utm_source=GitHub&utm_campaign=README&pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1'><img alt='Get it on Google Play' height="40px" src='https://joplinapp.org/images/BadgeAndroid.png'/></a> | or [Download APK File](https://github.com/laurent22/joplin-android/releases/download/android-v1.0.303/joplin-v1.0.303.apk)
iOS | <a href='https://itunes.apple.com/us/app/joplin/id1315599797'><img alt='Get it on the App Store' height="40px" src='https://joplinapp.org/images/BadgeIOS.png'/></a> | -
## Terminal application

View File

@ -94,8 +94,8 @@ android {
applicationId "net.cozic.joplin"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 2097535
versionName "1.0.299"
versionCode 2097539
versionName "1.0.303"
ndk {
abiFilters "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
}

View File

@ -28,6 +28,7 @@ import cx.evermeet.versioninfo.RNVersionInfoPackage;
import java.util.Arrays;
import java.util.List;
import android.database.CursorWindow;
public class MainApplication extends Application implements ReactApplication {
@ -73,13 +74,13 @@ public class MainApplication extends Application implements ReactApplication {
// https://github.com/andpor/react-native-sqlite-storage/issues/364#issuecomment-526423153
// https://github.com/laurent22/joplin/issues/1767#issuecomment-515617991
try {
Field field = CursorWindow.class.getDeclaredField("sCursorWindowSize");
field.setAccessible(true);
field.set(null, 50 * 1024 * 1024); // 50 MB
// Field field = CursorWindow.class.getDeclaredField("sCursorWindowSize");
CursorWindow.class.getDeclaredField("sCursorWindowSize").setAccessible(true);
CursorWindow.class.getDeclaredField("sCursorWindowSize").set(null, 50 * 1024 * 1024); // 50 MB
} catch (Exception e) {
if (DEBUG_MODE) {
e.printStackTrace();
}
// if (DEBUG_MODE) {
// e.printStackTrace();
// }
}
SoLoader.init(this, /* native exopackage */ false);