Przeglądaj źródła

Prepare for dev releases

inorichi 9 lat temu
rodzic
commit
79229d9c6a

+ 3 - 0
app/build.gradle

@@ -53,6 +53,9 @@ android {
     }
 
     buildTypes {
+        debug {
+            applicationIdSuffix ".debug"
+        }
         release {
             minifyEnabled true
             shrinkResources true

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/App.java

@@ -13,7 +13,7 @@ import eu.kanade.tachiyomi.injection.module.AppModule;
 import timber.log.Timber;
 
 @ReportsCrashes(
-        formUri = "http://mangafeed.kanade.eu/crash_report",
+        formUri = "http://tachiyomi.kanade.eu/crash_report",
         reportType = org.acra.sender.HttpSender.Type.JSON,
         httpMethod = org.acra.sender.HttpSender.Method.PUT,
         excludeMatchingSharedPreferencesKeys={".*username.*",".*password.*"}

+ 0 - 40
app/src/test/java/eu/kanade/tachiyomi/MainActivityTest.java

@@ -1,40 +0,0 @@
-package eu.kanade.tachiyomi;
-
-/**
- * Created by len on 1/10/15.
- */
-import android.os.Build;
-import android.support.v7.widget.Toolbar;
-
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.robolectric.Robolectric;
-import org.robolectric.RobolectricGradleTestRunner;
-import org.robolectric.annotation.Config;
-
-import eu.kanade.tachiyomi.ui.main.MainActivity;
-
-import static junit.framework.Assert.assertNotNull;
-import static junit.framework.Assert.assertTrue;
-
-@Config(constants = BuildConfig.class, sdk = Build.VERSION_CODES.LOLLIPOP)
-@RunWith(RobolectricGradleTestRunner.class)
-public class MainActivityTest {
-    private MainActivity activity;
-
-    // @Before => JUnit 4 annotation that specifies this method should run before each test is run
-    // Useful to do setup for objects that are needed in the test
-    @Before
-    public void setup() {
-        // Convenience method to run MainActivity through the Activity Lifecycle methods:
-        // onCreate(...) => onStart() => onPostCreate(...) => onResume()
-        activity = Robolectric.setupActivity(MainActivity.class);
-    }
-
-    @Test
-    public void validate() {
-        Toolbar toolbar = (Toolbar)activity.findViewById(R.id.toolbar);
-        assertNotNull(toolbar);
-    }
-}