Permalink
Browse files

Step 4: Add BUCK and .buckconfig files, and update .gitignore

  • Loading branch information...
dreiss authored and k21 committed Jul 8, 2014
1 parent 5f7ce49 commit d4553a92eb8969e05d7cd9c2e73b4309fee72966
Showing with 149 additions and 0 deletions.
  1. +11 −0 .buckconfig
  2. +17 −0 .gitignore
  3. +117 −0 BUCK
  4. +4 −0 keystore/debug.keystore.properties
View
@@ -0,0 +1,11 @@
# The files and modifications provided by Facebook are for testing and evaluation purposes only. Facebook reserves all rights not expressly granted.
[alias]
antennapod = //:antennapod
[cache]
mode = dir
dir_max_size = 1GB
[android]
target = Google Inc.:Google APIs:19
View
@@ -1,3 +1,5 @@
# The files and modifications provided by Facebook are for testing and evaluation purposes only. Facebook reserves all rights not expressly granted.
# built application files
*.apk
*.ap_
@@ -41,3 +43,18 @@ proguard
*.DS_Store
src/de/danoeh/antennapod/util/flattr/FlattrConfig.java
gradle.properties
# Buck
/.buckd
/buck-out
/buck-cache
# Keystores
# In Buck, all input files must live under the project root.
# Therefore, you need to create the following files in this
# project with your own keystore:
keystore/debug.keystore
# Most likely, you can use the standard debug keystore by running
# the following:
#
# cp ~/.android/debug.keystore keystore/debug.keystore
View
117 BUCK
@@ -0,0 +1,117 @@
# The files and modifications provided by Facebook are for testing and evaluation purposes only. Facebook reserves all rights not expressly granted.
import re
jar_deps = []
for jarfile in glob(['libs/*.jar']):
name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile)
jar_deps.append(':' + name)
prebuilt_jar(
name = name,
binary_jar = jarfile,
)
android_library(
name = 'all-jars',
exported_deps = jar_deps,
)
presto_gen_aidls = []
for aidlfile in glob(['src/com/aocate/presto/service/*.aidl']):
name = 'presto_aidls__' + re.sub(r'^.*/([^/]+)\.aidl$', r'\1', aidlfile)
presto_gen_aidls.append(':' + name)
gen_aidl(
name = name,
aidl = aidlfile,
import_path = 'src',
)
android_library(
name = 'presto-aidls',
srcs = presto_gen_aidls,
)
android_build_config(
name = 'build-config',
package = 'de.danoeh.antennapod',
)
android_library(
name = 'main-lib',
srcs = glob(['src/de/danoeh/antennapod/**/*.java']),
deps = [
':all-jars',
':dslv-lib',
':presto-lib',
':appcompat',
':build-config',
':res',
],
)
android_resource(
name = 'res',
package = 'de.danoeh.antennapod',
res = 'res',
assets = 'assets',
deps = [
':appcompat',
':dslv-res',
]
)
android_library(
name = 'dslv-lib',
srcs = glob(['submodules/dslv/library/src/**/*.java']),
deps = [
':all-jars',
':dslv-res',
],
)
android_resource(
name = 'dslv-res',
package = 'com.mobeta.android.dslv',
res = 'submodules/dslv/library/res',
deps = [
]
)
android_library(
name = 'presto-lib',
srcs = glob(['src/com/aocate/**/*.java']),
deps = [
':presto-aidls',
':all-jars',
],
)
android_manifest(
name = 'manifest',
skeleton = 'AndroidManifest.xml',
deps = [
':main-lib',
],
)
keystore(
name = 'debug_keystore',
store = 'keystore/debug.keystore',
properties = 'keystore/debug.keystore.properties',
)
android_binary(
name = 'antennapod',
manifest = ':manifest',
keystore = ':debug_keystore',
deps = [
':main-lib',
],
)
android_prebuilt_aar(
name = 'appcompat',
aar = 'libs/appcompat-v7-19.1.0.aar',
)
@@ -0,0 +1,4 @@
# The files and modifications provided by Facebook are for testing and evaluation purposes only. Facebook reserves all rights not expressly granted.
key.alias=androiddebugkey
key.store.password=android
key.alias.password=android

0 comments on commit d4553a9

Please sign in to comment.