Android Studio 3.0 preview 3

pull/574/head
Alex Baker 9 years ago
parent 53c9a64bb2
commit 5dea43bb4a

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

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

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

Loading…
Cancel
Save