TP-31303|cosmos app flvours|Aman Singh
This commit is contained in:
@@ -146,6 +146,10 @@ android {
|
||||
versionCode VERSION_CODE
|
||||
versionName VERSION_NAME
|
||||
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
||||
buildConfigField "string", "FLAVOR", '"'
|
||||
buildConfigField "string", "BUILD_FLAVOR", '"'
|
||||
buildConfigField "string", "APP_NAME", '"'
|
||||
buildConfigField "string", "API_KEY", '"'
|
||||
|
||||
if (isNewArchitectureEnabled()) {
|
||||
// We configure the CMake build only if you decide to opt-in for the New Architecture.
|
||||
@@ -259,6 +263,41 @@ android {
|
||||
|
||||
}
|
||||
}
|
||||
flavorDimensions "env"
|
||||
productFlavors {
|
||||
fieldAgentsQA {
|
||||
applicationId "com.avapp"
|
||||
versionName VERSION_NAME
|
||||
buildConfigField 'String', 'FLAVOR', '"fieldAgentsQa"'
|
||||
buildConfigField 'String', 'BUILD_FLAVOR', '"qa"'
|
||||
buildConfigField 'String', 'APP_NAME', '"COSMOS"'
|
||||
buildConfigField 'String', 'API_KEY', '"qa"'
|
||||
}
|
||||
fieldAgentsProd {
|
||||
applicationId "com.avapp"
|
||||
versionName VERSION_NAME
|
||||
buildConfigField 'String', 'FLAVOR', '"fieldAgentsProd"'
|
||||
buildConfigField 'String', 'BUILD_FLAVOR', '"prod"'
|
||||
buildConfigField 'String', 'APP_NAME', '"COSMOS"'
|
||||
buildConfigField 'String', 'API_KEY', '"qa"'
|
||||
}
|
||||
callingAgentsQA {
|
||||
applicationId "com.avapp"
|
||||
versionName VERSION_NAME
|
||||
buildConfigField 'String', 'FLAVOR', '"callingAgentsQA"'
|
||||
buildConfigField 'String', 'BUILD_FLAVOR', '"qa"'
|
||||
buildConfigField 'String', 'APP_NAME', '"COSMOS"'
|
||||
buildConfigField 'String', 'API_KEY', '"qa"'
|
||||
}
|
||||
callingAgentsProd {
|
||||
applicationId "com.avapp"
|
||||
versionName VERSION_NAME
|
||||
buildConfigField 'String', 'FLAVOR', '"callingAgentsProd"'
|
||||
buildConfigField 'String', 'BUILD_FLAVOR', '"prod"'
|
||||
buildConfigField 'String', 'APP_NAME', '"COSMOS"'
|
||||
buildConfigField 'String', 'API_KEY', '"qa"'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -85,6 +85,7 @@ public class DeviceUtilsModule extends ReactContextBaseJavaModule implements Act
|
||||
@ReactMethod
|
||||
public void startRecording() {
|
||||
// AlfredManager.INSTANCE.startRecording(RNContext, rootView, "", "", null);
|
||||
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
@@ -92,9 +93,8 @@ public class DeviceUtilsModule extends ReactContextBaseJavaModule implements Act
|
||||
AlfredManager.config.setUserId(userId);
|
||||
}
|
||||
|
||||
|
||||
@ReactMethod
|
||||
public void handleSWWEvent() {
|
||||
public void handleSWWEvent(String error) {
|
||||
HashMap<String,String> h = new HashMap();
|
||||
Log.d("TAG","properties :" + "aman");
|
||||
AlfredManager.INSTANCE.handleSWWEvent("Cosmos", h);
|
||||
|
||||
Reference in New Issue
Block a user