| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- def localProperties = new Properties()
- def localPropertiesFile = rootProject.file('local.properties')
- if (localPropertiesFile.exists()) {
- localPropertiesFile.withReader('UTF-8') { reader ->
- localProperties.load(reader)
- }
- }
- def flutterRoot = localProperties.getProperty('flutter.sdk')
- if (flutterRoot == null) {
- throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
- }
- def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
- if (flutterVersionCode == null) {
- flutterVersionCode = '1'
- }
- def flutterVersionName = localProperties.getProperty('flutter.versionName')
- if (flutterVersionName == null) {
- flutterVersionName = '1.0'
- }
- apply plugin: 'com.android.application'
- apply plugin: 'kotlin-android'
- apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
- android {
- compileSdkVersion 28
- sourceSets {
- main.java.srcDirs += 'src/main/kotlin'
- }
- lintOptions {
- disable 'InvalidPackage'
- }
- defaultConfig {
- applicationId "com.izouma.wanna_battle"
- minSdkVersion 21
- targetSdkVersion 28
- versionCode flutterVersionCode.toInteger()
- versionName flutterVersionName
- multiDexEnabled true
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- ndk {
- abiFilters 'armeabi-v7a'
- }
- manifestPlaceholders = [
- JPUSH_PKGNAME: applicationId,
- JPUSH_APPKEY : "868cc9036e14c71e2b698f46",
- JPUSH_CHANNEL: "developer-default",
- ]
- }
- signingConfigs {
- debug {
- storeFile file('debug.jks')
- }
- release {
- storeFile file('zouma.jks')
- storePassword "zouma123"
- keyAlias "zouma"
- keyPassword "zouma123"
- }
- }
- buildTypes {
- debug {
- signingConfig signingConfigs.debug
- }
- release {
- signingConfig signingConfigs.release
- minifyEnabled true
- useProguard true
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- configurations.all {
- resolutionStrategy {
- force 'androidx.annotation:annotation:1.0.0'
- }
- }
- }
- flutter {
- source '../..'
- }
- dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- implementation fileTree(include: ['*.aar'], dir: 'libs')
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'androidx.test:core:1.1.0'
- androidTestImplementation 'androidx.test:runner:1.1.1'
- androidTestImplementation 'androidx.test:rules:1.1.1'
- androidTestImplementation 'androidx.test.ext:junit:1.1.0'
- androidTestImplementation 'androidx.test.ext:truth:1.1.0'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
- implementation 'androidx.lifecycle:lifecycle-common:2.0.0'
- implementation 'androidx.annotation:annotation:1.0.2'
- }
|