diff --git a/app/build.gradle b/app/build.gradle.example similarity index 82% rename from app/build.gradle rename to app/build.gradle.example index 6ecc0a0..f47f314 100644 --- a/app/build.gradle +++ b/app/build.gradle.example @@ -8,7 +8,7 @@ android { defaultConfig { applicationId "me.sergiotarxz.bedrockstation" - minSdk 33 + minSdk 14 targetSdk 34 versionCode 1 versionName "1.0" @@ -16,12 +16,23 @@ android { testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } + signingConfigs { + release { + storeFile file("") + storePassword "" + keyAlias "" + keyPassword "" + } + } + buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + signingConfig signingConfigs.release } } + compileOptions { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 diff --git a/app/src/free/res/values/strings.xml b/app/src/free/res/values/strings.xml new file mode 100644 index 0000000..4fc1a9f --- /dev/null +++ b/app/src/free/res/values/strings.xml @@ -0,0 +1,3 @@ + + BedrockStation (Demo) + diff --git a/app/src/main/java/me/sergiotarxz/bedrockstation/CountDownStartProxy.java b/app/src/main/java/me/sergiotarxz/bedrockstation/CountDownStartProxy.java index 2abc639..fbde108 100644 --- a/app/src/main/java/me/sergiotarxz/bedrockstation/CountDownStartProxy.java +++ b/app/src/main/java/me/sergiotarxz/bedrockstation/CountDownStartProxy.java @@ -42,13 +42,18 @@ import android.os.Handler; import android.os.Message; public class CountDownStartProxy extends AppCompatActivity { - static int SECONDS = 5; + static int SECONDS = 60; int seconds = SECONDS; TextView secondsToWaitTextView; Timer timer; int messageNumber = 0; static AppCompatActivity activity; @Override + protected void onStop() { + super.onStop(); + timer.cancel(); + } + @Override protected void onStart() { super.onStart(); seconds = SECONDS; diff --git a/app/src/main/java/me/sergiotarxz/bedrockstation/MainActivity.java b/app/src/main/java/me/sergiotarxz/bedrockstation/MainActivity.java index c352cc2..27d9517 100644 --- a/app/src/main/java/me/sergiotarxz/bedrockstation/MainActivity.java +++ b/app/src/main/java/me/sergiotarxz/bedrockstation/MainActivity.java @@ -164,6 +164,7 @@ public class MainActivity extends AppCompatActivity { options.set(Options.PORT_SELECTED, options.get(Options.PORT_CACHE)); if (Premium.ENABLED) { startServiceProxy(); + return; } Intent intent = new Intent(this, CountDownStartProxy.class); startActivity(intent); @@ -390,6 +391,7 @@ public class MainActivity extends AppCompatActivity { if (isGranted) { if (Premium.ENABLED) { startServiceProxy(); + return; } Intent intent = new Intent(this, CountDownStartProxy.class); startActivity(intent); diff --git a/stupid_art_for_google.kra b/stupid_art_for_google.kra new file mode 100644 index 0000000..b21088e Binary files /dev/null and b/stupid_art_for_google.kra differ diff --git a/stupid_art_for_google.png b/stupid_art_for_google.png new file mode 100644 index 0000000..00469a4 Binary files /dev/null and b/stupid_art_for_google.png differ