diff --git a/README.md b/README.md index dac408b..3048626 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,7 @@ A new Flutter application. ## Getting Started ### 使用`fgen`生成图片 + +### password + +password `1Xpn6hhbxztA6PC0oFiZ` diff --git a/android/app/build.gradle b/android/app/build.gradle index a008811..9bf4780 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -25,6 +25,11 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" +def keystoreProperties = new Properties() + def keystorePropertiesFile = rootProject.file('key.properties') + if (keystorePropertiesFile.exists()) { + keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) + } android { compileSdkVersion 29 @@ -45,13 +50,19 @@ android { versionName flutterVersionName } - buildTypes { - release { - // TODO: Add your own signing config for the release build. - // Signing with the debug keys for now, so `flutter run --release` works. - signingConfig signingConfigs.debug - } - } + signingConfigs { + release { + keyAlias keystoreProperties['keyAlias'] + keyPassword keystoreProperties['keyPassword'] + storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null + storePassword keystoreProperties['storePassword'] + } + } + buildTypes { + release { + signingConfig signingConfigs.release + } + } } flutter { diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 8c38806..29e1b03 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,47 +1,30 @@ - - - - - - - - - - - - - - - - + + diff --git a/keys/key.jks b/keys/key.jks new file mode 100644 index 0000000..f82a7d9 Binary files /dev/null and b/keys/key.jks differ diff --git a/lib/main.dart b/lib/main.dart index 0ba12a3..ac472cf 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -4,6 +4,7 @@ import 'package:aku_community_manager/provider/manage_provider.dart'; import 'package:aku_community_manager/provider/outdoor_provider.dart'; import 'package:aku_community_manager/provider/user_provider.dart'; import 'package:aku_community_manager/ui/home/home_page.dart'; +import 'package:amap_map_fluttify/amap_map_fluttify.dart'; import 'package:bot_toast/bot_toast.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; @@ -11,7 +12,8 @@ import 'package:flutter_localizations/flutter_localizations.dart'; import 'package:get/get.dart'; import 'package:provider/provider.dart'; -void main() { +void main() async { + await AmapCore.init(''); runApp(MyApp()); } diff --git a/pubspec.lock b/pubspec.lock index 887b13b..43a5358 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -10,6 +10,34 @@ packages: url: "http://test.akuhotel.com:8099/aku_fe/aku_ui.git" source: git version: "0.0.1" + amap_core_fluttify: + dependency: transitive + description: + name: amap_core_fluttify + url: "https://pub.flutter-io.cn" + source: hosted + version: "0.12.0" + amap_location_fluttify: + dependency: transitive + description: + name: amap_location_fluttify + url: "https://pub.flutter-io.cn" + source: hosted + version: "0.18.0" + amap_map_fluttify: + dependency: "direct main" + description: + name: amap_map_fluttify + url: "https://pub.flutter-io.cn" + source: hosted + version: "0.29.0" + amap_search_fluttify: + dependency: transitive + description: + name: amap_search_fluttify + url: "https://pub.flutter-io.cn" + source: hosted + version: "0.14.0" async: dependency: transitive description: @@ -80,6 +108,13 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "2.1.1" + core_location_fluttify: + dependency: transitive + description: + name: core_location_fluttify + url: "https://pub.flutter-io.cn" + source: hosted + version: "0.4.1" crypto: dependency: transitive description: @@ -177,6 +212,13 @@ packages: description: flutter source: sdk version: "0.0.0" + foundation_fluttify: + dependency: transitive + description: + name: foundation_fluttify + url: "https://pub.flutter-io.cn" + source: hosted + version: "0.9.10+1" get: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 1f7cbac..d9fef7d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -58,6 +58,8 @@ dependencies: url_launcher: ^5.7.10 + amap_map_fluttify: ^0.29.0 + aku_ui: git: url: http://test.akuhotel.com:8099/aku_fe/aku_ui.git