Skip to content

Commit 5e8013b

Browse files
committed
#3 On build the gdap file is now copied to output along with unity-adds.aar file from libs folder so you can just copy and paste the output
1 parent 4b3eace commit 5e8013b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

unityadsgodot/build.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,18 @@ dependencies {
2828
compileOnly fileTree(dir: 'libs', include: ['*.aar'])
2929
implementation 'androidx.annotation:annotation:1.1.0'
3030
}
31+
32+
task copyResourceToOutput {
33+
doLast {
34+
copy {
35+
from "$projectDir/../Godot/UnityAdsGodot.gdap"
36+
into "$buildDir/outputs/aar/"
37+
}
38+
copy {
39+
from "$projectDir/libs/unity-ads.aar"
40+
into "$buildDir/outputs/aar/"
41+
}
42+
}
43+
}
44+
45+
build.finalizedBy(copyResourceToOutput)

0 commit comments

Comments
 (0)