This commit is contained in:
tx 2024-12-27 15:23:05 +08:00
parent eff201284f
commit ce065dfab9
2 changed files with 16 additions and 5 deletions

View File

@ -7,7 +7,12 @@ import Toast from 'react-native-toast-message';
import { Platform } from 'react-native';
import { AuthProvider, useAuth } from './src/context/AuthContext';
import { setToastFunction, setLogoutFunction } from './src/utils/api';
import { AMapSdk } from 'react-native-amap3d';
AMapSdk.init(Platform.select({
android: '812efd3a950ba3675f928630302c6463',
}));
const AppContent = () => {
const { logout } = useAuth();

View File

@ -87,6 +87,12 @@ android {
versionName "1.0"
}
signingConfigs {
release {
storeFile file('my-release-key.jks')
storePassword 'jq888786' //
keyAlias 'my-key-alias' //
keyPassword 'jq888786' //
}
debug {
storeFile file('debug.keystore')
storePassword 'android'
@ -101,7 +107,7 @@ android {
release {
// Caution! In production, you need to generate your own keystore file.
// see https://reactnative.dev/docs/signed-apk-android.
signingConfig signingConfigs.debug
signingConfig signingConfigs.release
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}