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()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
/*
externalNativeBuild {
cmake {
cppFlags ""
}
}
*/
}
signingConfigs {
@ -64,11 +66,13 @@ android {
signingConfig signingConfigs.release
}
}
/*
externalNativeBuild {
cmake {
path "src/main/cpp/CMakeLists.txt"
}
}
*/
}
flutter {

View File

@ -21,15 +21,15 @@ import io.flutter.util.PathUtils;
// For MethodChannel
public class MainActivity extends FlutterActivity implements MethodCallHandler {
static {
System.loadLibrary("native-lib");
}
//static {
// System.loadLibrary("native-lib");
//}
/**
* 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();
private static final String CHANNEL_NAME = "gitjournal.io/git";
@ -37,7 +37,7 @@ public class MainActivity extends FlutterActivity implements MethodCallHandler {
@Override
protected void onCreate(Bundle savedInstanceState) {
Log.d("VISH", stringFromJNI());
//Log.d("VISH", stringFromJNI());
super.onCreate(savedInstanceState);
GeneratedPluginRegistrant.registerWith(this);