fdroiddata/metadata/org.fdroid.superuser/packageid-2.patch

83 lines
2.9 KiB
Diff
Raw Normal View History

2013-04-12 15:47:32 +00:00
diff --git a/Superuser/build.xml b/Superuser/build.xml
index 5500c8a..d1393d2 100644
--- a/Superuser/build.xml
+++ b/Superuser/build.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<project name="Superuser" default="help">
+<project name="org.fdroid.superuser" default="help">
<!-- The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into
@@ -68,39 +68,6 @@
-->
<import file="custom_rules.xml" optional="true" />
- <target name="-pre-build">
- <exec executable="${ndk.dir}/${ndk.executable}" failonerror="true">
- <arg value="-j8" />
- </exec>
- </target>
-
- <target name="clean" depends="android_rules.clean">
- <exec executable="${ndk.dir}/${ndk.executable}" failonerror="true">
- <arg value="clean"/>
- </exec>
- <delete file="bin/update.zip"/>
- <delete file="bin/Superuser.apk"/>
- <delete dir="bin/META-INF" />
- </target>
-
- <target name="-post-build">
- <mkdir dir="bin/recoveryzip/META-INF/com/google/android" />
- <copy file="assets/update-binary" tofile="bin/recoveryzip/META-INF/com/google/android/update-binary"/>
- <copy file="bin/Superuser-release.apk" tofile="bin/recoveryzip/Superuser.apk"/>
-
- <exec executable="zip" failonerror="true" dir="bin/recoveryzip">
- <arg value="-ry"/>
- <arg value="../update.zip"/>
- <arg value="."/>
- </exec>
- <exec executable="zip" failonerror="true" dir="libs">
- <arg value="-ry"/>
- <arg value="../bin/update.zip"/>
- <arg value="armeabi"/>
- <arg value="x86"/>
- </exec>
- </target>
-
<!-- Import the actual build file.
To customize existing targets, there are two options:
@@ -121,5 +88,29 @@
-->
<!-- version-tag: 1 -->
<import file="${sdk.dir}/tools/ant/build.xml" />
-
+ <target name="-package-resources" depends="-crunch">
+ <do-only-if-not-library elseText="Library project: do not package resources..." >
+ <exec executable="${aapt}" failonerror="true">
+ <arg value="package" />
+ <arg value="-f" />
+ <arg value="-M" />
+ <arg path="AndroidManifest.xml" />
+ <arg value="-A" />
+ <arg path="${asset.absolute.dir}" />
+ <arg value="-F" />
+ <arg path="${out.absolute.dir}/${resource.package.file.name}" />
+ <arg value="-I" />
+ <arg path="${android.jar}" />
+ <arg value="-S" />
+ <arg path="${resource.absolute.dir}" />
+ <arg value="-S" />
+ <arg path="${android.library.reference.1}/res" />
+ <arg value="--extra-packages" />
+ <arg value="com.koushikdutta.widgets" />
+ <arg value="--auto-add-overlay" />
+ <arg value="--rename-manifest-package" />
+ <arg value="org.fdroid.superuser" />
+ </exec>
+ </do-only-if-not-library>
+ </target>
</project>