Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
77 lines (71 sloc) 2.73 KB
apply plugin: 'com.android.application'
def keystorePropertiesFile = rootProject.file("keystore.properties")
// Initialize a new Properties() object called keystoreProperties.
def keystoreProperties = new Properties()
// Load your keystore.properties file into the keystoreProperties object.
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
android {
signingConfigs {
config {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
compileSdkVersion 23
buildToolsVersion "23.0.1"
dexOptions {
maxProcessCount 4 // this is the default value
javaMaxHeapSize "2g"
}
defaultConfig {
applicationId "com.deepakvadgama.radhekrishnabhakti"
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0"
buildConfigField "String", "SERVER_ADDRESS", "\"http://104.199.165.151:8080\""
}
productFlavors {
dev {
// dev utilizes minSDKVersion = 21 to allow the Android gradle plugin
// to pre-dex each module and produce an APK that can be tested on
// Android Lollipop without time consuming dex merging processes.
minSdkVersion 21
signingConfig signingConfigs.config
}
prod {
minSdkVersion 16
signingConfig signingConfigs.config
}
}
buildTypes {
debug {
// buildConfigField "String", "SERVER_ADDRESS", "\"http://192.168.0.247:8080\""
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile files('libs/YouTubeAndroidPlayerApi.jar')
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:support-v4:23.3.0'
compile 'com.android.support:recyclerview-v7:23.3.0'
compile 'com.android.support:cardview-v7:23.3.0'
compile 'com.android.support:design:23.3.0'
compile 'com.google.code.gson:gson:2.6.2'
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.3.1'
compile 'com.google.android.gms:play-services-auth:9.2.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.github.jd-alexander:likebutton:0.2.0'
compile 'com.google.android.gms:play-services-analytics:9.2.0'
}
//apply plugin: 'com.google.gms.google-services'