Skip to content

Commit

Permalink
update gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcns committed Nov 7, 2022
1 parent a5055bd commit 84bcc1f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 66 deletions.
66 changes: 2 additions & 64 deletions arcns-core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,69 +1,7 @@
//ext.module_group = "com.github.Arcns.arcnslibrary"
////ext.module_name = "arcns-core"
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
//apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'maven-publish'
ext.module_name = "com.arcns.core"

// 引入jcenter仓库
//apply plugin: 'com.novoda.bintray-release'

android {
namespace 'com.arcns.core'
compileSdkVersion versions.compile_sdk
buildToolsVersion versions.build_tools

defaultConfig {
minSdkVersion versions.min_sdk
targetSdkVersion versions.compile_sdk
versionCode versions.publish_code
versionName versions.publish_name

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
ndk {
//设置支持的SO库架构(开发者可以根据需要,选择一个或多个平台的so)
abiFilters "armeabi", "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
}
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

dataBinding {
// 启用databinding,与kotlin一起使用时,必须引入:apply plugin: 'kotlin-kapt'
enabled = true
}

sourceSets {
main {
jniLibs.srcDir 'libs'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
}
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
}
}
}
}
apply from: rootProject.file("library_config.gradle")

// jcenter仓库配置
//publish {
Expand Down
3 changes: 1 addition & 2 deletions arcns-media-audio/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//ext.module_group = "com.github.Arcns.arcnslibrary"
//ext.module_name = "arcns-media-audio"
ext.module_name = "com.arcns.media.audio"

apply from: rootProject.file("library_config.gradle")

Expand Down
1 change: 1 addition & 0 deletions dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ext.module_name = ''
ext.versions = [
min_sdk : 19,
compile_sdk : 31,
Expand Down
1 change: 1 addition & 0 deletions library_config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ apply plugin: 'maven-publish'
//apply plugin: 'com.novoda.bintray-release'

android {
namespace module_name
compileSdkVersion versions.compile_sdk
buildToolsVersion versions.build_tools

Expand Down

0 comments on commit 84bcc1f

Please sign in to comment.