-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathbuild.gradle
More file actions
70 lines (62 loc) · 2 KB
/
build.gradle
File metadata and controls
70 lines (62 loc) · 2 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
buildscript {
ext.kotlin_version = rootProject.kotlinVersion
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'realm-android'
android {
compileSdkVersion rootProject.sdkVersion
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.mongodb.com/ . Go to that and copy the MongoDB
// Realm App Id.
def mongodbRealmUrl = "https://realm.mongodb.com"
def appId = "counter-app-snuns"
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.2.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel:2.3.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'me.zhanghai.android.materialprogressbar:library:1.6.1'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}