Skip to content

Commit

Permalink
Updated to version 1.1.1
Browse files Browse the repository at this point in the history
- Added new iOS version: 2.0.2
- Added new Godot Version: 3.4
  • Loading branch information
gumaciel committed Nov 10, 2021
1 parent 7c0a177 commit 6c7ce35
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion addons/admob/plugin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
name="AdMob"
description="The AdMob of Plugin for Android and iOS."
author="Poing Studios"
version="1.1.0"
version="1.1.1"
script="src/core/AdMob.gd"
9 changes: 6 additions & 3 deletions addons/admob/src/core/components/Downloads.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ onready var godot_version : String = String(Engine.get_version_info().major) + "
var actual_downloading_file : String = ""

var android_dictionary : Dictionary = {
"version" : ["CURRENT", "3.3.4", "3.3.3", "3.3.2", "3.3.1", "3.3", "3.2.3", "3.2.2"],
"version" : ["CURRENT", "3.4", "3.3.4", "3.3.3", "3.3.2", "3.3.1", "3.3", "3.2.3", "3.2.2"],
"download_directory" : "res://addons/admob/downloads/android"
} setget set_android_dictionary

var ios_dictionary : Dictionary = {
"version" : ["CURRENT", "3.3.4", "3.3.3", "3.3.2", "3.3.1", "3.3"],
"version" : ["CURRENT", "3.4", "3.3.4", "3.3.3", "3.3.2", "3.3.1", "3.3"],
"download_directory" : "res://addons/admob/downloads/ios"
} setget set_ios_dictionary

Expand All @@ -28,6 +28,9 @@ func set_ios_dictionary(value):
$TabContainer/iOS/ChangeDirectoryHBoxContainer/DownloadDirectoryLabel.text = current_dir_download_label % ios_dictionary.download_directory

func _ready():
if godot_version[godot_version.length()-1] == "0":
godot_version = godot_version.substr(0, godot_version.length()-2)

set_process(false)
$TabContainer/Android/VersionHBoxContainer/AndroidVersion.clear()
$TabContainer/iOS/VersionHBoxContainer/iOSVersion.clear()
Expand Down Expand Up @@ -70,7 +73,7 @@ func _on_DownloadiOSTemplate_pressed():
var ios_version = $TabContainer/iOS/VersionHBoxContainer/iOSVersion.text
if ios_version == "CURRENT":
ios_version = godot_version

var file_name = "ios-template-v" + ios_version + ".zip"
var plugin_version = AdMobEditor.AdMobSettings.version_support.ios
$HTTPRequest.download_file = ios_dictionary.download_directory + "/" + file_name
Expand Down
2 changes: 1 addition & 1 deletion addons/admob/src/core/components/Downloads.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ autowrap = true
margin_top = 69.0
margin_right = 720.0
margin_bottom = 83.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_styles/fg = SubResource( 1 )
custom_styles/bg = SubResource( 2 )
custom_colors/font_color = Color( 0, 0, 0, 1 )

[node name="HTTPRequest" type="HTTPRequest" parent="."]

Expand Down
2 changes: 1 addition & 1 deletion addons/admob/src/utils/AdMobSettings.gd
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const MAX_AD_RATING : Array = ["G", "PG", "T", "MA"]
enum POSITION {TOP, BOTTOM}

var version_support : Dictionary = {
"ios" : "v2.0.1",
"ios" : "v2.0.2",
"android" : "v2.0.0"
}

Expand Down

0 comments on commit 6c7ce35

Please sign in to comment.