From 05cc49920ed2a0c477d1a6ca5f28148860bd4de4 Mon Sep 17 00:00:00 2001 From: Aurelien Aptel Date: Sun, 3 Jun 2018 17:23:21 +0200 Subject: [PATCH] disable JNI/C++ support for now (simplifies build) --- app/build.gradle | 20 +++++++++---------- .../org/notmuchmail/notmuch/MainActivity.java | 8 ++++---- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 4b2be6c..d9db4ed 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,11 +9,11 @@ android { versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" - externalNativeBuild { - cmake { - cppFlags "" - } - } + //externalNativeBuild { + // cmake { + // cppFlags "" + // } + //} } buildTypes { release { @@ -21,11 +21,11 @@ android { proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } - externalNativeBuild { - cmake { - path "CMakeLists.txt" - } - } + //externalNativeBuild { + // cmake { + // path "CMakeLists.txt" + // } + //} packagingOptions { exclude 'META-INF/mimetypes.default' } diff --git a/app/src/main/java/org/notmuchmail/notmuch/MainActivity.java b/app/src/main/java/org/notmuchmail/notmuch/MainActivity.java index 4d7c80b..2148982 100644 --- a/app/src/main/java/org/notmuchmail/notmuch/MainActivity.java +++ b/app/src/main/java/org/notmuchmail/notmuch/MainActivity.java @@ -17,9 +17,9 @@ public class MainActivity extends AppCompatActivity { private static final String TAG = "nmssha"; boolean checkAgain = true; // Used to load the 'native-lib' library on application startup. - static { - System.loadLibrary("native-lib"); - } + //static { + // System.loadLibrary("native-lib"); + //} SSHActivityHelper sshHelper; @@ -97,5 +97,5 @@ protected void onDestroy() { * A native method that is implemented by the 'native-lib' native library, * which is packaged with this application. */ - public native String stringFromJNI(); + //public native String stringFromJNI(); }