Shin-NiL / Godot-Android-Admob-Plugin

Android AdMob plugin for Godot Game Engine 3.2 or higher
MIT License
543 stars 66 forks source link

Question - It is possible to make the module compatible with an AES key ? #136

Closed Insoka closed 3 years ago

Insoka commented 3 years ago

First, thanks for your module that works great !

I have a small question, is it possible to make it works with an AES key ? If the answer is yes, how I'm suppose to do this.

I use Godot 3.2.3 and AdMod 4.1.1 I check the following tests : It works great in standard way (module Admob + Android). It works in encrypted way (only Android without module Admob). I have a problem with the encrypted way (Android + module Admob).

I try with the module compile with the compile export template of Godot for Android with the AES key. But as I don't really know if it require a particular setup of Gradle to make it work ? I'm a little bit confuse on compatibility of the module with this kind of configuration (encrypted export template), so it is possible that I miss something or I made a mistake somewhere (or maybe It requires to recompile Godot with the module).

Insoka commented 3 years ago

Today I try again and it works great ! It was just a small configuration that may depends on the OS and the version of Godot. So it was a problem related with Godot and not to Admob...

When you use Custom Template with "Use Custom Build", Godot by default do not take template compile with AES key that you put in the Godot templates, neither if you indicate the pass of the compile .apk template. What work for me was this step (otherwise see : https://github.com/godotengine/godot/issues/43817) You must compile the template export for android with AES key and take the .aar file for debug and release THEN replace the file in your project :res//android/build/libs/debug and :res//android/build/libs/release by the new one and it works like a charm !