12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- group 'com.amap.flutter.amap_flutter_map'
- version '1.0'
- 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 {
- repositories {
- google()
- jcenter()
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:3.5.0'
- }
- }
- rootProject.allprojects {
- repositories {
- google()
- jcenter()
- }
- }
- apply plugin: 'com.android.library'
- android {
- compileSdkVersion 29
- defaultConfig {
- minSdkVersion 16
- }
- lintOptions {
- disable 'InvalidPackage'
- }
- }
- dependencies {
- compileOnly "androidx.annotation:annotation:1.1.0"
- compileOnly files("$flutterRoot/bin/cache/artifacts/engine/android-arm64/flutter.jar")
- implementation 'com.amap.api:3dmap:8.1.0'
- }
|