Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.nullog:rtbox:v0.2.0'
}
dependencies {
implementation("com.github.nullog:rtbox:v0.2.0")
}
<dependency>
<groupId>com.github.nullog</groupId>
<artifactId>rtbox</artifactId>
<version>v0.2.0</version>
</dependency>
libraryDependencies += "com.github.nullog" % "rtbox" % "v0.2.0"
:dependencies [[com.github.nullog/rtbox "v0.2.0"]]
This ia a library to simplify the usage of root exec on the Android OS.It is a Java wrapper around native binaries shipped with every Android OS, but can also be used to package and execute your own native binaries.
Gradle:
compile 'top.itmp.rtbox:rtbox:0.2.0'
Maven:
<dependency>
<groupId>top.itmp.rtbox</groupId>
<artifactId>rtbox</artifactId>
<version>0.2.0</version>
<type>pom</type>
</dependency>
Snapshots:
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Add the dependency
dependencies {
compile 'com.github.nullog:rtbox:-SNAPSHOT'
}
How to use the last aar:
Add it in your app
build.gradle at the end of repositories:
repositories {
flatDir {
dirs 'libs'
}
...
}
add dependencies:
dependencies {
compile(name:'rtbox--SNAPSHOT', ext:'aar')
...
}
Fork RTBox and do a Pull Request. I will merge your changes back into the main project.
RTBox is based on serveral other open source projects:
Licensed 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.