-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathbuild.gradle
More file actions
62 lines (55 loc) · 1.93 KB
/
build.gradle
File metadata and controls
62 lines (55 loc) · 1.93 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
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'realm-android'
android {
namespace 'com.mongodb.realm.example'
// androidx.lifecycle dependencies requires Android APIs 31 or later
compileSdkVersion 31
buildToolsVersion rootProject.buildTools
defaultConfig {
applicationId 'com.mongodb.realm.example'
targetSdkVersion rootProject.sdkVersion
minSdkVersion rootProject.minSdkVersion
versionCode 1
versionName "1.0"
}
dataBinding {
enabled = true
}
buildTypes {
// Configure server and App Id.
// The default server is https://realm-dev.mongodb.com/ . Go to that and copy the MongoDB
// Realm App Id.
//
// If you are running a local version of MongoDB Realm, modify endpoint accordingly. Most
// likely it is "http://localhost:9090"
def mongodbRealmUrl = "https://realm-dev.mongodb.com"
def appId = "my-app-id"
debug {
buildConfigField "String", "MONGODB_REALM_URL", "\"${mongodbRealmUrl}\""
buildConfigField "String", "MONGODB_REALM_APP_ID", "\"${appId}\""
minifyEnabled true
}
release {
buildConfigField "String", "MONGODB_REALM_URL", "\"${mongodbRealmUrl}\""
buildConfigField "String", "MONGODB_REALM_APP_ID", "\"${appId}\""
minifyEnabled true
signingConfig signingConfigs.debug
}
}
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}
realm {
syncEnabled = true
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.4.2'
implementation 'com.google.android.material:material:1.6.1'
implementation 'me.zhanghai.android.materialprogressbar:library:1.6.1'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}