Skip to content

Commit 453a373

Browse files
author
Kaushik Gopal
committed
fix: configure buck
1 parent c4b7967 commit 453a373

File tree

56 files changed

+16154
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+16154
-4
lines changed

.buckconfig

Whitespace-only changes.

.buckconfig.local

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[alias]
2+
appDebug = //app:bin_debug
3+
appRelease = //app:bin_release
4+
5+
[android]
6+
build_tools_version = 24.0.2
7+
target = android-24
8+
9+
[project]
10+
ignore = .git,**/.svn

.buckd/buckd.runcount

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5

.buckd/buckd.version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
b3c1dd90071594758febf17ccb25469597710207
Binary file not shown.
Binary file not shown.

.okbuck/keystore/app/BUCK

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import re
2+
3+
for keystoreFile in glob(['*.keystore']):
4+
name = 'key_store_' + re.sub(r'^.*/([^/]+)\.keystore$', r'\1', keystoreFile)
5+
name = name
6+
keystore(
7+
name = name,
8+
store = keystoreFile,
9+
properties = keystoreFile + '.properties',
10+
visibility = ['PUBLIC'],
11+
)

.okbuck/keystore/app/debug.keystore

1.17 KB
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
key.alias=androiddebugkey
2+
key.store.password=android
3+
key.alias.password=android

.okbuck/keystore/app/release.keystore

1.17 KB
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
key.alias=androiddebugkey
2+
key.store.password=android
3+
key.alias.password=android

app/BUCK

