12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- group 'com.ouj.shoesdk.shoes_sdk'
- version '1.0-SNAPSHOT'
- 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 Exception("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'
- }
- buildscript {
- ext.kotlin_version = '1.3.72'
- repositories {
- google()
- jcenter()
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:3.5.0'
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- }
- }
- rootProject.allprojects {
- repositories {
- google()
- jcenter()
- }
- }
- apply plugin: 'com.android.library'
- apply plugin: 'kotlin-android'
- android {
- compileSdkVersion 30
- sourceSets {
- main.java.srcDirs += 'src/main/kotlin'
- }
- defaultConfig {
- minSdkVersion 16
- }
- externalNativeBuild {
- cmake {
- path "CMakeLists.txt"
- version "3.10.2"
- }
- }
- }
- dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
- compileOnly files("$flutterRoot/bin/cache/artifacts/engine/android-arm64/flutter.jar")
- compileOnly "androidx.annotation:annotation:1.1.0"
- }
|