mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
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:
parent
4f7b7d573d
commit
1d8b533310
|
@ -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
|
||||
limitations under the License.
|
||||
-->
|
||||
<project name="BarcodeScanner" default="debug">
|
||||
<project name="BarcodeScanner" default="debug-optimized">
|
||||
<!-- SDK Locations -->
|
||||
<property file="../build.properties"/>
|
||||
<property name="sdk-folder" value="${android-home}"/>
|
||||
|
@ -188,8 +188,8 @@ limitations under the License.
|
|||
<arg value="-injars temp.jar"/>
|
||||
<arg value="-outjars temp-optimized.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.ViewfinderView { public * ; }"/>
|
||||
<arg value="-target 5"/>
|
||||
<arg value="-optimizationpasses 7"/>
|
||||
<arg value="-dontshrink"/>
|
||||
|
|
Loading…
Reference in a new issue