| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- plugins {
- id 'com.android.application'
- }
- android {
- namespace "com.ainirobot.robotos"
- compileSdk 33
- defaultConfig {
- // 与系统自带示例区分,可并行安装
- applicationId "com.test.robotos"
- minSdk 16
- targetSdk 29
- versionCode 1
- versionName "1.0"
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- buildFeatures {
- buildConfig true
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- }
- dependencies {
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- implementation 'androidx.appcompat:appcompat:1.2.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
- implementation 'androidx.legacy:legacy-support-v4:1.0.0'
- // 1.8.x 要求 compileSdk 34;1.6.x 与 compile 33 兼容
- implementation 'androidx.webkit:webkit:1.6.1'
- implementation files('libs\\robotservice.jar')
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'androidx.test.ext:junit:1.1.2'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
- api 'com.google.code.gson:gson:2.7'
- }
|