You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
113 lines
2.4 KiB
113 lines
2.4 KiB
group 'com.yoozoo.sharesdk'
|
|
version '1.0-SNAPSHOT'
|
|
apply plugin: 'com.android.library'
|
|
//apply from: 'MobSDK.gradle'
|
|
apply plugin: 'com.mob.sdk'
|
|
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
maven {
|
|
url "http://mvn.mob.com/android"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:3.5.1'
|
|
classpath 'com.mob.sdk:MobSDK:+'
|
|
}
|
|
}
|
|
|
|
/*allprojects {
|
|
repositories {
|
|
jcenter()
|
|
maven {
|
|
url "http://mvn.mob.com/android"
|
|
}
|
|
}
|
|
}*/
|
|
|
|
rootProject.allprojects {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
maven {
|
|
url "http://mvn.mob.com/android"
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
compileSdkVersion 28
|
|
|
|
defaultConfig {
|
|
minSdkVersion 16
|
|
}
|
|
lintOptions {
|
|
disable 'InvalidPackage'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
|
|
}
|
|
|
|
MobSDK {
|
|
ShareSDK {
|
|
loopShare true
|
|
}
|
|
}
|
|
|
|
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'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 28
|
|
|
|
lintOptions {
|
|
disable 'InvalidPackage'
|
|
}
|
|
|
|
defaultConfig {
|
|
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
|
minSdkVersion 16
|
|
targetSdkVersion 28
|
|
versionCode flutterVersionCode.toInteger()
|
|
versionName flutterVersionName
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
// TODO: Add your own signing config for the release build.
|
|
// Signing with the debug keys for now, so `flutter run --release` works.
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
}
|
|
}
|
|
|
|
|