-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
62 lines (50 loc) · 1.37 KB
/
build.gradle
File metadata and controls
62 lines (50 loc) · 1.37 KB
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
/************************/
/** Build Script Setup **/
/************************/
buildscript {
// Add central and local Maven repos
repositories {
jcenter()
mavenLocal()
}
dependencies {
// MOE plugin
classpath group: 'org.multi-os-engine', name: 'moe-gradle', version: '1.2.+'
}
}
/*******************/
/** Project Setup **/
/*******************/
// Apply plugins
apply plugin: 'moe'
// Set source and target to Java 8
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
sourceSets {
main {
java {
srcDirs += 'src/binding/facebook/java'
srcDirs += 'src/binding/google-gpg/java'
srcDirs += 'src/binding/google-plus/java'
srcDirs += 'src/binding/google-signin/java'
srcDirs += 'src/binding/mopub/java'
}
}
}
// Exclude all files from Gradle's test runner
test { exclude '**' }
// Setup MOE
moe {
xcode.mainTarget = 'Frameworks'
xcode.testTarget = 'Frameworks-Test'
xcode.packageName = 'moe.moe.frameworks'
xcode.launchScreenFilePath = 'src/main/resources/LaunchScreen.xib'
xcode.bundleID = 'moe.Frameworks'
xcode.generateProject = false
xcode.xcodeProjectDirPath = 'xcode'
}
// Set dependencies
dependencies {
// Compile with 'jar' files in the project's 'lib' directory
compile fileTree(dir: 'lib', include: '*.jar')
}