[+] HarmonyOS -> Android

This commit is contained in:
acgist
2023-03-20 20:51:05 +08:00
parent 409a4a94c3
commit c216d8a611
97 changed files with 740 additions and 529 deletions

View File

@@ -0,0 +1,56 @@
plugins {
id 'com.android.application'
}
android {
namespace 'com.acgist.taoyao.client'
compileSdk 32
defaultConfig {
minSdk 31
targetSdk 32
versionCode 100
versionName "1.0.0"
applicationId "com.acgist.taoyao.client"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
externalNativeBuild {
cmake {
cFlags '-std=c17'
cppFlags '-std=c++17'
// CPU架构x86_64、x86、armeabi-v7a、arm64-v8a
abiFilters 'arm64-v8a'
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
viewBinding true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
externalNativeBuild {
cmake {
path file('src/main/cpp/CMakeLists.txt')
version '3.22.1'
}
}
}
dependencies {
implementation project(path: ':boot')
implementation fileTree(dir: 'libs', include: ['*.so', '*.jar'])
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.2'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}