Browse Source

image

null_safety
fmk 3 years ago
parent
commit
ac7106be51
  1. 24
      android/app/build.gradle
  2. BIN
      android/app/libs/arm64-v8a/libBaiduMapSDK_base_v7_1_0.so
  3. BIN
      android/app/libs/arm64-v8a/libBaiduMapSDK_map_v7_1_0.so
  4. BIN
      android/app/libs/arm64-v8a/libflutter.so
  5. BIN
      android/app/libs/arm64-v8a/libgnustl_shared.so
  6. BIN
      android/app/libs/arm64-v8a/libindoor.so
  7. BIN
      android/app/libs/arm64-v8a/liblocSDK8a.so
  8. BIN
      android/app/libs/armeabi-v7a/libBaiduMapSDK_base_v7_1_0.so
  9. BIN
      android/app/libs/armeabi-v7a/libBaiduMapSDK_map_v7_1_0.so
  10. BIN
      android/app/libs/armeabi-v7a/libflutter.so
  11. BIN
      android/app/libs/armeabi-v7a/libgnustl_shared.so
  12. BIN
      android/app/libs/armeabi-v7a/libindoor.so
  13. BIN
      android/app/libs/armeabi-v7a/liblocSDK8a.so
  14. BIN
      android/app/libs/armeabi/libBaiduMapSDK_base_v7_1_0.so
  15. BIN
      android/app/libs/armeabi/libBaiduMapSDK_map_v7_1_0.so
  16. BIN
      android/app/libs/armeabi/libgnustl_shared.so
  17. BIN
      android/app/libs/armeabi/libindoor.so
  18. BIN
      android/app/libs/armeabi/liblocSDK8a.so
  19. BIN
      android/app/libs/x86/libAMapSDK_MAP_v7_9_1.so
  20. BIN
      android/app/libs/x86_64/libAMapSDK_MAP_v7_9_1.so
  21. 16
      android/app/proguard-rules.pro
  22. 3
      android/gradle.properties
  23. 3
      lib/main.dart
  24. 1
      lib/retrofit/retrofit_api.dart
  25. 6
      pubspec.lock

24
android/app/build.gradle

