OSDN Git Service

Update Retrolambda
[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.1'
12     }
13 }
14
15 apply plugin: 'com.android.application'
16 apply plugin: 'me.tatarka.retrolambda'
17
18 repositories {
19     maven {
20         url "https://maven.google.com"
21     }
22
23     maven {
24         url "https://jitpack.io"
25     }
26 }
27
28 android {
29     compileSdkVersion 25
30     buildToolsVersion "25.0.2"
31
32     defaultConfig {
33         applicationId "com.farmerbb.taskbar"
34         minSdkVersion 21
35         targetSdkVersion 25
36
37         versionCode 148
38         versionName "3.4"
39
40         resConfigs "en", "ja", "ru", "de"
41
42         buildConfigField "String", "BASE_APPLICATION_ID", "\"com.farmerbb.taskbar\""
43         buildConfigField "String", "PAID_APPLICATION_ID", "\"com.farmerbb.taskbar.paid\""
44         buildConfigField "String", "SUPPORT_APPLICATION_ID", "\"com.farmerbb.taskbar.support\""
45     }
46
47     compileOptions {
48         sourceCompatibility JavaVersion.VERSION_1_8
49         targetCompatibility JavaVersion.VERSION_1_8
50     }
51
52     signingConfigs {
53         release {
54             if(System.getenv("KSTOREFILE") != null)
55                 storeFile file(System.getenv("KSTOREFILE"))
56
57             storePassword System.getenv("KSTOREPWD")
58             keyAlias System.getenv("KEYALIAS")
59             keyPassword System.getenv("KEYPWD")
60         }
61     }
62
63     buildTypes {
64         debug {
65             applicationIdSuffix ".debug"
66             manifestPlaceholders = [appName: "@string/app_name_debug"]
67         }
68
69         release {
70             minifyEnabled true
71             shrinkResources true
72             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
73             signingConfig signingConfigs.release
74             manifestPlaceholders = [appName: "@string/app_name"]
75         }
76     }
77
78     productFlavors {
79         paid {
80             applicationId "com.farmerbb.taskbar.paid"
81         }
82
83         free {
84             applicationId "com.farmerbb.taskbar"
85         }
86     }
87 }
88
89 dependencies {
90     compile fileTree(dir: 'libs', include: ['*.jar'])
91     compile "com.android.support:appcompat-v7:${SUPPORT_LIBRARY_VERSION}"
92     compile "com.android.support:design:${SUPPORT_LIBRARY_VERSION}"
93     compile 'com.github.enricocid:cpl:1.0.2'
94     compile 'com.mikepenz:iconics-core:2.8.3@aar'
95     compile 'com.mikepenz:foundation-icons-typeface:3.0.0.2@aar'
96     compile 'moe.banana:toast-compat:1.0.5'
97 }
98