blob: b3a6f76731ce45025a86689b9b2c4feeffa3887b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
}
android {
compileSdk versions.compileSdk
defaultConfig {
minSdk versions.minSdk
targetSdk versions.targetSdk
versionCode 1
versionName "1.0"
}
namespace = "fhuyakou.godot.plugin.android.hellosignals"
// Used to customize the name of generated AAR file.
libraryVariants.configureEach { variant ->
variant.outputs.configureEach { output ->
output.outputFileName = "HelloSignals.${variant.name}.aar"
}
}
}
dependencies {
compileOnly libraries.godotAndroidLib
implementation "org.jetbrains.kotlin:kotlin-stdlib:$versions.kotlinVersion"
}
tasks.register('copyDebugAARToDemoAddons', Copy) {
from 'build/outputs/aar'
include 'HelloSignals.debug.aar'
into 'demo/addons/hello_signals_plugin/bin/debug'
}
tasks.register('copyReleaseAARToDemoAddons', Copy) {
from 'build/outputs/aar'
include 'HelloSignals.release.aar'
into 'demo/addons/hello_signals_plugin/bin/release'
}
tasks.register('copyAddonsToDemo', Copy) {
finalizedBy(copyDebugAARToDemoAddons)
finalizedBy(copyReleaseAARToDemoAddons)
doFirst {
delete('demo/addons/hello_signals_plugin')
}
from 'src/main/assets/addons/hello_signals_plugin'
into 'demo/addons/hello_signals_plugin'
}
assemble.finalizedBy(copyAddonsToDemo)
assemble.finalizedBy(copyDebugAARToDemoAddons)
assemble.finalizedBy(copyReleaseAARToDemoAddons)
|