Set app name :
File name : edelivery -> src -> main -> res -> values ->strings.xml
File name : build.gradle (app)
In defaultConfig
- change applicationId
- versionCode
- versionName
- FACEBOOK_APP_ID *if required
- FB_LOGIN_PROTOCOL_SCHEME *if required
- GOOGLE_ANDROID_API_KEY
For places api we are using GOOGLE_ANDROID_API_KEY
For other google api, we are using google key which will get from api response which is set in the admin panel.
API name : “get_provider_setting_detail”
Method name : getAPIKeys
-parseContent.parseProviderSettingDetail
Ex:preferenceHelper.putGoogleAutoCompleteKey(adminSettings.getAndroidProviderAppGoogleKey());
Set server URL for API and Image(Assets)
- BASE_URL = “http://192.168.0.165:8001/”
File name: edelivery -> src -> main -> res ->Image asset
File name :provider_path.xml
Ex : path="Android/data/your applicationId/files/Pictures"
File name : network_security_config.xml
Ex : <domain includeSubdomains="true">192.168.0.165</domain> (From BASE_URL)
File name : eber -> src -> main -> res ->values->colors.xml
Change this color:
<color name="color_app_theme_dark">#fb0000</color>
<color name="color_app_theme_light">#fb0000</color>
<color name="color_app_status_bar">#fb0000</color>
<color name="color_app_button">#fb0000</color>
<color name="color_app_button_tint">#fb0000</color>
<color name="color_app_red_path">#fb0000</color>
<color name="color_app_button_dark">#fb0000</color>
Add your font file in edelivery -> src -> main ->assets ->fonts
Change in your all custom view (button, text, Edittext etc)
EX :
private boolean setCustomFont(Context ctx, String asset) {
try {
if (typeface == null) {
// Log.i(TAG, "asset:: " + "fonts/" + asset);
typeface = Typeface.createFromAsset(ctx.getAssets(),
"fonts/Roboto_Regular_0.ttf");
}
} catch (Exception e) {
AppLog.handleException(TAG, e);
// Log.e(TAG, "Could not get typeface: " + e.getMessage());
return false;
}
setTypeface(typeface);
return true;
}
Check build variants (check which have BASE_URL)
- Select target device
- Run project