Move app uuid to DB + Change APK name
This commit is contained in:
parent
988d184cac
commit
df167a1e64
4 changed files with 13 additions and 5 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue