godot/platform/android/java
2019-07-02 11:21:26 -07:00
..
aidl/com/android/vending/billing
gradle/wrapper
res
src Merge pull request #29824 from m4gr3d/add_ovr_export 2019-07-02 10:36:30 +02:00
AndroidManifest.xml Make the meta-data name attribute settable. This will facilitate reuse for ARCore integration. 2019-07-02 11:21:26 -07:00
build.gradle
gradle.properties
gradlew
gradlew.bat
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();