Fixed the Android client when using ProGuard. The ViewfinderView constructor is loaded dynamically by the XML view inflation code, which requires explicitly preserving it.

git-svn-id: https://zxing.googlecode.com/svn/trunk@654 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
dswitkin 2008-10-30 15:41:52 +00:00
parent 4f7b7d573d
commit 1d8b533310

View file

@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<project name="BarcodeScanner" default="debug"> <project name="BarcodeScanner" default="debug-optimized">
<!-- SDK Locations --> <!-- SDK Locations -->
<property file="../build.properties"/> <property file="../build.properties"/>
<property name="sdk-folder" value="${android-home}"/> <property name="sdk-folder" value="${android-home}"/>
@ -188,8 +188,8 @@ limitations under the License.
<arg value="-injars temp.jar"/> <arg value="-injars temp.jar"/>
<arg value="-outjars temp-optimized.jar"/> <arg value="-outjars temp-optimized.jar"/>
<arg value="-libraryjars ${android-jar}"/> <arg value="-libraryjars ${android-jar}"/>
<arg value="-keepattributes Exceptions,InnerClasses,Signature,!LocalVariableTable,!LocalVariableTypeTable"/>
<arg value="-keep class com.google.zxing.client.android.*Activity"/> <arg value="-keep class com.google.zxing.client.android.*Activity"/>
<arg value="-keep class com.google.zxing.client.android.ViewfinderView { public * ; }"/>
<arg value="-target 5"/> <arg value="-target 5"/>
<arg value="-optimizationpasses 7"/> <arg value="-optimizationpasses 7"/>
<arg value="-dontshrink"/> <arg value="-dontshrink"/>