-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.gradle
136 lines (121 loc) · 3.76 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.javafxports:jfxmobile-plugin:1.1.0'
}
}
plugins {
id "com.github.hierynomus.license" version "0.13.1"
}
license {
header = file('LICENSE.txt')
strictCheck true
}
apply plugin: 'org.javafxports.jfxmobile'
apply from: 'theme.gradle'
themes {
otn
javaone
}
repositories {
jcenter()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
maven {
url 'http://nexus.gluonhq.com/nexus/content/repositories/releases'
}
maven {
url 'http://nexus.gluonhq.com/nexus/content/repositories/snapshots'
credentials {
username gluonNexusUsername
password gluonNexusPassword
}
}
maven {
url 'http://nexus.gluonhq.com/nexus/content/repositories/gluon-oss-daily'
credentials {
username gluonNexusUsername
password gluonNexusPassword
}
}
maven {
url 'http://nexus.gluonhq.com/nexus/content/repositories/gluon-private-releases'
credentials {
username gluonNexusUsername
password gluonNexusPassword
}
}
flatDir {
dirs 'libs'
}
}
mainClassName = 'com.gluonhq.otn.OTNApplication'
preloaderClassName = 'com.gluonhq.otn.OTNPreloader'
// For desktop (for mobile check java.custom.properties)
applicationDefaultJvmArgs = [
"-Djavafx.pulseLogger=false",
"-Denable.logging=false",
"-Dfile.encoding=UTF-8"
]
dependencies {
compile('com.gluonhq:glisten-afterburner:1.0.0') {
exclude group: 'com.airhacks', module: 'afterburner.mfx'
}
compileNoRetrolambda 'com.airhacks:afterburner.mfx:1.6.2'
compile 'com.gluonhq:connect:1.1.0'
compile 'com.google.zxing:core:3.2.1'
compile 'com.gluonhq:maps:1.0.1-SNAPSHOT'
compile 'com.gluonhq:glisten-labs:1.0.0-b6'
compile name: 'images'
// compile name: 'ScenicView'
}
configurations.all {
resolutionStrategy {
cacheChangingModulesFor 0, 'seconds'
}
}
// run this task to extract libCharm.a from charm-ios.jar to jniLibs before running launchIOSDevice
task extractNativeLib(type: Sync) {
def iosNativeDir = project.file(project.jfxmobile.ios.nativeDirectory)
if (!iosNativeDir.exists()) {
iosNativeDir.mkdirs()
}
setIncludeEmptyDirs(false)
from {
configurations.iosRuntime.collect { zipTree(it).matching { include 'native/**' } }
}
into iosNativeDir
eachFile {details -> details.path = details.name }
}
jfxmobile {
downConfig {
version '3.0.0'
plugins 'browser', 'cache', 'connectivity', 'dialer', 'display', 'lifecycle', 'local-notifications', 'settings', 'statusbar', 'storage'
}
android {
manifest = 'src/android/AndroidManifest.xml'
signingConfig {
storeFile project.hasProperty('GLUON_APK_SIGN_KEYSTORE') ? file(GLUON_APK_SIGN_KEYSTORE) : null
storePassword project.hasProperty('GLUON_APK_SIGN_STOREPASSWORD') ? GLUON_APK_SIGN_STOREPASSWORD : ''
keyAlias project.hasProperty('GLUON_APK_SIGN_KEYALIAS') ? GLUON_APK_SIGN_KEYALIAS : ''
keyPassword project.hasProperty('GLUON_APK_SIGN_KEYPASSWORD') ? GLUON_APK_SIGN_KEYPASSWORD : ''
}
}
ios {
launcherClassName = 'com.gluonhq.charm.down.notifications.CustomLauncher'
infoPList = file('src/ios/Default-Info.plist')
forceLinkClasses = [
'com.gluonhq.otn.**.*',
'com.gluonhq.**.*',
'javax.xml.stream.*.',
'io.datafx.**.*',
'javax.annotations.**.*',
'javax.inject.**.*',
'javax.json.**.*',
'org.glassfish.json.**.*'
]
}
}