mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 17:29:50 +08:00
Temporarily disable PoC JNI bindings
They are causing the release build to crash.
This commit is contained in:
@ -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 {
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user