OSDN Git Service

Merge pull request #5 from farmerbb/master
[android-x86/packages-apps-Taskbar.git] / app / build.gradle
1 ext {
2     SUPPORT_LIBRARY_VERSION = "25.3.1"
3 }
4
5 buildscript {
6     repositories {
7         mavenCentral()
8     }
9
10     dependencies {
11         classpath 'me.tatarka:gradle-retrolambda:3.6.0'
12     }
13 }
14
15 apply plugin: 'com.android.application'
16 apply plugin: 'me.tatarka.retrolambda'
17
18 repositories {
19     maven {
20         url "https://jitpack.io"
21     }
22 }
23
24 android {
25     compileSdkVersion 25
26     buildToolsVersion "25.0.2"
27
28     defaultConfig {
29         applicationId "com.farmerbb.taskbar"
30         minSdkVersion 21
31         targetSdkVersion 25
32
33         versionCode 141
34         versionName "3.3.2"
35
36         resConfigs "en", "ja", "ru", "de"
37
38         buildConfigField "String", "BASE_APPLICATION_ID", "\"com.farmerbb.taskbar\""
39         buildConfigField "String", "PAID_APPLICATION_ID", "\"com.farmerbb.taskbar.paid\""
40         buildConfigField "String", "SUPPORT_APPLICATION_ID", "\"com.farmerbb.taskbar.support\""
41     }
42
43     compileOptions {
44         sourceCompatibility JavaVersion.VERSION_1_8
45         targetCompatibility JavaVersion.VERSION_1_8
46     }
47
48     signingConfigs {
49         release {
50             if(System.getenv("KSTOREFILE") != null)
51                 storeFile file(System.getenv("KSTOREFILE"))
52
53             storePassword System.getenv("KSTOREPWD")
54             keyAlias System.getenv("KEYALIAS")
55             keyPassword System.getenv("KEYPWD")
56         }
57     }
58
59     buildTypes {
60         debug {
61             applicationIdSuffix ".debug"
62             manifestPlaceholders = [appName: "@string/app_name_debug"]
63         }
64
65         release {
66             minifyEnabled true
67             shrinkResources true
68             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
69             signingConfig signingConfigs.release
70             manifestPlaceholders = [appName: "@string/app_name"]
71         }
72     }
73
74     productFlavors {
75         paid {
76             applicationId "com.farmerbb.taskbar.paid"
77         }
78
79         free {
80             applicationId "com.farmerbb.taskbar"
81         }
82     }
83 }
84
85 dependencies {
86     compile fileTree(dir: 'libs', include: ['*.jar'])
87     compile "com.android.support:appcompat-v7:${SUPPORT_LIBRARY_VERSION}"
88     compile "com.android.support:design:${SUPPORT_LIBRARY_VERSION}"
89     compile 'com.github.enricocid:cpl:1.0.2'
90     compile 'moe.banana:toast-compat:1.0.5'
91 }
92