Modify merge yukihookapi, yukihookapi-stub java-library project to android-library project

This commit is contained in:
2023-04-16 03:19:55 +08:00
parent c743dad733
commit 3b8eba21b0
118 changed files with 136 additions and 45 deletions

View File

@@ -1,24 +1,42 @@
plugins {
id 'java-library'
id 'org.jetbrains.kotlin.jvm'
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
android {
namespace 'com.highcapable.yukihookapi.stub'
compileSdk rootProject.ext.android.compileSdk
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
defaultConfig {
minSdk rootProject.ext.android.minSdk
targetSdk rootProject.ext.android.targetSdk
consumerProguardFiles 'consumer-rules.pro'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = 11
jvmTarget = '11'
freeCompilerArgs = [
'-Xno-param-assertions',
'-Xno-call-assertions',
'-Xno-receiver-assertions'
]
}
lintOptions {
checkReleaseBuilds false
}
}
dependencies {
compileOnly fileTree(include: ['*.jar'], dir: '../yukihookapi/libs')
implementation 'androidx.annotation:annotation:1.6.0'
}

View File

21
yukihookapi-stub/proguard-rules.pro vendored Normal file
View File

@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest />