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'
|
2017-11-04 15:51:15 +01:00
|
|
|
apply plugin: 'kotlin-android'
|
2017-04-20 18:23:59 +02:00
|
|
|
|
|
|
|
android {
|
2017-08-24 13:44:06 +02:00
|
|
|
compileSdkVersion 26
|
2017-12-11 22:18:50 +01:00
|
|
|
buildToolsVersion '26.0.2'
|
2017-04-20 18:23:59 +02:00
|
|
|
defaultConfig {
|
|
|
|
applicationId "jp.juggler.subwaytooter"
|
|
|
|
minSdkVersion 21
|
2017-08-24 13:44:06 +02:00
|
|
|
targetSdkVersion 26
|
2018-01-02 17:17:16 +01:00
|
|
|
versionCode 197
|
|
|
|
versionName "1.9.7"
|
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-11-04 15:51:15 +01:00
|
|
|
// Specifies comma-separated list of flavor dimensions.
|
|
|
|
flavorDimensions "rcOrDev"
|
|
|
|
|
2017-04-23 07:42:09 +02:00
|
|
|
productFlavors {
|
|
|
|
rc {
|
2017-11-04 15:51:15 +01:00
|
|
|
dimension "rcOrDev"
|
2017-04-23 07:42:09 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-04 15:51:15 +01:00
|
|
|
dexOptions {
|
|
|
|
jumboMode = true
|
|
|
|
}
|
|
|
|
|
2017-04-23 07:42:09 +02:00
|
|
|
// Generate Signed APK のファイル名を変更
|
2017-11-04 15:51:15 +01:00
|
|
|
android.applicationVariants.all { variant ->
|
2017-04-23 07:42:09 +02:00
|
|
|
if (variant.buildType.name == "release") {
|
2017-11-04 15:51:15 +01:00
|
|
|
variant.outputs.all {
|
|
|
|
// Rename APK
|
|
|
|
def versionCode = defaultConfig.versionCode
|
|
|
|
def versionName = defaultConfig.versionName
|
|
|
|
def flavor = variant.flavorName
|
|
|
|
def date = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date())
|
|
|
|
outputFileName = "../../SubwayTooter-${flavor}-${versionCode}-${versionName}-${date}.apk"
|
2017-04-23 07:42:09 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-11-04 15:51:15 +01:00
|
|
|
|
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-12-11 22:18:17 +01:00
|
|
|
|
2017-12-22 13:59:52 +01:00
|
|
|
compile project(':exif')
|
|
|
|
compile project(':colorpicker')
|
2017-12-11 22:18:17 +01:00
|
|
|
|
2017-11-04 15:51:15 +01:00
|
|
|
compile 'com.android.support:support-v4:26.1.0'
|
|
|
|
compile 'com.android.support:appcompat-v7:26.1.0'
|
|
|
|
compile 'com.android.support:design:26.1.0'
|
|
|
|
compile 'com.android.support:customtabs:26.1.0'
|
2017-08-24 13:44:06 +02:00
|
|
|
|
2017-12-20 17:10:42 +01:00
|
|
|
compile 'com.google.firebase:firebase-core:11.6.2'
|
|
|
|
compile 'com.google.firebase:firebase-messaging:11.6.2'
|
2017-05-19 01:20:42 +02:00
|
|
|
|
2017-04-20 18:23:59 +02:00
|
|
|
testCompile 'junit:junit:4.12'
|
2017-12-20 17:09:21 +01:00
|
|
|
compile 'uk.co.chrisjenx:calligraphy:2.3.0'
|
|
|
|
compile 'com.github.woxthebox:draglistview:1.5.1'
|
2017-04-23 07:42:09 +02:00
|
|
|
compile 'com.github.omadahealth:swipy:1.2.3@aar'
|
2017-12-22 13:59:52 +01:00
|
|
|
// compile 'com.jrummyapps:colorpicker:2.1.7'
|
2017-12-20 17:09:21 +01:00
|
|
|
compile 'com.github.kenglxn.QRGen:android:2.3.0'
|
2017-05-19 01:20:42 +02:00
|
|
|
|
2017-12-20 17:11:10 +01:00
|
|
|
compile 'com.squareup.okhttp3:okhttp:3.9.1'
|
2017-12-20 21:55:51 +01:00
|
|
|
|
2017-12-22 04:12:32 +01:00
|
|
|
// commons-io は 2.6にすると closeQuietly のかわりに try-with-resourceを使えと煩い
|
|
|
|
compile 'commons-io:commons-io:2.4'
|
|
|
|
|
2017-12-20 21:55:51 +01:00
|
|
|
// com.github.bumptech.glide 4.x はサポートライブラリ27に依存してる
|
|
|
|
// SDKのソースの27が提供されたら上げる
|
2017-05-19 01:20:42 +02:00
|
|
|
compile 'com.github.bumptech.glide:glide:3.8.0'
|
|
|
|
compile 'com.github.bumptech.glide:okhttp3-integration:1.5.0'
|
2017-05-26 05:48:06 +02:00
|
|
|
|
2017-12-20 17:09:21 +01:00
|
|
|
compile 'org.hjson:hjson:3.0.0'
|
2017-07-26 13:40:55 +02:00
|
|
|
|
2017-12-20 17:09:21 +01:00
|
|
|
compile 'com.google.android:flexbox:0.3.1'
|
2017-09-25 17:10:05 +02:00
|
|
|
|
|
|
|
compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
|
2017-11-04 15:51:15 +01:00
|
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
|
2017-12-21 12:33:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
implementation 'com.google.android.exoplayer:exoplayer:r2.5.4'
|
2017-04-20 18:23:59 +02:00
|
|
|
}
|
2017-05-24 11:20:56 +02:00
|
|
|
|
2017-11-04 15:51:15 +01:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
2017-12-22 13:59:52 +01:00
|
|
|
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|