OSDN Git Service

Taskbar 3.7 (release 1)
[android-x86/packages-apps-Taskbar.git] / app / build.gradle
1 ext {
2     SUPPORT_LIBRARY_VERSION = "26.1.0"
3 }
4
5 buildscript {
6     repositories {
7         mavenCentral()
8     }
9
10     dependencies {
11         classpath 'me.tatarka:gradle-retrolambda:3.7.0'
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 26
30     buildToolsVersion "26.0.1"
31
32     defaultConfig {
33         applicationId "com.farmerbb.taskbar"
34         minSdkVersion 21
35         targetSdkVersion 26
36
37         versionCode 162
38         versionName "3.7"
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         buildConfigField "String", "ANDROIDX86_APPLICATION_ID", "\"com.farmerbb.taskbar.androidx86\""
46     }
47
48     compileOptions {
49         sourceCompatibility JavaVersion.VERSION_1_8
50         targetCompatibility JavaVersion.VERSION_1_8
51     }
52
53     signingConfigs {
54         release {
55             if(System.getenv("KSTOREFILE") != null)
56                 storeFile file(System.getenv("KSTOREFILE"))
57
58             storePassword System.getenv("KSTOREPWD")
59             keyAlias System.getenv("KEYALIAS")
60             keyPassword System.getenv("KEYPWD")
61         }
62     }
63
64     buildTypes {
65         debug {
66             applicationIdSuffix ".debug"
67             manifestPlaceholders = [appName: "@string/app_name_debug"]
68         }
69
70         release {
71             minifyEnabled true
72             shrinkResources true
73             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
74             signingConfig signingConfigs.release
75             manifestPlaceholders = [appName: "@string/app_name"]
76         }
77     }
78
79     productFlavors {
80         paid {
81             applicationId "com.farmerbb.taskbar.paid"
82         }
83
84         free {
85             applicationId "com.farmerbb.taskbar"
86         }
87     }
88 }
89
90 dependencies {
91     compile fileTree(dir: 'libs', include: ['*.jar'])
92     compile "com.android.support:appcompat-v7:${SUPPORT_LIBRARY_VERSION}"
93     compile "com.android.support:design:${SUPPORT_LIBRARY_VERSION}"
94     compile 'com.mikepenz:iconics-core:2.9.3@aar'
95     compile 'com.mikepenz:foundation-icons-typeface:3.0.0.3@aar'
96     compile 'moe.banana:toast-compat:1.0.5'
97 }
98