Move service interface
This commit is contained in:
parent
2ec525921b
commit
89f80098bb
|
|
@ -0,0 +1,7 @@
|
|||
*.iml
|
||||
.DS_Store
|
||||
.gradle
|
||||
/.idea
|
||||
/captures
|
||||
/local.properties
|
||||
build
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<bytecodeTargetLevel target="11" />
|
||||
</component>
|
||||
</project>
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="GradleMigrationSettings" migrationVersion="1" />
|
||||
<component name="GradleSettings">
|
||||
<option name="linkedExternalProjectsSettings">
|
||||
<GradleProjectSettings>
|
||||
<option name="testRunner" value="GRADLE" />
|
||||
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||
<option name="modules">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$" />
|
||||
<option value="$PROJECT_DIR$/api" />
|
||||
<option value="$PROJECT_DIR$/stubs" />
|
||||
</set>
|
||||
</option>
|
||||
</GradleProjectSettings>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RemoteRepositoriesConfiguration">
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Maven Central repository" />
|
||||
<option name="url" value="https://repo1.maven.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="jboss.community" />
|
||||
<option name="name" value="JBoss Community repository" />
|
||||
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="MavenRepo" />
|
||||
<option name="name" value="MavenRepo" />
|
||||
<option name="url" value="https://repo.maven.apache.org/maven2/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="Google" />
|
||||
<option name="name" value="Google" />
|
||||
<option name="url" value="https://dl.google.com/dl/android/maven2/" />
|
||||
</remote-repository>
|
||||
</component>
|
||||
</project>
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="Embedded JDK" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
<option name="id" value="Android" />
|
||||
</component>
|
||||
</project>
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
|
|
@ -1 +0,0 @@
|
|||
/build
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
plugins {
|
||||
id("com.android.library")
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdk = 33
|
||||
buildToolsVersion = "33.0.1"
|
||||
namespace = "io.github.libxposed.service"
|
||||
|
||||
defaultConfig {
|
||||
minSdk = 21
|
||||
targetSdk = 33
|
||||
consumerProguardFiles("proguard-rules.pro")
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = true
|
||||
}
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
androidResources = false
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package io.github.libxposed.service;
|
||||
|
||||
interface IXposedService {
|
||||
long getAPIVersion() = 1;
|
||||
}
|
||||
|
|
@ -1,7 +1,5 @@
|
|||
package io.github.libxposed.service;
|
||||
|
||||
import io.github.xposed.xposedservice.IXposedService;
|
||||
|
||||
public abstract class XposedService extends IXposedService.Stub {
|
||||
|
||||
public static final int API = 100;
|
||||
|
|
@ -9,7 +7,7 @@ public abstract class XposedService extends IXposedService.Stub {
|
|||
public static final String SEND_BINDER = "SendBinder";
|
||||
|
||||
@Override
|
||||
public final int getVersion() {
|
||||
public final long getAPIVersion() {
|
||||
return API;
|
||||
}
|
||||
}
|
||||
|
|
@ -35,5 +35,6 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
api(projects.services.xposedService.`interface`)
|
||||
api(projects.libxposed.service)
|
||||
api("dev.rikka.rikkax.parcelablelist:parcelablelist:2.0.1")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ rootProject.name = "LSPosed"
|
|||
include(
|
||||
":app",
|
||||
":libxposed:api",
|
||||
":libxposed:service",
|
||||
":stubs",
|
||||
":core",
|
||||
":daemon",
|
||||
|
|
@ -40,7 +41,6 @@ include(
|
|||
":magisk-loader",
|
||||
":services:manager-service",
|
||||
":services:daemon-service",
|
||||
":services:xposed-service:interface",
|
||||
)
|
||||
|
||||
project(":stubs").projectDir = file("libxposed/stubs")
|
||||
|
|
|
|||
Loading…
Reference in New Issue