forked from dropbox/dropbox-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
73 lines (64 loc) · 2.34 KB
/
build.gradle
File metadata and controls
73 lines (64 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
plugins {
id 'com.android.application'
id 'kotlin-android'
}
android {
compileSdkVersion 32
buildToolsVersion "30.0.3"
defaultConfig {
applicationId "com.dropbox.dropboxexample"
minSdkVersion 23
targetSdkVersion 32
versionCode 1
versionName "1.0"
Properties localProperties = getLocalProperties()
String dropboxKey = localProperties['DROPBOX_KEY']
if (dropboxKey == null) {
logger.warn("No value provided for DROPBOX_KEY (Dropbox API Key). Specify a value in a examples/DropboxAndroid/local.properties file. You can register for one at https://developers.dropbox.com/")
dropboxKey = "PUT_YOUR_API_KEY_HERE"
}
buildConfigField "String", "DROPBOX_KEY", "\"${dropboxKey}\""
manifestPlaceholders = [dropboxKey: dropboxKey]
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
minifyEnabled false
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
viewBinding true
}
}
dependencies {
implementation "com.dropbox.core:dropbox-core-sdk:5.3.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.7.10"
implementation 'androidx.core:core-ktx:1.8.0'
implementation 'androidx.appcompat:appcompat:1.4.2'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4'
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.5.1"
implementation 'com.github.bumptech.glide:glide:4.12.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}
def getLocalProperties() {
Properties props = new Properties()
if (file('../local.properties').exists()) {
props.load(new FileInputStream(file('../local.properties')))
}
return props
}