Temporarily disable PoC JNI bindings

They are causing the release build to crash.
This commit is contained in:
Vishesh Handa
2019-02-13 15:35:42 +01:00
parent 9452354a99
commit dc3f31eb92
2 changed files with 9 additions and 5 deletions

View File

@ -44,11 +44,13 @@ android {
versionCode flutterVersionCode.toInteger() versionCode flutterVersionCode.toInteger()
versionName flutterVersionName versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
/*
externalNativeBuild { externalNativeBuild {
cmake { cmake {
cppFlags "" cppFlags ""
} }
} }
*/
} }
signingConfigs { signingConfigs {
@ -64,11 +66,13 @@ android {
signingConfig signingConfigs.release signingConfig signingConfigs.release
} }
} }
/*
externalNativeBuild { externalNativeBuild {
cmake { cmake {
path "src/main/cpp/CMakeLists.txt" path "src/main/cpp/CMakeLists.txt"
} }
} }
*/
} }
flutter { flutter {

View File

@ -21,15 +21,15 @@ import io.flutter.util.PathUtils;
// For MethodChannel // For MethodChannel
public class MainActivity extends FlutterActivity implements MethodCallHandler { public class MainActivity extends FlutterActivity implements MethodCallHandler {
static { //static {
System.loadLibrary("native-lib"); // System.loadLibrary("native-lib");
} //}
/** /**
* A native method that is implemented by the 'native-lib' native library, * A native method that is implemented by the 'native-lib' native library,
* which is packaged with this application. * which is packaged with this application.
*/ */
public native String stringFromJNI(); //public native String stringFromJNI();
private static final String CHANNEL_NAME = "gitjournal.io/git"; private static final String CHANNEL_NAME = "gitjournal.io/git";
@ -37,7 +37,7 @@ public class MainActivity extends FlutterActivity implements MethodCallHandler {
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
Log.d("VISH", stringFromJNI()); //Log.d("VISH", stringFromJNI());
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
GeneratedPluginRegistrant.registerWith(this); GeneratedPluginRegistrant.registerWith(this);