From bcf4243da54615a2e8a2b5b9c2d2a36442aa038d Mon Sep 17 00:00:00 2001 From: laiiihz Date: Fri, 6 Nov 2020 14:03:04 +0800 Subject: [PATCH] add key --- README.md | 4 ++ android/app/build.gradle | 25 +++++++---- android/app/src/main/AndroidManifest.xml | 51 ++++++++--------------- keys/key.jks | Bin 0 -> 2202 bytes lib/main.dart | 4 +- pubspec.lock | 42 +++++++++++++++++++ pubspec.yaml | 2 + 7 files changed, 86 insertions(+), 42 deletions(-) create mode 100644 keys/key.jks 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 0000000000000000000000000000000000000000..f82a7d9152a91fe6b5e219291143d4b87a8b660b GIT binary patch literal 2202 zcmcJQ`8(8$7sux_n{{kM!jPS;pRq=Xi7YW1H)9#bGT8><>dT;%Mz#{6AU_oVerJel=cJG#!QY4MYj^K*;2hxe9RLX&<;U#Lb% zc88eF2B9=5_eHxc4X7u+Y0qpe?;F!BeD)=bS5AV?Vub6~o=SX%O9=0yF=BpoTJmaq zJa>+I?WDaVgUM~#B$HZUkGYkRWE+Q=Lw`Moxzo#Wr?qagj(b~$Ojz}w;UP(0(-^JC z5U7jw=~orXK9Ak5UIj-JKKAH`pI1- zarV>cs2Ls^4j*Guw-~PisO8Y*ObdcwH17>gH}|(j$_lT5B%K@YvXOjcl#6> zAr)hrQ4v-r`OtDqw-oN~6->XrkJEko#OQC#ZG0hRFI%X*@C6f>qvE+nP0G98Xe=`h zICfQP)WvT1bQO@J@fw`x7w@>}`OU=pQV*944d(tTQ#HZs(J&Wgofu!k-%=MH!qCel zp?pb!42+%0;Rl!e68Uq>6C}T8hEV)_k4$bLr31g}*BZH^YY0}2ZQeNYnQ!`Ygvw&o zIlNh|Hsge@MPKF*C($MYy_5PYWyurKZ|JVlv_i4`mHxMqeXX{H>ZuHQ!)}&FdMZJ z(&_HwrrE?ov)X32@8MPG(VQO9juruB8*~mc?X`Sr3u%VX=JoQ%mp8?}f)sXyn$^5p z2awBewQc|9GGJl3gZP-KVt?(=h2#t?w&`4b1O{Cqp+~m&_hY?xtnpYr+x&8(h+%v$ zEyE-J+@@R^2By(T`~=$^l;POIxtPcizIH!*yeK_D-g;(cIT%1`A~Jjz@dxs zs?S?1wn*K&iMZ5>cJIJUvtt|5h}*7Rd(^4Bvg#2URjMU|Wg>~}(yr*<)rc!Cfy1wc zrfp4;0_pjsRh&fRQu0Db$vf+(!Ve`d>Uy#11fx?8H__34ucd|UR{r!)`{lQ3HaXrb zulR&{)OV7<8|~^)k;?viGDs{o%c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@ -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