-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
102 lines (89 loc) · 2.72 KB
/
build.gradle
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.+'
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
apply plugin: 'com.android.library'
android {
compileSdkVersion 33
buildToolsVersion "33.0.0"
defaultConfig {
minSdkVersion 21
targetSdkVersion 33
versionCode 1
versionName "1.1"
}
// Used to customize the name of generated AAR file.
libraryVariants.all { variant ->
variant.outputs.all { output ->
output.outputFileName = "LocalNotification.${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.
*/
// implementation 'io.github.m4gr3d:godot:3.5.1.stable'
compileOnly fileTree(dir: 'libs', include: ['godot-lib*.aar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.work:work-runtime:2.7.1'
}
group = 'ru.mobilap.godot'
version = '0.1.0'
ext {
artifact = 'godot-localnotification'
}
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
afterEvaluate {
// generateReleaseBuildConfig.enabled = false
// generateDebugBuildConfig.enabled = false
publishing {
publications {
MyPublication(MavenPublication) {
from components.release
groupId group
artifactId artifact
version version
}
}
}
// Bintray
bintray {
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")
publications = ['MyPublication']
pkg {
repo = 'maven'
name = artifact
userOrg = 'mobilap'
desc = 'Local notifications for godot engine.'
websiteUrl = 'https://github.com/DrMoriarty/godot-local-notification'
vcsUrl = 'https://github.com/DrMoriarty/godot-local-notification.git'
licenses = ["MIT", "BSD"]
publish = true
publicDownloadNumbers = true
version {
}
}
}
}