123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- group 'com.umeng.umeng_common_sdk'
- 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()
- maven { url 'https://repo1.maven.org/maven2/'}
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:3.5.0'
- }
- }
- rootProject.allprojects {
- repositories {
- google()
- jcenter()
- maven { url 'https://repo1.maven.org/maven2/'}
- }
- }
- apply plugin: 'com.android.library'
- android {
- compileSdkVersion 29
- defaultConfig {
- minSdkVersion 16
- }
- lintOptions {
- disable 'InvalidPackage'
- }
- }
- dependencies {
- api 'com.umeng.umsdk:common:9.4.4'// 必选
- api 'com.umeng.umsdk:asms:1.4.1'// 必选
- api 'com.umeng.umsdk:apm:1.5.2'
- compileOnly files("$flutterRoot/bin/cache/artifacts/engine/android-arm64/flutter.jar")
- compileOnly "androidx.annotation:annotation:1.1.0"
- }
|