diff options
author | fhuya <fhuya@google.com> | 2020-03-27 01:35:23 -0700 |
---|---|---|
committer | fhuya <fhuya@google.com> | 2020-03-27 01:35:23 -0700 |
commit | 8a50b716f5d335d0c060eb096032fc2d214dc635 (patch) | |
tree | 720c5f933732a949e0c2368a4cb0ee62354d9c28 /hello_signals/build.gradle | |
parent | 6837796a9d7acd3a5ea7ef241a23fd393c3a6609 (diff) | |
download | godot-android-samples-8a50b716f5d335d0c060eb096032fc2d214dc635.tar.gz godot-android-samples-8a50b716f5d335d0c060eb096032fc2d214dc635.tar.bz2 godot-android-samples-8a50b716f5d335d0c060eb096032fc2d214dc635.zip |
Add `HelloSignals` sample project to show how to register and emit signals with a Godot Android plugin
Diffstat (limited to 'hello_signals/build.gradle')
-rw-r--r-- | hello_signals/build.gradle | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/hello_signals/build.gradle b/hello_signals/build.gradle new file mode 100644 index 0000000..55bee0e --- /dev/null +++ b/hello_signals/build.gradle @@ -0,0 +1,37 @@ +apply plugin: 'com.android.library' +apply plugin: 'kotlin-android' +apply plugin: 'kotlin-android-extensions' + +android { + compileSdkVersion 29 + buildToolsVersion "29.0.1" + + defaultConfig { + minSdkVersion 18 + targetSdkVersion 29 + versionCode 1 + versionName "1.0" + } + + // Used to customize the name of generated AAR file. + libraryVariants.all { variant -> + variant.outputs.all { output -> + output.outputFileName = "HelloSignals.${variant.name}.aar" + } + } + +} + +dependencies { + /* + Used to provide dependency on the Godot Android library. A version of that + library will be made available for each stable release of Godot. + + `compileOnly` is used instead of `implementation` to ensure that the + godot library is not bundled with the generated plugin AAR file. This is + necessary since the Godot editor will also provide a version of the godot + library when building the final binary. + */ + compileOnly fileTree(dir: '../libs', include: ['godot-lib*.aar']) + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" +} |