From beb8645387342f4a037b755e93c96ee989ec3bc0 Mon Sep 17 00:00:00 2001 From: Sarsa Murmu Date: Wed, 16 Sep 2020 19:02:37 +0530 Subject: [PATCH] Updated for v3.8.0 --- app/build.gradle | 6 +-- app/src/main/AndroidManifest.xml | 2 +- .../sample/activities/MainActivity.java | 2 +- .../sample/activities/SplashActivity.java | 8 +--- .../res/values/dashboard_configurations.xml | 39 +++++++++++++------ 5 files changed, 35 insertions(+), 22 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 8c2aa76..001e6f4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -5,7 +5,7 @@ buildscript { maven { url 'https://plugins.gradle.org/m2/' } } dependencies { - classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:0.12.6' + classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:0.12.8' } } apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin' @@ -62,8 +62,8 @@ dependencies { * 6. Done */ - implementation 'com.github.zixpo:candybar:3.7.4' + implementation 'com.github.zixpo:candybar:3.8.0' // Remove '//' below to Enable OneSignal - //implementation 'com.onesignal:OneSignal:3.12.4' + // implementation 'com.onesignal:OneSignal:3.15.0' } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index d30b505..7aae91a 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -47,7 +47,7 @@ android:name=".activities.MainActivity" android:launchMode="singleTop" android:theme="@style/AppTheme" - android:configChanges="orientation|keyboardHidden|screenSize"> + android:configChanges="uiMode|orientation|keyboardHidden|screenSize"> diff --git a/app/src/main/java/com/candybar/sample/activities/MainActivity.java b/app/src/main/java/com/candybar/sample/activities/MainActivity.java index 68a185b..8e869f6 100644 --- a/app/src/main/java/com/candybar/sample/activities/MainActivity.java +++ b/app/src/main/java/com/candybar/sample/activities/MainActivity.java @@ -3,7 +3,7 @@ import androidx.annotation.NonNull; import candybar.lib.activities.CandyBarMainActivity; -import candybar.lib.activities.configurations.ActivityConfiguration; + import com.candybar.sample.licenses.License; public class MainActivity extends CandyBarMainActivity { diff --git a/app/src/main/java/com/candybar/sample/activities/SplashActivity.java b/app/src/main/java/com/candybar/sample/activities/SplashActivity.java index 44a5f36..6ca06e6 100644 --- a/app/src/main/java/com/candybar/sample/activities/SplashActivity.java +++ b/app/src/main/java/com/candybar/sample/activities/SplashActivity.java @@ -3,15 +3,11 @@ import androidx.annotation.NonNull; import candybar.lib.activities.CandyBarSplashActivity; -import candybar.lib.activities.configurations.SplashScreenConfiguration; -import com.candybar.sample.R; public class SplashActivity extends CandyBarSplashActivity { - @NonNull @Override - public SplashScreenConfiguration onInit() { - return new SplashScreenConfiguration(MainActivity.class) - .setBottomText(getString(R.string.splash_screen_title)); + public Class getMainActivity() { + return MainActivity.class; } } diff --git a/app/src/main/res/values/dashboard_configurations.xml b/app/src/main/res/values/dashboard_configurations.xml index 28d21f5..1123125 100644 --- a/app/src/main/res/values/dashboard_configurations.xml +++ b/app/src/main/res/values/dashboard_configurations.xml @@ -68,13 +68,13 @@ - https://play.google.com/store/apps/details?id=thisPackage + You can use special keyword `{{packageName}}`, `{{packageName}}` will be replaced with your app's package name --> + https://play.google.com/store/apps/details?id={{packageName}} - https://play.google.com/store/apps/details?id=thisPackage + You can use special keyword `{{packageName}}`, `{{packageName}}` will be replaced with your app's package name --> + https://play.google.com/store/apps/details?id={{packageName}} @@ -125,6 +125,10 @@ true + + false + @@ -176,15 +180,28 @@ If you want to hide the information then you should enable this --> false - - yourmail@example.com + + email + + + + youremail@example.com + - - + + - - + + + + Learn more at https://github.com/zixpo/candybar-sample/wiki/Setting-up-the-config-json -->