App Configuration
AppConfig.java
We collect all app config into one file AppConfig.java, all lowercase value in this fill can override from remote config if you enable USE_REMOTE_CONFIG to true, value can change without update APK, value included admin panel, security and ads networks can change from here, example for price format :
Price Format
Starting version 2.0 you can change price format with 4 options
USD 2,365.12 --> Front curency US format
USD 2.365,12 --> Front curency GERMANY format
2,365.12 USD --> End curency US format
2.365,12 USD --> End curency GERMANY format
You can chose that format by edit AppConfig.java , The code well commented to you can choose with easily
Here all value you can change :
/* config for General Application */
public static class General {
/* Edit WEB_URL with your url. Make sure you have backslash('/') in the end url */
public String admin_panel_url = "http://demo.dream-space.web.id/markeet_panel/";
/* [ IMPORTANT ] be careful when edit this security code */
/* This string must be same with security code at Server, if its different android unable to submit order */
public String security_code = "8V06LupAaMBLtQqyqTxmcN42nn27FlejvaoSM3zXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
// tinting category icon
public boolean tint_category_icon = true;
/* Locale.US -> 2,365.12
* Locale.GERMANY -> 2.365,12 */
public Locale price_local_format = Locale.US;
/* true -> 2.365,12
* false -> 2.365 */
public boolean price_with_decimal = true;
/* true -> 2.365,12 USD
* false -> USD 2.365 */
public boolean price_currency_in_end = true;
// this limit value used for give pagination (request and display) to decrease payload
public int news_per_request = 10;
public int product_per_request = 10;
public int notification_page = 20;
public int wishlist_page = 20;
public int order_history_page = 10;
/* 3 links below will use on setting page */
public String privacy_policy_url = "https://dream-space.web.id/privacy-policy";
public String contact_us_url = "https://dream-space.web.id/contact-us";
public String update_app_url = "https://play.google.com/store/apps/details?id=" + BuildConfig.APPLICATION_ID;
}
/* config for Ad Network */
public static class Ads {
/* enable disable ads */
public boolean ad_enable = true;
/* MULTI Ad network selection,
* Fill this array to enable ad backup flow, left this empty to use single ad_network above
* app will try show sequentially from this array
* example flow ADMOB > FAN > UNITY > APPLOVIN */
public AdNetworkType[] ad_networks = {
AdNetworkType.ADMOB,
AdNetworkType.FAN,
AdNetworkType.IRONSOURCE,
AdNetworkType.UNITY,
AdNetworkType.APPLOVIN,
};
/* ad backup flow retry attempt each network */
public Integer retry_every_ad_networks = 2;
/* ad backup flow stat from beginning when all failed */
public boolean retry_from_start = false;
/* ad backup flow retry attempt cycle */
public Integer retry_from_start_max = 2;
public boolean ad_enable_gdpr = true;
/* disable enable ads each page */
public boolean ad_main_banner = true;
public boolean ad_main_interstitial = true;
public boolean ad_news_info_details = true;
public boolean ad_product_details = true;
public boolean ad_splash_open_app = true;
public boolean ad_global_open_app = true;
/* show interstitial after several action, this value for action counter */
public int ad_inters_interval = 5;
/* maximum load time in second for open app ads */
public Integer limit_time_open_app_loading = 8;
/* ad unit for ADMOB */
public String ad_admob_publisher_id = "pub-3940256099942544";
public String ad_admob_banner_unit_id = "ca-app-pub-3940256099942544/6300978111";
public String ad_admob_interstitial_unit_id = "ca-app-pub-3940256099942544/1033173712";
public String ad_admob_open_app_unit_id = "ca-app-pub-3940256099942544/3419835294";
/* ad unit for FAN */
public String ad_fan_banner_unit_id = "1335891233997179_1335891307330505";
public String ad_fan_interstitial_unit_id = "1335891233997179_1335891300663839";
/* ad unit for IRON SOURCE */
public String ad_ironsource_app_key = "172a53645";
public String ad_ironsource_banner_unit_id = "DefaultBanner";
public String ad_ironsource_interstitial_unit_id = "DefaultInterstitial";
/* ad unit for UNITY */
public String ad_unity_game_id = "4297717";
public String ad_unity_banner_unit_id = "Banner_Android";
public String ad_unity_interstitial_unit_id = "Interstitial_Android";
/* ad unit for APPLOVIN */
public String ad_applovin_banner_unit_id = "d62dc7470d3f119b";
public String ad_applovin_interstitial_unit_id = "4e1b0167531b4dd8";
}