2017-04-23 07:42:09 +02:00
|
|
|
import java.text.SimpleDateFormat
|
|
|
|
|
2017-04-20 18:23:59 +02:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
android {
|
2017-04-23 07:42:09 +02:00
|
|
|
compileSdkVersion 25
|
|
|
|
buildToolsVersion '25.0.2'
|
2017-04-20 18:23:59 +02:00
|
|
|
defaultConfig {
|
|
|
|
applicationId "jp.juggler.subwaytooter"
|
|
|
|
minSdkVersion 21
|
2017-04-23 07:42:09 +02:00
|
|
|
targetSdkVersion 25
|
2017-05-03 02:34:28 +02:00
|
|
|
versionCode 32
|
|
|
|
versionName "0.3.2"
|
2017-04-20 18:23:59 +02:00
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
2017-04-25 16:47:27 +02:00
|
|
|
|
2017-04-20 18:23:59 +02:00
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
2017-04-25 16:47:27 +02:00
|
|
|
|
2017-04-23 07:42:09 +02:00
|
|
|
productFlavors {
|
|
|
|
rc {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Generate Signed APK のファイル名を変更
|
|
|
|
applicationVariants.all { variant ->
|
|
|
|
if (variant.buildType.name == "release") {
|
|
|
|
variant.outputs.each { output ->
|
|
|
|
if (output.outputFile != null && output.outputFile.name.endsWith('.apk')) {
|
|
|
|
// Rename APK
|
|
|
|
def versionCode = defaultConfig.versionCode
|
|
|
|
def versionName = defaultConfig.versionName
|
|
|
|
def flavor = variant.flavorName
|
|
|
|
def date = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date())
|
|
|
|
def newName = "SubwayTooter-${flavor}-${versionCode}-${versionName}-${date}.apk"
|
|
|
|
output.outputFile = new File((String) output.outputFile.parent, (String) newName)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-04-20 18:23:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2017-04-23 07:42:09 +02:00
|
|
|
compile fileTree(include: ['*.jar'], dir: 'libs')
|
2017-04-20 18:23:59 +02:00
|
|
|
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
|
|
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
|
|
})
|
2017-04-23 07:42:09 +02:00
|
|
|
compile 'com.android.support:appcompat-v7:25.3.1'
|
|
|
|
compile 'com.android.support:support-v4:25.3.1'
|
|
|
|
compile 'com.android.support:design:25.3.1'
|
|
|
|
compile 'com.android.support:customtabs:25.3.1'
|
2017-04-20 18:23:59 +02:00
|
|
|
compile 'com.android.support.constraint:constraint-layout:1.0.2'
|
|
|
|
testCompile 'junit:junit:4.12'
|
2017-04-21 14:45:40 +02:00
|
|
|
compile 'com.android.volley:volley:1.0.0'
|
2017-04-22 16:45:26 +02:00
|
|
|
compile 'com.squareup.okhttp3:okhttp:3.7.0'
|
|
|
|
compile 'commons-io:commons-io:2.4'
|
|
|
|
compile 'uk.co.chrisjenx:calligraphy:2.2.0'
|
2017-04-23 07:42:09 +02:00
|
|
|
compile 'com.github.woxthebox:draglistview:1.4.3'
|
|
|
|
compile 'com.github.omadahealth:swipy:1.2.3@aar'
|
2017-05-03 01:42:07 +02:00
|
|
|
compile 'com.jrummyapps:colorpicker:2.1.6'
|
2017-04-20 18:23:59 +02:00
|
|
|
}
|