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.
58 lines
1.9 KiB
58 lines
1.9 KiB
plugins {
|
|
id 'com.android.library'
|
|
}
|
|
|
|
android {
|
|
namespace 'io.dcloud.oxplugin.mqtt'
|
|
compileSdkVersion 31
|
|
buildToolsVersion '35.0.0'
|
|
|
|
defaultConfig {
|
|
minSdkVersion 21
|
|
targetSdkVersion 35
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles "consumer-rules.pro"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api fileTree(include: ['*.jar'], dir: 'libs')
|
|
api fileTree(dir: 'libs', include: ['*.aar'])
|
|
compileOnly fileTree(dir: '../app/libs', include: ['uniapp-v8-release.aar'])
|
|
|
|
compileOnly 'androidx.recyclerview:recyclerview:1.0.0'
|
|
compileOnly 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
compileOnly 'androidx.appcompat:appcompat:1.0.0'
|
|
implementation 'com.alibaba:fastjson:1.1.46.android'
|
|
implementation 'com.facebook.fresco:fresco:1.13.0'
|
|
|
|
implementation 'com.android.support.constraint:constraint-layout:2.0.2'
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
|
|
|
|
/*implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
implementation 'com.google.android.material:material:1.1.0'
|
|
testImplementation 'junit:junit:4.+'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'*/
|
|
|
|
|
|
// 腾讯mqtt
|
|
// implementation 'com.tencent.iot.hub:hub-device-android:3.3.5' //该版本会频繁断连重连
|
|
implementation 'com.tencent.iot.hub:hub-device-android:3.3.23'
|
|
}
|