godot/platform/android/java
Rémi Verschelde f20c9c25eb
Merge pull request #28164 from BastiaanOlij/AndroidCameraPermission
Add camera permissions to android
2019-04-19 11:27:11 +02:00
..
aidl/com/android/vending/billing -Removed ANT build system for Android, as it was deprecated by Google 2016-01-08 13:36:44 -03:00
gradle/wrapper Fix lint error/warning while building android template 2018-12-18 17:26:33 +09:00
res Fix lint error/warning while building android template 2018-12-18 17:26:33 +09:00
src Merge pull request #28164 from BastiaanOlij/AndroidCameraPermission 2019-04-19 11:27:11 +02:00
README.md Fix lint error/warning while building android template 2018-12-18 17:26:33 +09:00
gradle.properties update gradle-android buildtool for master 2017-07-30 11:30:20 +07:00
gradlew Fix lint error/warning while building android template 2018-12-18 17:26:33 +09:00
gradlew.bat Fix lint error/warning while building android template 2018-12-18 17:26:33 +09:00

README.md

Third party libraries

Google's vending library

Overwrite all files under com/google/android/vending

Modify some files to avoid compile error and lint warning

com/google/android/vending/licensing/util/Base64.java

@@ -338,7 +338,8 @@ public class Base64 {
                        e += 4;
                }
 
-               assert (e == outBuff.length);
+               if (BuildConfig.DEBUG && e != outBuff.length)
+                       throw new RuntimeException();
                return outBuff;
        }

com/google/android/vending/licensing/LicenseChecker.java

@@ -29,8 +29,8 @@ import android.os.RemoteException;
 import android.provider.Settings.Secure;
 import android.util.Log;
 
-import com.android.vending.licensing.ILicenseResultListener;
-import com.android.vending.licensing.ILicensingService;
+import com.google.android.vending.licensing.ILicenseResultListener;
+import com.google.android.vending.licensing.ILicensingService;
 import com.google.android.vending.licensing.util.Base64;
 import com.google.android.vending.licensing.util.Base64DecoderException;
@@ -287,13 +287,15 @@ public class LicenseChecker implements ServiceConnection {
     if (logResponse) {
-        String android_id = Secure.getString(mContext.getContentResolver(),
-                            Secure.ANDROID_ID);
+        String android_id = Secure.ANDROID_ID;
         Date date = new Date();