Fix gradlew build (#18592)

* fixed ProGuard rule file

* add missing VIBRATE permission

* move permission to correct position in AndroidManifest.xml
This commit is contained in:
Peter Siegmund 2017-12-27 02:36:11 +01:00 committed by minggo
parent ca46b062fd
commit bbdd289a62
4 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.cocos2dx.lib">
<uses-permission android:name="android.permission.VIBRATE" />
<application android:allowBackup="true">
</application>

View File

@ -1,5 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.cocos2dx.lib">
<uses-permission android:name="android.permission.VIBRATE" />
<application android:allowBackup="true">
</application>

View File

@ -3,6 +3,8 @@
package="org.cocos2dx.hellocpp"
android:installLocation="auto">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-feature android:glEsVersion="0x00020000" />
<application
@ -28,6 +30,4 @@
</activity>
</application>
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>

View File

@ -21,7 +21,7 @@
-dontwarn org.cocos2dx.**
-keep public class com.chukong.** { *; }
-dontwarn com.chukong.**
-keep public com.huawei.android.** { *; }
-keep public class com.huawei.android.** { *; }
-dontwarn com.huawei.android.**
# Proguard Apache HTTP for release