mirror of
https://github.com/revanced/smali.git
synced 2025-05-04 08:34:25 +02:00
gradleize baksmali project
This commit is contained in:
parent
4c1774eb41
commit
1026c6c10c
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,5 @@
|
||||
/.gradle
|
||||
/baksmali/target
|
||||
/baksmali/build
|
||||
/dexlib/build
|
||||
/smali/target
|
||||
/util/build
|
||||
|
1
baksmali/.gitignore
vendored
1
baksmali/.gitignore
vendored
@ -1 +0,0 @@
|
||||
/target
|
6
baksmali/build.gradle
Normal file
6
baksmali/build.gradle
Normal file
@ -0,0 +1,6 @@
|
||||
dependencies {
|
||||
compile project(':util')
|
||||
compile project(':dexlib')
|
||||
compile 'commons-cli:commons-cli:1.2'
|
||||
compile 'com.google.code.findbugs:jsr305:1.3.9'
|
||||
}
|
112
baksmali/pom.xml
112
baksmali/pom.xml
@ -1,112 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.jf</groupId>
|
||||
<artifactId>baksmali</artifactId>
|
||||
<version>${aversion}</version>
|
||||
<parent>
|
||||
<groupId>org.jf</groupId>
|
||||
<artifactId>smali-pom</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<configuration>
|
||||
<descriptorRefs>
|
||||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||||
</descriptorRefs>
|
||||
<archive>
|
||||
<manifest>
|
||||
<mainClass>org.jf.baksmali.main</mainClass>
|
||||
</manifest>
|
||||
</archive>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.github.wvengen</groupId>
|
||||
<artifactId>proguard-maven-plugin</artifactId>
|
||||
<version>2.0.5</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>proguard</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<proguardVersion>4.8</proguardVersion>
|
||||
<obfuscate>false</obfuscate>
|
||||
<includeDependency>false</includeDependency>
|
||||
<injar>${project.build.finalName}-jar-with-dependencies.jar</injar>
|
||||
<outjar>${project.build.finalName}-jar-with-dependencies-small.jar</outjar>
|
||||
<outputDirectory>${project.build.directory}</outputDirectory>
|
||||
<options>
|
||||
<option>-keep public class org.jf.baksmali.main {
|
||||
public static void main(java.lang.String[]);
|
||||
}</option>
|
||||
<option>-keepclassmembers enum * {
|
||||
public static **[] values();
|
||||
public static ** valueOf(java.lang.String);
|
||||
}</option>
|
||||
<option>-dontwarn junit.**</option>
|
||||
<option>-dontnote junit.**</option>
|
||||
<option>-dontwarn org.junit.**</option>
|
||||
<option>-dontnote org.junit.**</option>
|
||||
<option>-dontwarn com.google.common.base.**</option>
|
||||
<option>-dontnote com.google.common.base.**</option>
|
||||
</options>
|
||||
<libs>
|
||||
<lib>${java.home}/lib/rt.jar</lib>
|
||||
</libs>
|
||||
</configuration>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>net.sf.proguard</groupId>
|
||||
<artifactId>proguard-base</artifactId>
|
||||
<version>4.8</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources/properties</directory>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
</build>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.jf</groupId>
|
||||
<artifactId>dexlib</artifactId>
|
||||
<version>${version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jf</groupId>
|
||||
<artifactId>util</artifactId>
|
||||
<version>${version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-cli</groupId>
|
||||
<artifactId>commons-cli</artifactId>
|
||||
<version>1.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.code.findbugs</groupId>
|
||||
<artifactId>jsr305</artifactId>
|
||||
<version>1.3.9</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
@ -1 +1 @@
|
||||
include 'util', 'dexlib'
|
||||
include 'util', 'dexlib', 'baksmali'
|
Loading…
x
Reference in New Issue
Block a user