@@ -4,24 +4,30 @@ plugins {
44}
55
66android {
7- compileSdkVersion 30
7+ compileSdkVersion 32
88 buildToolsVersion " 30.0.3"
99
1010 defaultConfig {
1111 applicationId " com.dropbox.dropboxexample"
1212 minSdkVersion 23
13- targetSdkVersion 29 // https://github.com/dropbox/dropbox-sdk-java/issues/321
13+ targetSdkVersion 32
1414 versionCode 1
1515 versionName " 1.0"
1616
1717 Properties localProperties = getLocalProperties()
1818 String dropboxKey = localProperties[' DROPBOX_KEY' ]
19+ if (dropboxKey == null ) {
20+ throw new RuntimeException (" No value provided for DROPBOX_KEY (Dropbox API Key). Specify a value in the local.properties file." )
21+ }
1922 buildConfigField " String" , " DROPBOX_KEY" , " \" ${ dropboxKey} \" "
2023 manifestPlaceholders = [dropboxKey : dropboxKey]
2124 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
2225 }
2326
2427 buildTypes {
28+ debug {
29+ minifyEnabled false
30+ }
2531 release {
2632 minifyEnabled false
2733 proguardFiles getDefaultProguardFile(' proguard-android-optimize.txt' ), ' proguard-rules.pro'
@@ -44,12 +50,12 @@ dependencies {
4450 implementation group : ' com.dropbox.core' , name : ' dropbox-core-sdk' , version : ' +' , changing : true
4551
4652 implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
47- implementation ' androidx.core:core-ktx:1.6 .0'
48- implementation ' androidx.appcompat:appcompat:1.3.0 '
49- implementation ' com.google.android.material:material:1.4 .0'
50- implementation ' androidx.constraintlayout:constraintlayout:2.0.4 '
51- implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.0 '
52- implementation " androidx.lifecycle:lifecycle-runtime-ktx:2.4.0-alpha02 "
53+ implementation ' androidx.core:core-ktx:1.7 .0'
54+ implementation ' androidx.appcompat:appcompat:1.4.1 '
55+ implementation ' com.google.android.material:material:1.6 .0'
56+ implementation ' androidx.constraintlayout:constraintlayout:2.1.3 '
57+ implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1 '
58+ implementation " androidx.lifecycle:lifecycle-runtime-ktx:2.4.1 "
5359 implementation ' com.github.bumptech.glide:glide:4.12.0'
5460
5561 testImplementation ' junit:junit:4.13.2'
0 commit comments