Lines changed: 314 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,314 @@
1+
android_resource(
2+
name = 'res_main',
3+
res = 'src/main/res',
4+
package = 'com.morihacky.android.rxjava',
5+
resource_union = True,
6+
deps = [
7+
'//.okbuck/cache:com.android.support.animated-vector-drawable-24.2.1.aar',
8+
'//.okbuck/cache:com.android.support.appcompat-v7-24.2.1.aar',
9+
'//.okbuck/cache:com.android.support.recyclerview-v7-24.2.1.aar',
10+
'//.okbuck/cache:com.android.support.support-compat-24.2.1.aar',
11+
'//.okbuck/cache:com.android.support.support-core-ui-24.2.1.aar',
12+
'//.okbuck/cache:com.android.support.support-core-utils-24.2.1.aar',
13+
'//.okbuck/cache:com.android.support.support-fragment-24.2.1.aar',
14+
'//.okbuck/cache:com.android.support.support-media-compat-24.2.1.aar',
15+
'//.okbuck/cache:com.android.support.support-v13-24.2.1.aar',
16+
'//.okbuck/cache:com.android.support.support-v4-24.2.1.aar',
17+
'//.okbuck/cache:com.android.support.support-vector-drawable-24.2.1.aar',
18+
'//.okbuck/cache:com.github.kaushikgopal.CoreTextUtils-c703fa12b6.aar',
19+
'//.okbuck/cache:com.jakewharton.rxbinding.rxbinding-0.2.0.aar',
20+
'//.okbuck/cache:com.squareup.leakcanary.leakcanary-android-1.3.aar',
21+
'//.okbuck/cache:io.reactivex.rxjava2.rxandroid-2.0.1.aar',
22+
],
23+
visibility = [
24+
'PUBLIC',
25+
],
26+
)
27+
28+
android_build_config(
29+
name = 'build_config_debug',
30+
package = 'com.morihacky.android.rxjava',
31+
values = [
32+
'String APPLICATION_ID = "com.morihacky.android.rxjava"',
33+
'String BUILD_TYPE = "debug"',
34+
'String FLAVOR = ""',
35+
'int VERSION_CODE = 2',
36+
'String VERSION_NAME = "1.2"',
37+
],
38+
visibility = [
39+
'PUBLIC',
40+
],
41+
)
42+
43+
android_library(
44+
name = 'src_debug',
45+
srcs = glob([
46+
'src/main/java/**/*.java',
47+
]),
48+
manifest = 'build/okbuck/debug/AndroidManifest.xml',
49+
provided_deps = [
50+
'//.okbuck/cache/retrolambda:rt-stub.jar',
51+
],
52+
source = '8',
53+
target = '8',
54+
postprocess_classes_commands = [
55+
'(read CLASSES_DIR && java -Dretrolambda.inputDir="${CLASSES_DIR}" -Dretrolambda.classpath="${COMPILATION_BOOTCLASSPATH}":"${COMPILATION_CLASSPATH}":"${CLASSES_DIR}" -jar .okbuck/cache/retrolambda/retrolambda-2.3.0.jar) <<<',
56+
],
57+
deps = [
58+
'//.okbuck/cache:com.android.support.animated-vector-drawable-24.2.1.aar',
59+
'//.okbuck/cache:com.android.support.appcompat-v7-24.2.1.aar',
60+
'//.okbuck/cache:com.android.support.recyclerview-v7-24.2.1.aar',
61+
'//.okbuck/cache:com.android.support.support-annotations-24.2.1.jar',
62+
'//.okbuck/cache:com.android.support.support-compat-24.2.1.aar',
63+
'//.okbuck/cache:com.android.support.support-core-ui-24.2.1.aar',
64+
'//.okbuck/cache:com.android.support.support-core-utils-24.2.1.aar',
65+
'//.okbuck/cache:com.android.support.support-fragment-24.2.1.aar',
66+
'//.okbuck/cache:com.android.support.support-media-compat-24.2.1.aar',
67+
'//.okbuck/cache:com.android.support.support-v13-24.2.1.aar',
68+
'//.okbuck/cache:com.android.support.support-v4-24.2.1.aar',
69+
'//.okbuck/cache:com.android.support.support-vector-drawable-24.2.1.aar',
70+
'//.okbuck/cache:com.github.akarnokd.rxjava2-interop-0.6.1.jar',
71+
'//.okbuck/cache:com.github.kaushikgopal.CoreTextUtils-c703fa12b6.aar',
72+
'//.okbuck/cache:com.google.code.gson.gson-2.6.1.jar',
73+
'//.okbuck/cache:com.jakewharton.butterknife-7.0.1.jar',
74+
'//.okbuck/cache:com.jakewharton.retrofit.retrofit2-rxjava2-adapter-1.0.0.jar',
75+
'//.okbuck/cache:com.jakewharton.rxbinding.rxbinding-0.2.0.aar',
76+
'//.okbuck/cache:com.jakewharton.rxrelay.rxrelay-1.2.0.jar',
77+
'//.okbuck/cache:com.jakewharton.timber.timber-2.4.2.jar',
78+
'//.okbuck/cache:com.mcxiaoke.volley.library-1.0.19.jar',
79+
'//.okbuck/cache:com.squareup.haha.haha-1.1.jar',
80+
'//.okbuck/cache:com.squareup.leakcanary.leakcanary-analyzer-1.3.jar',
81+
'//.okbuck/cache:com.squareup.leakcanary.leakcanary-android-1.3.aar',
82+
'//.okbuck/cache:com.squareup.leakcanary.leakcanary-watcher-1.3.jar',
83+
'//.okbuck/cache:com.squareup.okhttp3.okhttp-3.3.0.jar',
84+
'//.okbuck/cache:com.squareup.okhttp3.okhttp-urlconnection-3.0.1.jar',
85+
'//.okbuck/cache:com.squareup.okio.okio-1.8.0.jar',
86+
'//.okbuck/cache:com.squareup.retrofit2.converter-gson-2.0.0.jar',
87+
'//.okbuck/cache:com.squareup.retrofit2.retrofit-2.1.0.jar',
88+
'//.okbuck/cache:io.reactivex.rxjava-1.2.2.jar',
89+
'//.okbuck/cache:io.reactivex.rxjava-math-1.0.0.jar',
90+
'//.okbuck/cache:io.reactivex.rxjava2.rxandroid-2.0.1.aar',
91+
'//.okbuck/cache:io.reactivex.rxjava2.rxjava-2.0.1.jar',
92+
'//.okbuck/cache:org.jetbrains.annotations-13.0.jar',
93+
'//.okbuck/cache:org.reactivestreams.reactive-streams-1.0.0.jar',
94+
':build_config_debug',
95+
':res_main',
96+
],
97+
visibility = [
98+
'PUBLIC',
99+
],
100+
)
101+
102+
genrule(
103+
name = 'lint_debug',
104+
srcs = [
105+
'src/main/java',
106+
'src/main/res',
107+
'build/okbuck/debug',
108+
],
109+
out = 'lint_debug_out',
110+
bash = '' \
111+
'mkdir -p $OUT; ' \
112+
'exec java ' \
113+
'-Djava.awt.headless=true ' \
114+
'-Xmx1024m ' \
115+
'-classpath $(location //.okbuck/cache/lint:okbuck_lint) ' \
116+
'com.android.tools.lint.Main ' \
117+
'--classpath $(location :src_debug) ' \
118+
'--exitcode ' \
119+
'--fullpath ' \
120+
'--xml "$OUT/lint-results.xml" ' \
121+
'--html "$OUT/lint-results.html" ' \
122+
'--sources src/main/java ' \
123+
'--resources src/main/res ' \
124+
'build/okbuck/debug ' \
125+
'',
126+
)
127+
128+
android_manifest(
129+
name = 'manifest_debug',
130+
skeleton = 'build/okbuck/debug/AndroidManifest.xml',
131+
deps = [
132+
'//.okbuck/cache:com.android.support.animated-vector-drawable-24.2.1.aar',
133+
'//.okbuck/cache:com.android.support.appcompat-v7-24.2.1.aar',
134+
'//.okbuck/cache:com.android.support.recyclerview-v7-24.2.1.aar',
135+
'//.okbuck/cache:com.android.support.support-compat-24.2.1.aar',
136+
'//.okbuck/cache:com.android.support.support-core-ui-24.2.1.aar',
137+
'//.okbuck/cache:com.android.support.support-core-utils-24.2.1.aar',
138+
'//.okbuck/cache:com.android.support.support-fragment-24.2.1.aar',
139+
'//.okbuck/cache:com.android.support.support-media-compat-24.2.1.aar',
140+
'//.okbuck/cache:com.android.support.support-v13-24.2.1.aar',
141+
'//.okbuck/cache:com.android.support.support-v4-24.2.1.aar',
142+
'//.okbuck/cache:com.android.support.support-vector-drawable-24.2.1.aar',
143+
'//.okbuck/cache:com.github.kaushikgopal.CoreTextUtils-c703fa12b6.aar',
144+
'//.okbuck/cache:com.jakewharton.rxbinding.rxbinding-0.2.0.aar',
145+
'//.okbuck/cache:com.squareup.leakcanary.leakcanary-android-1.3.aar',
146+
'//.okbuck/cache:io.reactivex.rxjava2.rxandroid-2.0.1.aar',
147+
],
148+
visibility = [
149+
'PUBLIC',
150+
],
151+
)
152+
153+
android_binary(
154+
name = 'bin_debug',
155+
manifest = ':manifest_debug',
156+
keystore = '//.okbuck/keystore/app:key_store_debug.keystore',
157+
manifest_entries = {
158+
'placeholders': {
159+
'applicationId': 'com.morihacky.android.rxjava',
160+
},
161+
},
162+
deps = [
163+
':res_main',
164+
':src_debug',
165+
],
166+
visibility = [
167+
'PUBLIC',
168+
],
169+
)
170+
171+
android_build_config(
172+
name = 'build_config_release',
173+
package = 'com.morihacky.android.rxjava',
174+
values = [
175+
'String APPLICATION_ID = "com.morihacky.android.rxjava"',
176+
'String BUILD_TYPE = "release"',
177+
'String FLAVOR = ""',
178+
'int VERSION_CODE = 2',
179+
'String VERSION_NAME = "1.2"',
180+
],
181+
visibility = [
182+
'PUBLIC',
183+
],
184+
)
185+
186+
android_library(
187+
name = 'src_release',
188+
srcs = glob([
189+
'src/main/java/**/*.java',
190+
]),
191+
manifest = 'build/okbuck/release/AndroidManifest.xml',
192+
provided_deps = [
193+
'//.okbuck/cache/retrolambda:rt-stub.jar',
194+
],
195+
source = '8',
196+
target = '8',
197+
postprocess_classes_commands = [
198+
'(read CLASSES_DIR && java -Dretrolambda.inputDir="${CLASSES_DIR}" -Dretrolambda.classpath="${COMPILATION_BOOTCLASSPATH}":"${COMPILATION_CLASSPATH}":"${CLASSES_DIR}" -jar .okbuck/cache/retrolambda/retrolambda-2.3.0.jar) <<<',
199+
],
200+
deps = [
201+
'//.okbuck/cache:com.android.support.animated-vector-drawable-24.2.1.aar',
202+
'//.okbuck/cache:com.android.support.appcompat-v7-24.2.1.aar',
203+
'//.okbuck/cache:com.android.support.recyclerview-v7-24.2.1.aar',
204+
'//.okbuck/cache:com.android.support.support-annotations-24.2.1.jar',
205+
'//.okbuck/cache:com.android.support.support-compat-24.2.1.aar',
206+
'//.okbuck/cache:com.android.support.support-core-ui-24.2.1.aar',
207+
'//.okbuck/cache:com.android.support.support-core-utils-24.2.1.aar',
208+
'//.okbuck/cache:com.android.support.support-fragment-24.2.1.aar',
209+
'//.okbuck/cache:com.android.support.support-media-compat-24.2.1.aar',
210+
'//.okbuck/cache:com.android.support.support-v13-24.2.1.aar',
211+
'//.okbuck/cache:com.android.support.support-v4-24.2.1.aar',
212+
'//.okbuck/cache:com.android.support.support-vector-drawable-24.2.1.aar',
213+
'//.okbuck/cache:com.github.akarnokd.rxjava2-interop-0.6.1.jar',
214+
'//.okbuck/cache:com.github.kaushikgopal.CoreTextUtils-c703fa12b6.aar',
215+
'//.okbuck/cache:com.google.code.gson.gson-2.6.1.jar',
216+
'//.okbuck/cache:com.jakewharton.butterknife-7.0.1.jar',
217+
'//.okbuck/cache:com.jakewharton.retrofit.retrofit2-rxjava2-adapter-1.0.0.jar',
218+
'//.okbuck/cache:com.jakewharton.rxbinding.rxbinding-0.2.0.aar',
219+
'//.okbuck/cache:com.jakewharton.rxrelay.rxrelay-1.2.0.jar',
220+
'//.okbuck/cache:com.jakewharton.timber.timber-2.4.2.jar',
221+
'//.okbuck/cache:com.mcxiaoke.volley.library-1.0.19.jar',
222+
'//.okbuck/cache:com.squareup.leakcanary.leakcanary-android-no-op-1.3.aar',
223+
'//.okbuck/cache:com.squareup.leakcanary.leakcanary-watcher-1.3.jar',
224+
'//.okbuck/cache:com.squareup.okhttp3.okhttp-3.3.0.jar',
225+
'//.okbuck/cache:com.squareup.okhttp3.okhttp-urlconnection-3.0.1.jar',
226+
'//.okbuck/cache:com.squareup.okio.okio-1.8.0.jar',
227+
'//.okbuck/cache:com.squareup.retrofit2.converter-gson-2.0.0.jar',
228+
'//.okbuck/cache:com.squareup.retrofit2.retrofit-2.1.0.jar',
229+
'//.okbuck/cache:io.reactivex.rxjava-1.2.2.jar',
230+
'//.okbuck/cache:io.reactivex.rxjava-math-1.0.0.jar',
231+
'//.okbuck/cache:io.reactivex.rxjava2.rxandroid-2.0.1.aar',
232+
'//.okbuck/cache:io.reactivex.rxjava2.rxjava-2.0.1.jar',
233+
'//.okbuck/cache:org.jetbrains.annotations-13.0.jar',
234+
'//.okbuck/cache:org.reactivestreams.reactive-streams-1.0.0.jar',
235+
':build_config_release',
236+
':res_main',
237+
],
238+
visibility = [
239+
'PUBLIC',
240+
],
241+
)
242+
243+
genrule(
244+
name = 'lint_release',
245+
srcs = [
246+
'src/main/java',
247+
'src/main/res',
248+
'build/okbuck/release',
249+
],
250+
out = 'lint_release_out',
251+
bash = '' \
252+
'mkdir -p $OUT; ' \
253+
'exec java ' \
254+
'-Djava.awt.headless=true ' \
255+
'-Xmx1024m ' \
256+
'-classpath $(location //.okbuck/cache/lint:okbuck_lint) ' \
257+
'com.android.tools.lint.Main ' \
258+
'--classpath $(location :src_release) ' \
259+
'--exitcode ' \
260+
'--fullpath ' \
261+
'--xml "$OUT/lint-results.xml" ' \
262+
'--html "$OUT/lint-results.html" ' \
263+
'--sources src/main/java ' \
264+
'--resources src/main/res ' \
265+
'build/okbuck/release ' \
266+
'',
267+
)
268+
269+
android_manifest(
270+
name = 'manifest_release',
271+
skeleton = 'build/okbuck/release/AndroidManifest.xml',
272+
deps = [
273+
'//.okbuck/cache:com.android.support.animated-vector-drawable-24.2.1.aar',
274+
'//.okbuck/cache:com.android.support.appcompat-v7-24.2.1.aar',
275+
'//.okbuck/cache:com.android.support.recyclerview-v7-24.2.1.aar',
276+
'//.okbuck/cache:com.android.support.support-compat-24.2.1.aar',
277+
'//.okbuck/cache:com.android.support.support-core-ui-24.2.1.aar',
278+
'//.okbuck/cache:com.android.support.support-core-utils-24.2.1.aar',
279+
'//.okbuck/cache:com.android.support.support-fragment-24.2.1.aar',
280+
'//.okbuck/cache:com.android.support.support-media-compat-24.2.1.aar',
281+
'//.okbuck/cache:com.android.support.support-v13-24.2.1.aar',
282+
'//.okbuck/cache:com.android.support.support-v4-24.2.1.aar',
283+
'//.okbuck/cache:com.android.support.support-vector-drawable-24.2.1.aar',
284+
'//.okbuck/cache:com.github.kaushikgopal.CoreTextUtils-c703fa12b6.aar',
285+
'//.okbuck/cache:com.jakewharton.rxbinding.rxbinding-0.2.0.aar',
286+
'//.okbuck/cache:com.squareup.leakcanary.leakcanary-android-no-op-1.3.aar',
287+
'//.okbuck/cache:io.reactivex.rxjava2.rxandroid-2.0.1.aar',
288+
],
289+
visibility = [
290+
'PUBLIC',
291+
],
292+
)
293+
294+
android_binary(
295+
name = 'bin_release',
296+
manifest = ':manifest_release',
297+
keystore = '//.okbuck/keystore/app:key_store_release.keystore',
298+
package_type = 'release',
299+
android_sdk_proguard_config = 'none',
300+
proguard_config = 'build/okbuck/release/proguard.pro',
301+
manifest_entries = {
302+
'placeholders': {
303+
'applicationId': 'com.morihacky.android.rxjava',
304+
},
305+
},
306+
deps = [
307+
':res_main',
308+
':src_release',
309+
],
310+
visibility = [
311+
'PUBLIC',
312+
],
313+
)
314+

