口味😋: 添加sky高德key
This commit is contained in:
parent
cd5ef0331b
commit
58f24b6cee
@ -53,6 +53,17 @@ keytool -genkey -v -keystore android/app/sky.jks -keyalg RSA -keysize 2048 -vali
|
||||
`key.properties` 文件用于存放密钥库的相关信息,但是我们不用这个文件,而是直接在 `build.gradle` 中写入密钥库的相关信息。
|
||||
因为我们将密钥库文件本身都已经储存在git中了,也就没必要再单独存放密钥信息了。
|
||||
|
||||
## 获取密钥库证书指纹
|
||||
一般用于SDK的应用创建里面填写的资料,例如高德SDK
|
||||
|
||||
```bash
|
||||
keytool -list -v -keystore android/app/sky.jks
|
||||
```
|
||||
|
||||
输入密码(在android/app/build.gradle:38可以看到)
|
||||
|
||||
一般需要的是:证书指纹-SHA1 看起来像 95:6B:***********(共59个字符)
|
||||
|
||||
## 编译
|
||||
```bash
|
||||
flutter build apk --split-per-abi --release --flavor sky -t lib/main_sky.dart
|
||||
|
||||
@ -61,10 +61,10 @@ class F {
|
||||
return const StarLockAMapKey(
|
||||
androidKey: '11d49b3f4fc09c04a02bbb7500925ba2',
|
||||
iosKey: '883a3355d2d77c2fdc2667030dc97ffe');
|
||||
// case Flavor.sky:
|
||||
// return const StarLockAMapKey(
|
||||
// androidKey: 'todo',
|
||||
// iosKey: 'todo');
|
||||
case Flavor.sky:
|
||||
return const StarLockAMapKey(
|
||||
androidKey: 'fb0d2a3e4208b36452cf636aa025a24f',
|
||||
iosKey: '86ca725a12a629c280e116a317aaba19');
|
||||
// case Flavor.xhj:
|
||||
// return const StarLockAMapKey(
|
||||
// androidKey: 'todo',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user