Permalink
Browse files

Recreate build files for android, androidtest, for latest SDK

git-svn-id: http://zxing.googlecode.com/svn/trunk@2008 59b500cc-1b3d-0410-9834-0bbf25fbcc57
  • Loading branch information...
1 parent bceea7b commit 8f3f6d1254f513568933f6d1f0b2debbb2c98592 srowen committed Nov 2, 2011
@@ -35,7 +35,7 @@
deprecation="true"
includeantruntime="false">
<classpath>
- <pathelement location="${android-home}/platforms/android-7/android.jar"/>
+ <pathelement location="${android-home}/platforms/android-10/android.jar"/>
</classpath>
</javac>
<jar jarfile="android-integration.jar" basedir="build"/>
@@ -0,0 +1,19 @@
+# This file is used to override default values used by the Ant build system.
+#
+# This file must be checked in Version Control Systems, as it is
+# integral to the build system of your project.
+
+# This file is only used by the Ant script.
+
+# You can use this to override default values such as
+# 'source.dir' for the location of your java source folder and
+# 'out.dir' for the location of your output folder.
+
+# You can also use it define how the release builds are signed by declaring
+# the following properties:
+# 'key.store' for the location of your keystore and
+# 'key.alias' for the name of the key to use.
+# The password will be asked during the build when you use the 'release' target.
+
+application-package=com.google.zxing.client.android
+external-libs-folder=libs
View
Oops, something went wrong.
View
@@ -0,0 +1,40 @@
+-optimizationpasses 5
+-dontusemixedcaseclassnames
+-dontskipnonpubliclibraryclasses
+-dontpreverify
+-verbose
+-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
+
+-keep public class * extends android.app.Activity
+-keep public class * extends android.app.Application
+-keep public class * extends android.app.Service
+-keep public class * extends android.content.BroadcastReceiver
+-keep public class * extends android.content.ContentProvider
+-keep public class * extends android.app.backup.BackupAgentHelper
+-keep public class * extends android.preference.Preference
+-keep public class com.android.vending.licensing.ILicensingService
+
+-keepclasseswithmembernames class * {
+ native <methods>;
+}
+
+-keepclasseswithmembers class * {
+ public <init>(android.content.Context, android.util.AttributeSet);
+}
+
+-keepclasseswithmembers class * {
+ public <init>(android.content.Context, android.util.AttributeSet, int);
+}
+
+-keepclassmembers class * extends android.app.Activity {
+ public void *(android.view.View);
+}
+
+-keepclassmembers enum * {
+ public static **[] values();
+ public static ** valueOf(java.lang.String);
+}
+
+-keep class * implements android.os.Parcelable {
+ public static final android.os.Parcelable$Creator *;
+}
@@ -0,0 +1,11 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system use,
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+
+# Project target.
+target=android-10
@@ -1,68 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright (C) 2010 ZXing authors
-#
-# 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.
-
-# Translate a string from English to all locales used in the Barcode
-# Scanner Android project
-#
-# Author: Neha Pandey
-
-from urllib2 import urlopen
-from urllib import urlencode
-import sys
-
-def translate (in_lang, out_lang, input):
- """Translate the input from in_lang to out_lang using Google Translate"""
- # Create the URL
- langpair = '%s|%s' % (in_lang, out_lang)
- base = 'http://ajax.googleapis.com/ajax/services/language/translate?'
- params = urlencode ((('v',1.0),
- ('q',input),
- ('langpair',langpair),) )
- url = base + params
- # Call translation
- content = urlopen(url).read()
-
- # Snip out unwanted fluff from the translation
- start_index = content.find('"translatedText":"') + 18
- translation = content [start_index:]
- end_index = translation.find('"}, "')
- output = translation[:end_index]
- return output
-
-# All the languages to translate to
-language_list = ['en', 'ar', 'cs', 'da', 'de', 'es',
- 'fi', 'fr', 'hu', 'it', 'ja', 'nl',
- 'pl', 'pt', 'ru', 'sv', 'zh-CN',
- 'zh-TW']
-
-if (len(sys.argv) < 3):
- print "Usage: %s name String to translate" % sys.argv[0]
- print "Sample: %s ask-banana Give me a banana" % sys.argv[0]
- import sys
- sys.exit (-1);
-
-# First argument is the name of the string
-string_name = sys.argv[1]
-# Remaining arguments is the string to be translated in English
-input_string =' '.join(sys.argv[2:])
-
-# Translate all languages
-for i in range(len(language_list)) :
- translation = translate ('en', language_list[i], input_string)
- xml_string = '<string name="' + string_name + '">' + \
- translation + '</string>'
- print language_list[i], xml_string
-
@@ -0,0 +1,19 @@
+# This file is used to override default values used by the Ant build system.
+#
+# This file must be checked in Version Control Systems, as it is
+# integral to the build system of your project.
+
+# This file is only used by the Ant script.
+
+# You can use this to override default values such as
+# 'source.dir' for the location of your java source folder and
+# 'out.dir' for the location of your output folder.
+
+# You can also use it define how the release builds are signed by declaring
+# the following properties:
+# 'key.store' for the location of your keystore and
+# 'key.alias' for the name of the key to use.
+# The password will be asked during the build when you use the 'release' target.
+
+application-package=com.google.zxing.client.androidtest
+external-libs-folder=libs
Oops, something went wrong.

0 comments on commit 8f3f6d1

Please sign in to comment.