/
build.gradle
50 lines (44 loc) · 1.81 KB
/
build.gradle
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
apply plugin: 'com.android.application'
apply plugin: 'realm-android'
android {
compileSdkVersion rootProject.sdkVersion
buildToolsVersion rootProject.buildTools
defaultConfig {
applicationId 'io.realm.examples.objectserver'
targetSdkVersion rootProject.sdkVersion
minSdkVersion rootProject.minSdkVersion
versionCode 1
versionName "1.0"
}
buildTypes {
// Go to https://cloud.realm.io and copy the URL to your instance. Insert it below.
// It will look something like "https://test.us1.cloud.realm.io"
//
// If you're running a self-hosted version, use the hostname/IP address of the Realm Object
// Server, e.g "http://127.0.0.1:9080".
def rosUrl = "<INSERT_REALM_OBJECT_SERVER_URL>"
def realmAuthUrl = "\"${rosUrl}/auth\""
def realmUrl = "\"${rosUrl.replace("http", "realm")}/default\""
debug {
buildConfigField "String", "REALM_AUTH_URL", "${realmAuthUrl}"
buildConfigField "String", "REALM_URL", "${realmUrl}"
minifyEnabled true
}
release {
buildConfigField "String", "REALM_AUTH_URL", "${realmAuthUrl}"
buildConfigField "String", "REALM_URL", "${realmUrl}"
minifyEnabled true
signingConfig signingConfigs.debug
}
}
}
realm {
syncEnabled = true
}
dependencies {
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'me.zhanghai.android.materialprogressbar:library:1.3.0'
implementation 'com.jakewharton:butterknife:8.8.1'//TODO:Can be refactored with Native Android Data Binding
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'//TODO:Can be refactored with Native Android Data Binding
}