Last active
September 3, 2016 20:11
-
-
Save Zhuinden/9cba56093c62bc5e89de22d29c15fc97 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
//apply plugin: 'com.neenbedankt.android-apt' | |
//apply plugin: 'me.tatarka.retrolambda' | |
apply plugin: 'realm-android' | |
android { | |
compileSdkVersion 24 | |
buildToolsVersion "24.0.2" | |
//compileOptions { | |
// sourceCompatibility JavaVersion.VERSION_1_8 | |
// targetCompatibility JavaVersion.VERSION_1_8 | |
//} | |
defaultConfig { | |
applicationId "com.zhuinden.realmtutorial" | |
minSdkVersion 14 | |
targetSdkVersion 24 | |
versionCode 1 | |
versionName "1.0" | |
} | |
buildTypes { | |
release { | |
minifyEnabled false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
} | |
packagingOptions { | |
// Exclude file to avoid | |
// Error: Duplicate files during packaging of APK | |
exclude 'META-INF/DEPENDENCIES' | |
exclude 'META-INF/LICENSE' | |
exclude 'META-INF/LICENSE.txt' | |
exclude 'META-INF/license.txt' | |
exclude 'META-INF/NOTICE' | |
exclude 'META-INF/NOTICE.txt' | |
exclude 'META-INF/notice.txt' | |
exclude 'META-INF/ASL2.0' | |
exclude 'META-INF/services/javax.annotation.processing.Processor' | |
} | |
} | |
dependencies { | |
compile fileTree(dir: 'libs', include: ['*.jar']) | |
testCompile 'junit:junit:4.12' | |
compile 'com.android.support:appcompat-v7:24.2.0' | |
compile 'io.realm:android-adapters:1.3.0' // added this line | |
// compile 'dk.ilios:realmfieldnameshelper:1.0.0' // add this for auto-generated __Fields | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment