Skip to content

Commit

Permalink
Bug Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
scottrules44 committed Sep 3, 2023
1 parent 47fc863 commit 2bd20fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Binary file modified plugins/2023.3686/android/plugin.admob.jar
Binary file not shown.
7 changes: 4 additions & 3 deletions src/android/plugin/src/main/java/plugin/admob/LuaLoader.java
Expand Up @@ -91,7 +91,7 @@
@SuppressWarnings({"unused", "RedundantSuppression"})
public class LuaLoader implements JavaFunction, CoronaRuntimeListener {
private static final String PLUGIN_NAME = "plugin.admob";
private static final String PLUGIN_VERSION = "1.5.0";
private static final String PLUGIN_VERSION = "1.6.0";
private static final String PLUGIN_SDK_VERSION = "0";//getVersionString();

private static final String EVENT_NAME = "adsRequest";
Expand Down Expand Up @@ -1705,9 +1705,9 @@ public int invoke(final LuaState luaState) {
if (luaState.type(-1) == LuaType.TABLE) {
luaState.getField(-1, "geography");
if(luaState.isString(-1)){
if(luaState.toString(-1) == "EEA"){
if(luaState.toString(-1).equals("EEA")){
debugSettings.setDebugGeography(ConsentDebugSettings.DebugGeography.DEBUG_GEOGRAPHY_EEA);
}else if(luaState.toString(-1) == "notEEA"){
}else if(luaState.toString(-1).equals("notEEA")){
debugSettings.setDebugGeography(ConsentDebugSettings.DebugGeography.DEBUG_GEOGRAPHY_NOT_EEA);
}else{
debugSettings.setDebugGeography(ConsentDebugSettings.DebugGeography.DEBUG_GEOGRAPHY_DISABLED);
Expand All @@ -1728,6 +1728,7 @@ public int invoke(final LuaState luaState) {
}
}
}
params.setConsentDebugSettings(debugSettings.build());
luaState.pop(1);
} else {
logMsg(ERROR_MSG, "options.debug (table) expected, got " + luaState.typeName(-1));
Expand Down

0 comments on commit 2bd20fe

Please sign in to comment.