mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 13:01:50 +01:00
Prepare for dev releases
This commit is contained in:
parent
d25cbe9005
commit
79229d9c6a
@ -53,6 +53,9 @@ android {
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
debug {
|
||||
applicationIdSuffix ".debug"
|
||||
}
|
||||
release {
|
||||
minifyEnabled true
|
||||
shrinkResources true
|
||||
|
@ -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.*"}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user