1
-
2
1
buildscript {
3
2
repositories {
4
3
mavenCentral()
@@ -21,19 +20,23 @@ repositories {
21
20
22
21
apply plugin : org.gradlefx.plugins.GradleFxPlugin
23
22
23
+ def commonDir = ext. commonDir
24
24
def variant = hasProperty(' variant' ) ? variant : ' New'
25
25
println " Variant is: $variant "
26
- def config = new ConfigSlurper (variant). parse(file(' config.groovy' ). toURL())
26
+ def config = new ConfigSlurper (variant). parse(file(" ${ commonDir } / config.groovy" ). toURL())
27
27
28
28
type = ' mobile'
29
29
version = ' 1.0-SNAPSHOT'
30
30
frameworkLinkage = ' none'
31
31
playerVersion = config. get(' playerVersion' )
32
32
33
33
dependencies {
34
- flexSDK group : ' org.apache' , name : ' apache-flex-sdk' , version :' 4.10.0' , ext : ' zip'
35
- external group : ' macromedia.com' , name : ' playerglobal' , version : playerVersion. replace(' .' ,' _' ), ext : ' swc'
36
- merged files(' libs/as3corelib.swc' , ' libs/blooddy_crypto.swc' )
34
+ flexSDK group : ' org.apache' , name : ' apache-flex-sdk' , version : ' 4.10.0' , ext : ' zip'
35
+ external group : ' macromedia.com' , name : ' playerglobal' , version : playerVersion. replace(' .' , ' _' ), ext : ' swc'
36
+ merged files(
37
+ " ${ commonDir} /libs/as3corelib.swc" ,
38
+ " ${ commonDir} /libs/blooddy_crypto.swc" ,
39
+ )
37
40
}
38
41
39
42
sdkAutoInstall {
@@ -43,6 +46,7 @@ sdkAutoInstall {
43
46
def scratchFlashCommitID = " 'dev'"
44
47
additionalCompilerOptions = [
45
48
" -library-path+=libs/framework.swc" , // in the SDK's frameworks directory
49
+ " -library-path+=libs/osmf.swc" , // in the SDK's frameworks directory
46
50
" -target-player=${ playerVersion} " ,
47
51
" -default-size=800,600" ,
48
52
" -define+=SCRATCH::revision,${ scratchFlashCommitID} " ,
0 commit comments