app/build.gradle

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ dependencies {
6363

6464
android {
6565
compileSdkVersion sdkVersion
66-
buildToolsVersion '23.0.3'
66+
buildToolsVersion '25.0.0'
6767

6868
defaultConfig {
6969
applicationId "com.morihacky.android.rxjava"
@@ -72,12 +72,25 @@ android {
7272
versionCode 2
7373
versionName "1.2"
7474
}
75+
76+
signingConfigs {
77+
release {
78+
storeFile file('../debug.keystore')
79+
storePassword 'android'
80+
keyAlias 'androiddebugkey'
81+
keyPassword 'android'
82+
}
83+
}
7584
buildTypes {
7685
release {
7786
minifyEnabled true
7887
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
88+
signingConfig signingConfigs.release
89+
}
90+
debug {
91+
signingConfig signingConfigs.release
92+
}
7993
}
80-
}
8194
compileOptions {
8295
sourceCompatibility JavaVersion.VERSION_1_8
8396
targetCompatibility JavaVersion.VERSION_1_8

buck-out/.currentversion

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
b3c1dd90071594758febf17ccb25469597710207

buck-out/.progressestimations.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"build app:bin_debug":{"expectedNumberOfParsedRules":0,"expectedNumberOfParsedBUCKFiles":0},"targets ":{"expectedNumberOfParsedRules":0,"expectedNumberOfParsedBUCKFiles":0},"build app":{"expectedNumberOfParsedRules":0,"expectedNumberOfParsedBUCKFiles":0}}

0 commit comments

Comments
 (0)