Skip to content

Commit

Permalink
Add commons-lang as a subproject
Browse files Browse the repository at this point in the history
  • Loading branch information
JingMatrix committed Sep 17, 2024
1 parent f5307cf commit 45ea3fc
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@
[submodule "external/xz-embedded"]
path = external/xz-embedded
url = https://github.com/tukaani-project/xz-embedded
[submodule "apache/commons-lang"]
path = apache/commons-lang
url = https://github.com/apache/commons-lang
16 changes: 16 additions & 0 deletions apache/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
val androidSourceCompatibility: JavaVersion by rootProject.extra
val androidTargetCompatibility: JavaVersion by rootProject.extra

plugins {
id("java-library")
}

java {
sourceCompatibility = androidSourceCompatibility
targetCompatibility = androidTargetCompatibility
sourceSets {
main {
java.srcDirs("commons-lang/src/main/java", "local")
}
}
}
1 change: 1 addition & 0 deletions apache/commons-lang
Submodule commons-lang added at c2cd05
31 changes: 31 additions & 0 deletions apache/local/org/apache/commons/lang3/reflect/MemberUtilsX.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.commons.lang3.reflect;

import java.lang.reflect.Constructor;
import java.lang.reflect.Method;

public class MemberUtilsX {
public static int compareConstructorFit(final Constructor<?> left, final Constructor<?> right, final Class<?>[] actual) {
return MemberUtils.compareConstructorFit(left, right, actual);
}

public static int compareMethodFit(final Method left, final Method right, final Class<?>[] actual) {
return MemberUtils.compareMethodFit(left, right, actual);
}
}
2 changes: 1 addition & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ copy {

dependencies {
api(libs.libxposed.api)
implementation(libs.commons.lang3)
implementation(projects.apache)
implementation(projects.axml)
implementation(projects.hiddenapi.bridge)
implementation(projects.services.daemonService)
Expand Down
2 changes: 1 addition & 1 deletion daemon/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ android.applicationVariants.all {
dependencies {
implementation(libs.libxposed.`interface`)
implementation(libs.agp.apksig)
implementation(libs.commons.lang3)
implementation(projects.apache)
implementation(projects.hiddenapi.bridge)
implementation(projects.services.daemonService)
implementation(projects.services.managerService)
Expand Down
1 change: 0 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ okhttp-logging-interceptor = { group = "com.squareup.okhttp3", name = "logging-i

agp-apksig = { group = "com.android.tools.build", name = "apksig", version.ref = "agp" }
appiconloader = { module = "me.zhanghai.android.appiconloader:appiconloader", version = "1.5.0" }
commons-lang3 = { module = "org.apache.commons:commons-lang3", version = "3.17.0" }
material = { module = "com.google.android.material:material", version = "1.12.0" }
gson = { module = "com.google.code.gson:gson", version = "2.11.0" }
hiddenapibypass = { module = "org.lsposed.hiddenapibypass:hiddenapibypass", version = "4.3" }
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ dependencyResolutionManagement {

rootProject.name = "LSPosed"
include(
":apache",
":app",
":axml",
":core",
Expand Down

0 comments on commit 45ea3fc

Please sign in to comment.