1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2025-01-29 01:59:38 +01:00

134 lines
4.4 KiB
Groovy
Raw Normal View History

2017-04-23 14:42:09 +09:00
import java.text.SimpleDateFormat
2017-04-21 01:23:59 +09:00
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
2018-01-19 18:37:04 +09:00
// apply plugin: 'kotlin-android-extensions'
2017-04-21 01:23:59 +09:00
android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
2017-04-21 01:23:59 +09:00
defaultConfig {
applicationId "jp.juggler.subwaytooter"
minSdkVersion 21
targetSdkVersion 27
versionCode 227
versionName "2.2.7"
2017-04-21 01:23:59 +09:00
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
// https://stackoverflow.com/questions/47791227/java-lang-illegalstateexception-dex-archives-setting-dex-extension-only-for
multiDexEnabled true
2017-04-21 01:23:59 +09:00
}
2017-04-21 01:23:59 +09:00
buildTypes {
release {
2018-01-13 15:52:07 +09:00
minifyEnabled false
shrinkResources false
2017-04-21 01:23:59 +09:00
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
// Specifies comma-separated list of flavor dimensions.
flavorDimensions "rcOrDev"
2017-04-23 14:42:09 +09:00
productFlavors {
rc {
dimension "rcOrDev"
2017-04-23 14:42:09 +09:00
}
}
dexOptions {
jumboMode = true
}
2017-04-23 14:42:09 +09:00
// Generate Signed APK のファイル名を変更
android.applicationVariants.all { variant ->
2017-04-23 14:42:09 +09:00
if (variant.buildType.name == "release") {
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 14:42:09 +09:00
}
}
}
2017-04-21 01:23:59 +09:00
}
dependencies {
2017-04-23 14:42:09 +09:00
compile fileTree(include: ['*.jar'], dir: 'libs')
2017-04-21 01:23:59 +09:00
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
2017-12-12 06:18:17 +09:00
2018-01-29 04:03:04 +09:00
implementation project(':exif')
implementation project(':colorpicker')
implementation project(':emoji')
implementation project(':apng_android')
compile 'com.android.support:support-v4:27.1.0'
compile 'com.android.support:appcompat-v7:27.1.0'
compile 'com.android.support:design:27.1.0'
compile 'com.android.support:customtabs:27.1.0'
compile 'com.android.support:support-v13:27.1.0'
2017-12-12 06:18:17 +09:00
compile 'com.google.firebase:firebase-core:11.8.0'
compile 'com.google.firebase:firebase-messaging:11.8.0'
2018-01-19 06:44:32 +09:00
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
2018-01-11 18:31:25 +09:00
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
testCompile 'junit:junit:4.12' // しばらくはjunitと併用
// compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.21.2'
2018-01-12 18:01:25 +09:00
compile 'uk.co.chrisjenx:calligraphy:2.3.0'
compile 'com.github.woxthebox:draglistview:1.5.1'
2017-04-23 14:42:09 +09:00
compile 'com.github.omadahealth:swipy:1.2.3@aar'
// compile 'com.jrummyapps:colorpicker:2.1.7'
compile 'com.github.kenglxn.QRGen:android:2.3.0'
compile 'com.squareup.okhttp3:okhttp:3.9.1'
2018-01-12 18:01:25 +09:00
testImplementation 'com.squareup.okhttp3:mockwebserver:3.9.1'
androidTestCompile 'com.squareup.okhttp3:mockwebserver:3.9.1'
2017-12-21 05:55:51 +09:00
compile 'commons-io:commons-io:2.6'
2017-12-22 12:12:32 +09:00
compile 'com.github.bumptech.glide:glide:4.5.0'
compile 'com.github.bumptech.glide:okhttp3-integration:4.5.0'
compile 'com.github.bumptech.glide:annotations:4.5.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.5.0'
compile 'org.hjson:hjson:3.0.0'
compile 'com.google.android:flexbox:0.3.1'
compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
implementation 'com.google.android.exoplayer:exoplayer:r2.5.4'
compile "org.jetbrains.anko:anko:$anko_version"
// Anko Layouts
compile "org.jetbrains.anko:anko-sdk25:$anko_version" // sdk15, sdk19, sdk21, sdk23 are also available
compile "org.jetbrains.anko:anko-appcompat-v7:$anko_version"
// Coroutine listeners for Anko Layouts
//compile "org.jetbrains.anko:anko-sdk25-coroutines:$anko_version"
//compile "org.jetbrains.anko:anko-appcompat-v7-coroutines:$anko_version"
// compile 'com.simplecityapps:recyclerview-fastscroll:1.0.16'
implementation 'me.drakeet.support:toastcompat:1.0.2'
2017-04-21 01:23:59 +09:00
}
repositories {
mavenCentral()
}
apply plugin: 'com.google.gms.google-services'