OSDN Git Service

add ant build.xml and remove gen
authorKoushik Dutta <koushd@gmail.com>
Sat, 23 Feb 2013 20:34:11 +0000 (12:34 -0800)
committerKoushik Dutta <koushd@gmail.com>
Sat, 23 Feb 2013 20:34:11 +0000 (12:34 -0800)
.gitignore
Superuser/build.xml [new file with mode: 0644]
Superuser/gen/com/koushikdutta/superuser/BuildConfig.java [deleted file]
Superuser/gen/com/koushikdutta/superuser/Manifest.java [deleted file]
Superuser/gen/com/koushikdutta/superuser/R.java [deleted file]
Superuser/gen/com/koushikdutta/widgets/R.java [deleted file]
Superuser/res/drawable-xxhdpi/ic_launcher.png [new file with mode: 0644]

index 8008f25..e3e905e 100644 (file)
@@ -1,3 +1,5 @@
 bin
 libs
 obj
+local.properties
+gen
diff --git a/Superuser/build.xml b/Superuser/build.xml
new file mode 100644 (file)
index 0000000..fc46139
--- /dev/null
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="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
+         Version Control Systems. -->
+    <property file="local.properties" />
+
+    <!-- The ant.properties file can be created by you. It is only edited by the
+         'android' tool to add properties to it.
+         This is the place to change some Ant specific build properties.
+         Here are some properties you may want to change/update:
+
+         source.dir
+             The name of the source directory. Default is 'src'.
+         out.dir
+             The name of the output directory. Default is 'bin'.
+
+         For other overridable properties, look at the beginning of the rules
+         files in the SDK, at tools/ant/build.xml
+
+         Properties related to the SDK location or the project target should
+         be updated using the 'android' tool with the 'update' action.
+
+         This file is an integral part of the build system for your
+         application and should be checked into Version Control Systems.
+
+         -->
+    <property file="ant.properties" />
+
+    <!-- if sdk.dir was not set from one of the property file, then
+         get it from the ANDROID_HOME env var.
+         This must be done before we load project.properties since
+         the proguard config can use sdk.dir -->
+    <property environment="env" />
+    <condition property="sdk.dir" value="${env.ANDROID_HOME}">
+        <isset property="env.ANDROID_HOME" />
+    </condition>
+
+    <!-- The project.properties file is created and updated by the 'android'
+         tool, as well as ADT.
+
+         This contains project specific properties such as project target, and library
+         dependencies. Lower level build properties are stored in ant.properties
+         (or in .classpath for Eclipse projects).
+
+         This file is an integral part of the build system for your
+         application and should be checked into Version Control Systems. -->
+    <loadproperties srcFile="project.properties" />
+
+    <!-- quick check on sdk.dir -->
+    <fail
+            message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
+            unless="sdk.dir"
+    />
+
+    <!--
+        Import per project custom build rules if present at the root of the project.
+        This is the place to put custom intermediary targets such as:
+            -pre-build
+            -pre-compile
+            -post-compile (This is typically used for code obfuscation.
+                           Compiled code location: ${out.classes.absolute.dir}
+                           If this is not done in place, override ${out.dex.input.absolute.dir})
+            -post-package
+            -post-build
+            -pre-clean
+    -->
+    <import file="custom_rules.xml" optional="true" />
+
+    <!-- Import the actual build file.
+
+         To customize existing targets, there are two options:
+         - Customize only one target:
+             - copy/paste the target into this file, *before* the
+               <import> task.
+             - customize it to your needs.
+         - Customize the whole content of build.xml
+             - copy/paste the content of the rules files (minus the top node)
+               into this file, replacing the <import> task.
+             - customize to your needs.
+
+         ***********************
+         ****** IMPORTANT ******
+         ***********************
+         In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
+         in order to avoid having your file be overridden by tools such as "android update project"
+    -->
+    <!-- version-tag: 1 -->
+    <import file="${sdk.dir}/tools/ant/build.xml" />
+
+</project>
diff --git a/Superuser/gen/com/koushikdutta/superuser/BuildConfig.java b/Superuser/gen/com/koushikdutta/superuser/BuildConfig.java
deleted file mode 100644 (file)
index 46b1743..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-/** Automatically generated file. DO NOT MODIFY */
-package com.koushikdutta.superuser;
-
-public final class BuildConfig {
-    public final static boolean DEBUG = true;
-}
\ No newline at end of file
diff --git a/Superuser/gen/com/koushikdutta/superuser/Manifest.java b/Superuser/gen/com/koushikdutta/superuser/Manifest.java
deleted file mode 100644 (file)
index fe99781..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-/* AUTO-GENERATED FILE.  DO NOT MODIFY.
- *
- * This class was automatically generated by the
- * aapt tool from the resource data it found.  It
- * should not be modified by hand.
- */
-
-package com.koushikdutta.superuser;
-
-public final class Manifest {
-    public static final class permission {
-        public static final String REQUEST="com.koushikdutta.superuser.REQUEST";
-        public static final String RESULT="com.koushikdutta.superuser.RESULT";
-    }
-}
diff --git a/Superuser/gen/com/koushikdutta/superuser/R.java b/Superuser/gen/com/koushikdutta/superuser/R.java
deleted file mode 100644 (file)
index 19b0446..0000000
+++ /dev/null
@@ -1,176 +0,0 @@
-/* AUTO-GENERATED FILE.  DO NOT MODIFY.
- *
- * This class was automatically generated by the
- * aapt tool from the resource data it found.  It
- * should not be modified by hand.
- */
-
-package com.koushikdutta.superuser;
-
-public final class R {
-    public static final class attr {
-    }
-    public static final class color {
-        public static final int background_dark=0x7f040004;
-        public static final int holo_blue_bright=0x7f040002;
-        public static final int holo_blue_dark=0x7f040001;
-        public static final int holo_blue_light=0x7f040000;
-        public static final int list_content_background=0x7f040003;
-    }
-    public static final class dimen {
-        /**  Default screen margins, per the Android Design guidelines. 
-
-         Customize dimensions originally defined in res/values/dimens.xml (such as
-         screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
-    
-
-         Customize dimensions originally defined in res/values/dimens.xml (such as
-         screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
-    
- Default screen margins, per the Android Design guidelines. 
-
-         Customize dimensions originally defined in res/values/dimens.xml (such as
-         screen margins) for sw600dp devices (e.g. 7" tablets) here.
-    
-
-         Customize dimensions originally defined in res/values/dimens.xml (such as
-         screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
-    
-         */
-        public static final int activity_horizontal_margin=0x7f050000;
-        public static final int activity_vertical_margin=0x7f050001;
-        public static final int golden_ratio=0x7f050002;
-        public static final int log_item_padding=0x7f050003;
-        public static final int section_padding=0x7f050004;
-    }
-    public static final class drawable {
-        public static final int clockwork512=0x7f020000;
-        public static final int ic_action_logs=0x7f020001;
-        public static final int ic_action_settings=0x7f020002;
-        public static final int ic_action_trash=0x7f020003;
-        public static final int ic_launcher=0x7f020004;
-        public static final int list_content_left=0x7f020005;
-        public static final int list_content_right=0x7f020006;
-    }
-    public static final class id {
-        public static final int allow=0x7f090019;
-        public static final int app_header=0x7f090002;
-        public static final int app_info=0x7f090001;
-        public static final int checkbox=0x7f090011;
-        public static final int command_header=0x7f090005;
-        public static final int content=0x7f090007;
-        public static final int delete=0x7f090023;
-        public static final int deny=0x7f090018;
-        public static final int empty=0x7f09000b;
-        public static final int extra=0x7f090012;
-        public static final int footer_container=0x7f09000c;
-        public static final int image=0x7f09000e;
-        public static final int incoming=0x7f090015;
-        public static final int list=0x7f090000;
-        public static final int list_content_container=0x7f090006;
-        public static final int list_header_title=0x7f09000d;
-        public static final int listview=0x7f09000a;
-        public static final int logs=0x7f090021;
-        public static final int name=0x7f090013;
-        public static final int package_header=0x7f090003;
-        public static final int ready=0x7f090016;
-        public static final int remember=0x7f09001a;
-        public static final int remember_choices=0x7f09001e;
-        public static final int remember_for=0x7f09001c;
-        public static final int remember_forever=0x7f09001d;
-        public static final int request=0x7f090017;
-        public static final int request_spinner_choice=0x7f09001f;
-        public static final int root=0x7f090014;
-        public static final int settings=0x7f090022;
-        public static final int summary=0x7f090010;
-        public static final int this_time_only=0x7f09001b;
-        public static final int title=0x7f09000f;
-        public static final int title_container=0x7f090009;
-        public static final int uid_header=0x7f090004;
-        public static final int unknown=0x7f090020;
-        public static final int watermark=0x7f090008;
-    }
-    public static final class layout {
-        public static final int app_icons=0x7f030000;
-        public static final int app_info=0x7f030001;
-        public static final int app_layout=0x7f030002;
-        public static final int app_request=0x7f030003;
-        public static final int list_content=0x7f030004;
-        public static final int list_content_header=0x7f030005;
-        public static final int list_fragment=0x7f030006;
-        public static final int list_header=0x7f030007;
-        public static final int list_item=0x7f030008;
-        public static final int list_item_base=0x7f030009;
-        public static final int list_item_selectable=0x7f03000a;
-        public static final int log_item=0x7f03000b;
-        public static final int log_item_base=0x7f03000c;
-        public static final int packageinfo=0x7f03000d;
-        public static final int policy_fragment=0x7f03000e;
-        public static final int policy_info=0x7f03000f;
-        public static final int request=0x7f030010;
-        public static final int request_buttons=0x7f030011;
-        public static final int request_choices=0x7f030012;
-        public static final int request_spinner=0x7f030013;
-        public static final int request_spinner_choice=0x7f030014;
-        public static final int unknown_app=0x7f030015;
-    }
-    public static final class menu {
-        public static final int main=0x7f080000;
-        public static final int policy=0x7f080001;
-    }
-    public static final class string {
-        public static final int allow=0x7f060001;
-        public static final int app_header=0x7f060009;
-        public static final int app_name=0x7f060000;
-        public static final int application_request=0x7f060005;
-        public static final int command_header=0x7f06000b;
-        public static final int delete=0x7f060012;
-        public static final int deny=0x7f060002;
-        public static final int info=0x7f060006;
-        public static final int interactive=0x7f06000f;
-        public static final int logs=0x7f060010;
-        public static final int no_apps=0x7f060014;
-        public static final int no_logs=0x7f060013;
-        public static final int package_header=0x7f060008;
-        public static final int remember_for=0x7f06000d;
-        public static final int remember_forever=0x7f06000e;
-        public static final int request=0x7f060007;
-        public static final int settings=0x7f060011;
-        public static final int status_incoming=0x7f060003;
-        public static final int this_time_only=0x7f06000c;
-        public static final int uid_header=0x7f06000a;
-        public static final int unknown_uid=0x7f060004;
-    }
-    public static final class style {
-        /**  API 14 theme customizations can go here. 
-         */
-        public static final int AppBaseDarkTheme=0x7f070002;
-        /** 
-        Base application theme, dependent on API level. This theme is replaced
-        by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-    
-
-            Theme customizations available in newer API levels can go in
-            res/values-vXX/styles.xml, while customizations related to
-            backward-compatibility can go here.
-        
-
-        Base application theme for API 14+. This theme completely replaces
-        AppBaseTheme from BOTH res/values/styles.xml and
-        res/values-v11/styles.xml on API 14+ devices.
-    
- API 14 theme customizations can go here. 
-         */
-        public static final int AppBaseTheme=0x7f070000;
-        /**  Application theme. 
- All customizations that are NOT specific to a particular API-level can go here. 
-         */
-        public static final int AppDarkTheme=0x7f070003;
-        /**  Application theme. 
- All customizations that are NOT specific to a particular API-level can go here. 
-         */
-        public static final int AppTheme=0x7f070001;
-        public static final int FlatButton=0x7f070005;
-        public static final int RequestTheme=0x7f070004;
-    }
-}
diff --git a/Superuser/gen/com/koushikdutta/widgets/R.java b/Superuser/gen/com/koushikdutta/widgets/R.java
deleted file mode 100644 (file)
index 33aad99..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-/* AUTO-GENERATED FILE.  DO NOT MODIFY.
- *
- * This class was automatically generated by the
- * aapt tool from the resource data it found.  It
- * should not be modified by hand.
- */
-package com.koushikdutta.widgets;
-
-public final class R {
-       public static final class id {
-               public static final int summary = 0x7f090010;
-               public static final int content = 0x7f090007;
-               public static final int watermark = 0x7f090008;
-               public static final int title = 0x7f09000f;
-               public static final int title_container = 0x7f090009;
-               public static final int list_header_title = 0x7f09000d;
-               public static final int empty = 0x7f09000b;
-               public static final int checkbox = 0x7f090011;
-               public static final int footer_container = 0x7f09000c;
-               public static final int image = 0x7f09000e;
-               public static final int list_content_container = 0x7f090006;
-               public static final int listview = 0x7f09000a;
-       }
-       public static final class color {
-               public static final int holo_blue_bright = 0x7f040002;
-               public static final int holo_blue_light = 0x7f040000;
-               public static final int list_content_background = 0x7f040003;
-               public static final int holo_blue_dark = 0x7f040001;
-       }
-       public static final class layout {
-               public static final int list_item_selectable = 0x7f03000a;
-               public static final int list_content_header = 0x7f030005;
-               public static final int list_header = 0x7f030007;
-               public static final int list_content = 0x7f030004;
-               public static final int list_item_base = 0x7f030009;
-               public static final int list_item = 0x7f030008;
-               public static final int list_fragment = 0x7f030006;
-       }
-       public static final class drawable {
-               public static final int list_content_right = 0x7f020006;
-               public static final int list_content_left = 0x7f020005;
-       }
-       public static final class dimen {
-               public static final int golden_ratio = 0x7f050002;
-               public static final int activity_vertical_margin = 0x7f050001;
-               public static final int activity_horizontal_margin = 0x7f050000;
-       }
-}
diff --git a/Superuser/res/drawable-xxhdpi/ic_launcher.png b/Superuser/res/drawable-xxhdpi/ic_launcher.png
new file mode 100644 (file)
index 0000000..2d5e29e
Binary files /dev/null and b/Superuser/res/drawable-xxhdpi/ic_launcher.png differ