-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
59 lines (45 loc) · 1.32 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
buildscript {
// apply LOCAL copy of j2objc PR 618 which adds j2objc 1.0.2 support
// https://github.com/j2objc-contrib/j2objc-gradle/pull/618
repositories {
flatDir dirs: './libs'
}
dependencies {
classpath group: 'com.github.j2objccontrib.j2objcgradle', name: 'j2objc-gradle',
version: '0.6.1-alpha-SNAPSHOT'
}
}
apply plugin: 'java'
apply plugin: 'com.github.j2objccontrib.j2objcgradle'
group 'com.totsp'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.7
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
compile 'com.google.guava:guava:19.0'
compile 'com.google.code.gson:gson:2.7'
}
// TODO skip the HelloWorldJavaDeps stuff, make it optional, adds a lot of time to build
// takes longer, but check for cycles
/*
j2objcCycleFinder {
enabled = true
}
*/
j2objcConfig {
// Sets up libraries you depend on
autoConfigureDeps true
// exact num of cycles
//cycleFinderExpectedCycles 23
// Omit these two lines if you don't configure your Xcode project with CocoaPods
///xcodeProjectDir '.ios'
///xcodeTargetsIos 'Hello-J2ObjC-iOS', 'Hello-J2ObjC-iOSTests'
// including static libraries MANUALLY, for now
j2objcXcode {
enabled = false
}
finalConfigure()
}