From 9b43ed4ee37d72e58ef4f57ad7182be5173a618a Mon Sep 17 00:00:00 2001 From: Doug Sigelbaum Date: Tue, 12 Jun 2018 23:16:06 -0700 Subject: [PATCH] Move fully to androidx/AGP3.2, and add slice-builders-ktx. --- app/build.gradle | 8 ++++---- app/src/main/res/layout/activity_single_slice_viewer.xml | 4 ++-- app/src/main/res/layout/slice_row.xml | 4 ++-- build.gradle | 2 +- gradle.properties | 2 ++ gradle/wrapper/gradle-wrapper.properties | 4 ++-- 6 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 gradle.properties diff --git a/app/build.gradle b/app/build.gradle index 5c2520bd..5c44a8bb 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -12,15 +12,15 @@ dependencies { implementation "androidx.lifecycle:lifecycle-extensions:2.0.0-alpha1" implementation "androidx.lifecycle:lifecycle-common:2.0.0-alpha1" implementation "androidx.slice:slice-view:1.0.0-alpha3" + implementation "androidx.slice:slice-builders-ktx:1.0.0-alpha3" implementation "androidx.appcompat:appcompat:1.0.0-alpha3" implementation "androidx.cardview:cardview:1.0.0-alpha3" implementation "androidx.core:core-ktx:1.0.0-alpha3" - implementation "androidx.slice:slice-builders-ktx:1.0.0-alpha3" - implementation 'com.android.support.constraint:constraint-layout:1.1.0' + implementation 'androidx.constraintlayout:constraintlayout:1.1.2' } android { - compileSdkVersion "android-P" + compileSdkVersion 28 defaultConfig { applicationId "com.example.android.sliceviewer" @@ -34,4 +34,4 @@ android { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } -} \ No newline at end of file +} diff --git a/app/src/main/res/layout/activity_single_slice_viewer.xml b/app/src/main/res/layout/activity_single_slice_viewer.xml index db6be12e..b896e352 100644 --- a/app/src/main/res/layout/activity_single_slice_viewer.xml +++ b/app/src/main/res/layout/activity_single_slice_viewer.xml @@ -13,7 +13,7 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. --> - - \ No newline at end of file + \ No newline at end of file diff --git a/app/src/main/res/layout/slice_row.xml b/app/src/main/res/layout/slice_row.xml index f1c56dfd..92885c8b 100644 --- a/app/src/main/res/layout/slice_row.xml +++ b/app/src/main/res/layout/slice_row.xml @@ -13,7 +13,7 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. --> - - \ No newline at end of file + \ No newline at end of file diff --git a/build.gradle b/build.gradle index 0582aab4..67eae59c 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:3.1.2' + classpath 'com.android.tools.build:gradle:3.2.0-alpha18' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 00000000..52c5562e --- /dev/null +++ b/gradle.properties @@ -0,0 +1,2 @@ +android.enableJetifier = true +android.useAndroidX = true \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 825b40a0..fd6b29df 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Sun Apr 22 22:43:05 PDT 2018 +#Tue Jun 12 10:02:08 PDT 2018 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip