This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
76 lines (65 loc) · 1.94 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.stanfy.helium:gradle-plugin:0.5.3'
classpath 'com.android.tools.build:gradle:0.13.2'
classpath 'com.stanfy.android:gradle-android-apt:1.0.0'
}
}
apply plugin: 'com.android.application'
apply plugin: 'helium-android'
apply plugin: 'com.stanfy.android.apt'
apply plugin: 'project-report'
repositories {
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
dependencies {
compile 'com.android.support:support-v4:20.0.0'
compile 'com.netflix.rxjava:rxjava-core:0.20.4'
// we interact with Twitter via Retrofit (interface generated with Helium)
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.squareup.retrofit:retrofit:1.6.1'
// we control fetching data from Twitter via a Loader
compile 'com.stanfy.enroscar:enroscar-async:2.0-RC1@aar'
provided 'com.stanfy.enroscar:enroscar-async-compiler:2.0-RC1'
// and do Loader interactions with RxJava
compile 'com.stanfy.enroscar:enroscar-async-rx:2.0-RC1@aar'
// fetch operations are run within a Service context
compile 'com.stanfy.enroscar:enroscar-goro:2.0.0@aar'
}
android {
compileSdkVersion 21
buildToolsVersion "20.0.0"
defaultConfig {
minSdkVersion 14
targetSdkVersion 21
}
lintOptions {
ignore 'InvalidPackage' // avoid complains about annotation processor classes
}
}
import javax.lang.model.element.Modifier
import static com.stanfy.helium.handler.codegen.java.entity.Writers.*;
helium {
specification(file('src/main/api/twitter.api')) {
sourceGen {
entities {
options {
packageName = "enroscar.async.example.api"
prettifyNames = true
fieldModifiers = EnumSet.of(Modifier.PRIVATE)
addGetters = true
writerWrapper = gson()
}
}
retrofit {
options {
packageName = "enroscar.async.example.api"
}
}
}
}
}