@ -100,6 +100,10 @@ android {
} }
} }
lintOptions {
checkReleaseBuilds false
}
defaultConfig { defaultConfig {
applicationId "com.zsw.huixiang" applicationId "com.zsw.huixiang"
minSdkVersion 21 minSdkVersion 21
@ -109,7 +113,7 @@ android {
ndk { ndk {
/// .so /// .so
abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a' abiFilters 'armeabi-v7a', 'arm64-v8a'
} }
manifestPlaceholders = mfph manifestPlaceholders = mfph
@ -137,19 +141,25 @@ android {
buildTypes { buildTypes {
release { release {
// debuggable true
// shrinkResources false
// minifyEnabled false
signingConfig signingConfigs.config signingConfig signingConfigs.config
proguardFiles getDefaultProguardFile('proguard-android.txt'), // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
'proguard-rules.pro'
} }
debug { debug {
// debuggable true
// shrinkResources false
// minifyEnabled false
signingConfig signingConfigs.config signingConfig signingConfigs.config
proguardFiles getDefaultProguardFile('proguard-android.txt'), // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
'proguard-rules.pro'
} }
profile { profile {
// debuggable true
// shrinkResources false
// minifyEnabled false
signingConfig signingConfigs.config signingConfig signingConfigs.config
proguardFiles getDefaultProguardFile('proguard-android.txt'), // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
'proguard-rules.pro'
} }
} }

BIN
android/app/libs/arm64-v8a/libBaiduMapSDK_base_v7_1_0.so

Binary file not shown.

BIN
android/app/libs/arm64-v8a/libBaiduMapSDK_map_v7_1_0.so

Binary file not shown.

BIN
android/app/libs/arm64-v8a/libflutter.so

Binary file not shown.

BIN
android/app/libs/arm64-v8a/libgnustl_shared.so

Binary file not shown.

BIN
android/app/libs/arm64-v8a/libindoor.so

Binary file not shown.

BIN
android/app/libs/arm64-v8a/liblocSDK8a.so

Binary file not shown.

BIN
android/app/libs/armeabi-v7a/libBaiduMapSDK_base_v7_1_0.so

Binary file not shown.

BIN
android/app/libs/armeabi-v7a/libBaiduMapSDK_map_v7_1_0.so

Binary file not shown.

BIN
android/app/libs/armeabi-v7a/libflutter.so

Binary file not shown.

BIN
android/app/libs/armeabi-v7a/libgnustl_shared.so

Binary file not shown.

BIN
android/app/libs/armeabi-v7a/libindoor.so

Binary file not shown.

BIN
android/app/libs/armeabi-v7a/liblocSDK8a.so

Binary file not shown.

BIN
android/app/libs/armeabi/libBaiduMapSDK_base_v7_1_0.so

Binary file not shown.

BIN
android/app/libs/armeabi/libBaiduMapSDK_map_v7_1_0.so

Binary file not shown.

BIN
android/app/libs/armeabi/libgnustl_shared.so

Binary file not shown.

BIN
android/app/libs/armeabi/libindoor.so

Binary file not shown.

BIN
android/app/libs/armeabi/liblocSDK8a.so

Binary file not shown.

BIN
android/app/libs/x86/libAMapSDK_MAP_v7_9_1.so

Binary file not shown.

BIN
android/app/libs/x86_64/libAMapSDK_MAP_v7_9_1.so

Binary file not shown.

16
android/app/proguard-rules.pro vendored

@ -1,6 +1,19 @@
# Flutter wrapper
-keep class io.flutter.app.** { *; }
-keep class io.flutter.plugin.** { *; }
-keep class io.flutter.util.** { *; }
-keep class io.flutter.view.** { *; }
-keep class io.flutter.** { *; }
-keep class io.flutter.plugins.** { *; }
# -keep class com.google.firebase.** { *; } // uncomment this if you are using firebase in the project
-dontwarn io.flutter.embedding.**
-ignorewarnings
# Build the ephemeral app in a module project. # Build the ephemeral app in a module project.
# Prevents: Warning: library class <plugin-package> depends on program class io.flutter.plugin.** # Prevents: Warning: library class <plugin-package> depends on program class io.flutter.plugin.**
# This is due to plugins (libraries) depending on the embedding (the program jar) # This is due to plugins (libraries) depending on the embedding (the program jar)
-dontwarn io.flutter.plugin.** -dontwarn io.flutter.plugin.**
# The android.** package is provided by the OS at runtime. # The android.** package is provided by the OS at runtime.
@ -30,6 +43,9 @@
-keep class com.tencent.bigdata.baseapi.** {*;} -keep class com.tencent.bigdata.baseapi.** {*;}
-keep class com.tencent.bigdata.mqttchannel.** {*;} -keep class com.tencent.bigdata.mqttchannel.** {*;}
-keepclassmembers class * extends io.flutter.embedding.engine.plugins.FlutterPlugin {}
-keepclassmembers class * implements io.flutter.plugin.common.MethodChannel.MethodCallHandler {}
#andResGuard { #andResGuard {
# whiteList = [ # whiteList = [
# "R.layout.mob_authorize_*", # "R.layout.mob_authorize_*",

3
android/gradle.properties

@ -1,4 +1,5 @@
org.gradle.jvmargs=-Xmx1536M #org.gradle.jvmargs=-Xmx1536M
org.gradle.jvmargs=-Xmx4096m
android.useAndroidX=true android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
MobSDK.mobEnv=x MobSDK.mobEnv=x

3
lib/main.dart

@ -67,6 +67,7 @@ import 'mine/manage_address_page.dart';
import 'mine/roll_center_page.dart'; import 'mine/roll_center_page.dart';
void main() async { void main() async {
if (Platform.isAndroid) { if (Platform.isAndroid) {
SystemChrome.setSystemUIOverlayStyle( SystemChrome.setSystemUIOverlayStyle(
SystemUiOverlayStyle(statusBarColor: Colors.transparent)); SystemUiOverlayStyle(statusBarColor: Colors.transparent));
@ -75,7 +76,6 @@ void main() async {
SystemChrome.setPreferredOrientations([ SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp, DeviceOrientation.portraitUp,
]); ]);
SharedPreferences sharedPreferences = await SharedPreferences.getInstance(); SharedPreferences sharedPreferences = await SharedPreferences.getInstance();
Locale locale; Locale locale;
if (sharedPreferences.containsKey("language") && if (sharedPreferences.containsKey("language") &&
@ -84,7 +84,6 @@ void main() async {
} else { } else {
locale = Locale.fromSubtags(languageCode: 'zh', countryCode: 'TW'); locale = Locale.fromSubtags(languageCode: 'zh', countryCode: 'TW');
} }
initSdk(); initSdk();
bool isFirst = sharedPreferences.getBool("isFirst"); bool isFirst = sharedPreferences.getBool("isFirst");
print("isFirst:$isFirst"); print("isFirst:$isFirst");

1
lib/retrofit/retrofit_api.dart

@ -61,7 +61,6 @@ abstract class ApiService {
debugPrint("code = ${response.statusCode}"); debugPrint("code = ${response.statusCode}");
p(jsonEncode(response.data)); p(jsonEncode(response.data));
Map map = response.data; Map map = response.data;
if (map["code"] == 40005 || map["code"] == 40001) { if (map["code"] == 40005 || map["code"] == 40001) {
SmartDialog.show( SmartDialog.show(
widget: LoginTips( widget: LoginTips(

6
pubspec.lock

@ -405,7 +405,7 @@ packages:
name: fluwx name: fluwx
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "3.5.0" version: "3.5.1"
glob: glob:
dependency: transitive dependency: transitive
description: description:
@ -1056,7 +1056,7 @@ packages:
name: win32 name: win32
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "2.0.5" version: "2.2.5"
xdg_directories: xdg_directories:
dependency: transitive dependency: transitive
description: description:
@ -1079,5 +1079,5 @@ packages:
source: hosted source: hosted
version: "3.1.0" version: "3.1.0"
sdks: sdks:
dart: ">=2.12.0 <3.0.0" dart: ">=2.13.0 <3.0.0"
flutter: ">=2.0.0" flutter: ">=2.0.0"

Loading…
Cancel
Save