mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 09:47:35 +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()
|
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 {
|
||||||
|
@ -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);
|
||||||
|
Reference in New Issue
Block a user