Android Studio 3.0 preview 3

gtask_note_sync
Alex Baker 7 years ago
parent 53c9a64bb2
commit 5dea43bb4a

@ -10,7 +10,7 @@ android:
- tools # https://github.com/travis-ci/travis-ci/issues/6040
- android-25
- platform-tools
- build-tools-25.0.2
- build-tools-25.0.3
- extra-android-m2repository
- extra-google-m2repository
licenses:
@ -23,5 +23,5 @@ before_install:
- adb shell input keyevent 82 &
script:
- ./gradlew :lintGoogleplayProdDebug
- ./gradlew :connectedGoogleplayProdDebugAndroidTest
- ./gradlew :lintGoogleplayDebug
- ./gradlew :connectedGoogleplayDebugAndroidTest

@ -7,10 +7,13 @@ task wrapper(type: Wrapper) {
buildscript {
repositories {
jcenter()
maven {
url 'https://maven.google.com'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.2'
classpath 'com.android.tools.build:gradle:3.0.0-alpha3'
}
}
@ -33,10 +36,8 @@ android {
versionCode 457
versionName "4.9.14"
targetSdkVersion 25
minSdkVersion 15
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
jackOptions {
enabled true
}
}
signingConfigs {
@ -59,7 +60,7 @@ android {
}
}
flavorDimensions 'store', 'env'
flavorDimensions 'store'
productFlavors {
generic {
@ -71,14 +72,6 @@ android {
amazon {
dimension 'store'
}
dev {
minSdkVersion 21
dimension 'env'
}
prod {
minSdkVersion 15
dimension 'env'
}
}
if (project.hasProperty('keyAlias') &&
@ -114,7 +107,9 @@ dependencies {
annotationProcessor "com.jakewharton:butterknife-compiler:${BUTTERKNIFE_VERSION}"
compile "com.jakewharton:butterknife:${BUTTERKNIFE_VERSION}"
debugCompile "com.facebook.stetho:stetho:${STETHO_VERSION}"
debugCompile ("com.facebook.stetho:stetho:${STETHO_VERSION}") {
exclude group: 'com.google.code.findbugs', module: 'jsr305'
}
debugCompile "com.facebook.stetho:stetho-timber:${STETHO_VERSION}@aar"
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5'
//noinspection GradleCompatible

@ -137,7 +137,7 @@ public class BasicPreferences extends InjectingPreferenceActivity implements
});
findPreference(R.string.TLA_menu_donate).setOnPreferenceClickListener(preference -> {
if (BuildConfig.FLAVOR_store.equals("googleplay")) {
if (BuildConfig.FLAVOR.equals("googleplay")) {
newDonationDialog().show(getFragmentManager(), FRAG_TAG_DONATION);
} else {
startActivity(new Intent(Intent.ACTION_VIEW).setData(Uri.parse("http://tasks.org/donate")));
@ -214,7 +214,7 @@ public class BasicPreferences extends InjectingPreferenceActivity implements
requires(R.string.get_plugins, atLeastJellybeanMR1(), R.string.p_purchased_dashclock);
requires(R.string.settings_localization, atLeastJellybeanMR1(), R.string.p_language, R.string.p_layout_direction);
if (!BuildConfig.FLAVOR_store.equals("googleplay")) {
if (!BuildConfig.FLAVOR.equals("googleplay")) {
requires(R.string.settings_general, false, R.string.synchronization);
requires(R.string.privacy, false, R.string.p_collect_statistics);
}

Loading…
Cancel
Save