mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 09:45:19 +08:00
Modify merge contents of build.gradle into constant definitions
This commit is contained in:
52
build.gradle
52
build.gradle
@@ -8,21 +8,43 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
devId = "0"
|
android = [
|
||||||
devUser = "fankesyooni"
|
compileSdk: 33,
|
||||||
userEmail = "qzmmcn@163.com"
|
minSdk : 21,
|
||||||
groupId = "com.highcapable.yukihookapi"
|
targetSdk : 33
|
||||||
apiVersion = "1.1.8"
|
]
|
||||||
repoName = "YukiHookAPI"
|
app = [
|
||||||
repoDescription = "An efficient Hook API and Xposed Module solution built in Kotlin."
|
versionName: 'universal',
|
||||||
licenceName = "MIT License"
|
versionCode: 1
|
||||||
licenceUrl = "https://github.com/fankes/YukiHookAPI/blob/master/LICENSE"
|
]
|
||||||
website = "https://github.com/fankes/YukiHookAPI"
|
maven = [
|
||||||
githubConnection = "scm:git:git://github.com/path/to/repo.git"
|
developer : [
|
||||||
githubDeveloperConnection = "scm:git:ssh://github.com/path/to/repo.git"
|
id : '0',
|
||||||
githubUrl = "https://github.com/path/to/repo"
|
user : 'fankesyooni',
|
||||||
ossName = "OSSRH"
|
email: 'qzmmcn@163.com'
|
||||||
ossUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
|
],
|
||||||
|
repository : [
|
||||||
|
groupId : 'com.highcapable.yukihookapi',
|
||||||
|
apiVersion : [
|
||||||
|
name: '1.1.8',
|
||||||
|
code: 41
|
||||||
|
],
|
||||||
|
name : 'YukiHookAPI',
|
||||||
|
description: 'An efficient Hook API and Xposed Module solution built in Kotlin.',
|
||||||
|
website : 'https://github.com/fankes/YukiHookAPI',
|
||||||
|
licence : [
|
||||||
|
name: 'MIT License',
|
||||||
|
url : 'https://github.com/fankes/YukiHookAPI/blob/master/LICENSE'
|
||||||
|
]
|
||||||
|
],
|
||||||
|
configurations: [
|
||||||
|
githubConnection : 'scm:git:git://github.com/path/to/repo.git',
|
||||||
|
githubDeveloperConnection: 'scm:git:ssh://github.com/path/to/repo.git',
|
||||||
|
githubUrl : 'https://github.com/path/to/repo',
|
||||||
|
ossName : 'OSSRH',
|
||||||
|
ossUrl : 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2'
|
||||||
|
]
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -4,33 +4,24 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
signingConfigs {
|
namespace 'com.highcapable.yukihookapi.demo_app'
|
||||||
debug {
|
compileSdk rootProject.ext.android.compileSdk
|
||||||
storeFile file('../keystore/public')
|
|
||||||
storePassword '123456'
|
|
||||||
keyAlias 'public'
|
|
||||||
keyPassword '123456'
|
|
||||||
v1SigningEnabled true
|
|
||||||
v2SigningEnabled true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
compileSdk 33
|
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "com.highcapable.yukihookapi.demo_app"
|
applicationId 'com.highcapable.yukihookapi.demo_app'
|
||||||
minSdk 21
|
|
||||||
targetSdk 33
|
|
||||||
versionCode 1
|
|
||||||
versionName "1.0"
|
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
minSdk rootProject.ext.android.minSdk
|
||||||
|
targetSdk rootProject.ext.android.targetSdk
|
||||||
|
|
||||||
|
versionCode rootProject.ext.app.versionCode
|
||||||
|
versionName rootProject.ext.app.versionName
|
||||||
|
|
||||||
|
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
signingConfig signingConfigs.debug
|
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -40,6 +31,14 @@ android {
|
|||||||
}
|
}
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = '11'
|
jvmTarget = '11'
|
||||||
|
freeCompilerArgs = [
|
||||||
|
'-Xno-param-assertions',
|
||||||
|
'-Xno-call-assertions',
|
||||||
|
'-Xno-receiver-assertions'
|
||||||
|
]
|
||||||
|
}
|
||||||
|
lintOptions {
|
||||||
|
checkReleaseBuilds false
|
||||||
}
|
}
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
viewBinding true
|
viewBinding true
|
||||||
|
@@ -1,37 +1,28 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'com.android.application'
|
id 'com.android.application'
|
||||||
id 'org.jetbrains.kotlin.android'
|
id 'org.jetbrains.kotlin.android'
|
||||||
id 'com.google.devtools.ksp' version '1.8.20-1.0.10'
|
id 'com.google.devtools.ksp'
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
signingConfigs {
|
namespace 'com.highcapable.yukihookapi.demo_module'
|
||||||
debug {
|
compileSdk rootProject.ext.android.compileSdk
|
||||||
storeFile file('../keystore/public')
|
|
||||||
storePassword '123456'
|
|
||||||
keyAlias 'public'
|
|
||||||
keyPassword '123456'
|
|
||||||
v1SigningEnabled true
|
|
||||||
v2SigningEnabled true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
compileSdk 33
|
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "com.highcapable.yukihookapi.demo_module"
|
applicationId 'com.highcapable.yukihookapi.demo_module'
|
||||||
minSdk 21
|
|
||||||
targetSdk 33
|
|
||||||
versionCode 1
|
|
||||||
versionName "1.0"
|
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
minSdk rootProject.ext.android.minSdk
|
||||||
|
targetSdk rootProject.ext.android.targetSdk
|
||||||
|
|
||||||
|
versionCode rootProject.ext.app.versionCode
|
||||||
|
versionName rootProject.ext.app.versionName
|
||||||
|
|
||||||
|
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
signingConfig signingConfigs.debug
|
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -47,6 +38,9 @@ android {
|
|||||||
'-Xno-receiver-assertions'
|
'-Xno-receiver-assertions'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
lintOptions {
|
||||||
|
checkReleaseBuilds false
|
||||||
|
}
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
viewBinding true
|
viewBinding true
|
||||||
}
|
}
|
||||||
|
BIN
keystore/public
BIN
keystore/public
Binary file not shown.
@@ -32,8 +32,8 @@ dependencies {
|
|||||||
ksp 'dev.zacsweers.autoservice:auto-service-ksp:1.0.0'
|
ksp 'dev.zacsweers.autoservice:auto-service-ksp:1.0.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
group = rootProject.ext.groupId
|
group = rootProject.ext.maven.repository.groupId
|
||||||
version = rootProject.ext.apiVersion
|
version = rootProject.ext.maven.repository.apiVersion.name
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
@@ -41,34 +41,34 @@ publishing {
|
|||||||
artifactId = 'ksp-xposed'
|
artifactId = 'ksp-xposed'
|
||||||
from components.java
|
from components.java
|
||||||
pom {
|
pom {
|
||||||
name = rootProject.ext.repoName
|
name = rootProject.ext.maven.repository.name
|
||||||
description = rootProject.ext.repoDescription
|
description = rootProject.ext.maven.repository.description
|
||||||
url = rootProject.ext.website
|
url = rootProject.ext.maven.repository.website
|
||||||
licenses {
|
licenses {
|
||||||
license {
|
license {
|
||||||
name = rootProject.ext.licenceName
|
name = rootProject.ext.maven.repository.licence.name
|
||||||
url = rootProject.ext.licenceUrl
|
url = rootProject.ext.maven.repository.licence.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
developers {
|
developers {
|
||||||
developer {
|
developer {
|
||||||
id = rootProject.ext.devId
|
id = rootProject.ext.maven.developer.id
|
||||||
name = rootProject.ext.devUser
|
name = rootProject.ext.maven.developer.user
|
||||||
email = rootProject.ext.userEmail
|
email = rootProject.ext.maven.developer.email
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
scm {
|
scm {
|
||||||
connection = rootProject.ext.githubConnection
|
connection = rootProject.ext.maven.configurations.githubConnection
|
||||||
developerConnection = rootProject.ext.githubDeveloperConnection
|
developerConnection = rootProject.ext.maven.configurations.githubDeveloperConnection
|
||||||
url = rootProject.ext.githubUrl
|
url = rootProject.ext.maven.configurations.githubUrl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
name = rootProject.ext.ossName
|
name = rootProject.ext.maven.configurations.ossName
|
||||||
url = rootProject.ext.ossUrl
|
url = rootProject.ext.maven.configurations.ossUrl
|
||||||
credentials {
|
credentials {
|
||||||
def configs = getMavenCredentials(projectDir)
|
def configs = getMavenCredentials(projectDir)
|
||||||
username = configs.username
|
username = configs.username
|
||||||
@@ -78,6 +78,4 @@ publishing {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
signing {
|
signing { sign(publishing.publications.mavenJava) }
|
||||||
sign(publishing.publications.mavenJava)
|
|
||||||
}
|
|
@@ -51,8 +51,8 @@ dependencies {
|
|||||||
implementation 'androidx.annotation:annotation:1.6.0'
|
implementation 'androidx.annotation:annotation:1.6.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
group = rootProject.ext.groupId
|
group = rootProject.ext.maven.repository.groupId
|
||||||
version = rootProject.ext.apiVersion
|
version = rootProject.ext.maven.repository.apiVersion.name
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
@@ -60,34 +60,34 @@ publishing {
|
|||||||
artifactId = 'api'
|
artifactId = 'api'
|
||||||
from components.java
|
from components.java
|
||||||
pom {
|
pom {
|
||||||
name = rootProject.ext.repoName
|
name = rootProject.ext.maven.repository.name
|
||||||
description = rootProject.ext.repoDescription
|
description = rootProject.ext.maven.repository.description
|
||||||
url = rootProject.ext.website
|
url = rootProject.ext.maven.repository.website
|
||||||
licenses {
|
licenses {
|
||||||
license {
|
license {
|
||||||
name = rootProject.ext.licenceName
|
name = rootProject.ext.maven.repository.licence.name
|
||||||
url = rootProject.ext.licenceUrl
|
url = rootProject.ext.maven.repository.licence.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
developers {
|
developers {
|
||||||
developer {
|
developer {
|
||||||
id = rootProject.ext.devId
|
id = rootProject.ext.maven.developer.id
|
||||||
name = rootProject.ext.devUser
|
name = rootProject.ext.maven.developer.user
|
||||||
email = rootProject.ext.userEmail
|
email = rootProject.ext.maven.developer.email
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
scm {
|
scm {
|
||||||
connection = rootProject.ext.githubConnection
|
connection = rootProject.ext.maven.configurations.githubConnection
|
||||||
developerConnection = rootProject.ext.githubDeveloperConnection
|
developerConnection = rootProject.ext.maven.configurations.githubDeveloperConnection
|
||||||
url = rootProject.ext.githubUrl
|
url = rootProject.ext.maven.configurations.githubUrl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
name = rootProject.ext.ossName
|
name = rootProject.ext.maven.configurations.ossName
|
||||||
url = rootProject.ext.ossUrl
|
url = rootProject.ext.maven.configurations.ossUrl
|
||||||
credentials {
|
credentials {
|
||||||
def configs = getMavenCredentials(projectDir)
|
def configs = getMavenCredentials(projectDir)
|
||||||
username = configs.username
|
username = configs.username
|
||||||
@@ -97,6 +97,4 @@ publishing {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
signing {
|
signing { sign(publishing.publications.mavenJava) }
|
||||||
sign(publishing.publications.mavenJava)
|
|
||||||
}
|
|
Reference in New Issue
Block a user