Move app uuid to DB + Change APK name

This commit is contained in:
Vincent BRIDIER 2023-01-02 16:48:48 +01:00
parent 988d184cac
commit df167a1e64
No known key found for this signature in database
GPG key ID: 8571BFA20420D512
4 changed files with 13 additions and 5 deletions

View file

@ -135,11 +135,11 @@ android {
compileSdkVersion rootProject.ext.compileSdkVersion
defaultConfig {
applicationId "com.comintl.app"
applicationId "com.comapp.ldc"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.2"
versionName "2.0"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
if (isNewArchitectureEnabled()) {

View file

@ -1,5 +1,5 @@
<resources>
<!-- Below line is handled by '@expo/configure-splash-screen' command and it's discouraged to modify it manually -->
<string name="expo_splash_screen_resize_mode" translatable="false">contain</string>
<string name="app_name">Commerciaux - LDC International</string>
<string name="app_name">Commerciaux LDC</string>
</resources>

View file

@ -10,7 +10,6 @@ import * as Application from 'expo-application';
import { Setting, Contact, SendBrochure, Document } from '../../Database';
const api_token = 'toto';
const app_uuid = '1f6eda31-1f6d-49fe-aa81-4f0aece0f7ca';
class SyncController {
@ -22,6 +21,14 @@ class SyncController {
return test.value;
}
getAppStoreUUID() {
const test = Setting.get('AppStoreUUID');
if (test === false || test === undefined) {
return "noset";
}
return test.value;
}
async checkConnection() {
NetInfo.fetch().then(state => {
return state.isConnected;
@ -36,7 +43,7 @@ class SyncController {
responseType: 'json',
params: {
token: api_token,
app_uuid: app_uuid,
app_uuid: this.getAppStoreUUID(),
app_version: Application.nativeApplicationVersion
},
});

View file

@ -95,6 +95,7 @@ class InstallScreen extends React.Component {
_.forEach(response.data.datas, function (value, key) {
switch (key) {
case "MainColor":
case "AppStoreUUID":
Setting.upsert({ key: key, value: value });
break;
case "SquaredLogo":