You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-14Lines changed: 15 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,23 +4,18 @@ Current version of the `UnityAdsGodot.aar` and example project is available for
4
4
5
5
## Requirements
6
6
7
-
The new export templates for android was introduced in godot 3.2.1, but we cannot link custom plugins as export settings panel is missing "Plugins" field so the minimum version would be 3.2.2 for this to run.
7
+
The new export templates for android was introduced in Godot 3.2.2. So Godot 3.2.2 and up is required
8
8
9
9
## Setup
10
10
11
-
-Open up the Android export template settings by going to `Project -> Export`.
11
+
-In Godot open up the Android export template settings by going to `Project -> Export`.
12
12
- Select `Android` and enable costom build.
13
-
- In plugins feald type in `UnityAdsGodot`.
14
-
- Open up the Godots projects `android` folder and create a folder called `plugins`.
15
-
- Place the `UnityAdsGodot.aar` inside the freshly created plugins folder.
13
+
- Instal custom android build template.
16
14
- Download UnityAds Android library from [here](https://github.com/Unity-Technologies/unity-ads-android/releases)
17
-
- Place the downloaded `unity-ads.aar` inside `android/build/libs/plugins`
18
-
- Check if `android/build/build.gradle` does not have any filters for specific plugins and if theres a filter update the line as folows
- Open up the Godots projects `android` folder and create a folder called `plugins` if it isn't there.
16
+
- Place the `UnityAdsGodot.aar` inside the freshly created plugins folder along with `unity-ads.aar` and `UnityAdsGodot.gdap`.
17
+
- The min SDK version will need a update so open up the `android\build\config.gradle` and update `minSdkVersion` to 26
18
+
- Last thing is to enable this plugin under `Project -> Export -> Android -> Plugins` and check the checkbox besides `Unity Ads Godot`
24
19
25
20
## Usage
26
21
@@ -62,12 +57,18 @@ func _on_showad_pressed():
62
57
63
58
## Compiling from source
64
59
65
-
TODO: Describe how to do this.
60
+
- Clone out this repo
61
+
- Download UnityAds Android library from [here](https://github.com/Unity-Technologies/unity-ads-android/releases) and place it inside `unityadsgodot\libs` folder
62
+
- Download corresponding version of `godot-lib.3.2.2.stable.release` from [here](https://godotengine.org/download/) and place it again in `unityadsgodot\libs` folder
63
+
- Open the project in android studio and run `gradlew build` from terminal to build the aar libs
64
+
- Build results should be located inside `unityadsgodot\build\outputs\aar`
65
+
- Build output can be copied to Godot projects `android\plugins` alongside dependencies and plugin description file from `Godot\UnityAdsGodot.gdap`
66
66
67
67
## TODOs
68
68
69
69
-[ ] Improve documentation
70
-
-[ ] Code/Project cleanup
70
+
-[ ] Code cleanup
71
+
-[x] Project cleanup
71
72
-[ ] Banner ads are not working and seems that api is deprecated. Need to investigate that
72
73
-[ ] Improve setup (possibly create a script for that)
0 commit comments