2016-04-24 08:07:08 +00:00
|
|
|
import re
|
|
|
|
|
|
|
|
# To learn about Buck see [Docs](https://buckbuild.com/).
|
|
|
|
# To run your application with Buck:
|
|
|
|
# - install Buck
|
|
|
|
# - `npm start` - to start the packager
|
|
|
|
# - `cd android`
|
|
|
|
# - `cp ~/.android/debug.keystore keystores/debug.keystore`
|
|
|
|
# - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
|
|
|
|
# - `buck install -r android/app` - compile, install and run application
|
|
|
|
#
|
|
|
|
|
|
|
|
lib_deps = []
|
2019-03-04 12:38:41 +00:00
|
|
|
create_aar_targets(glob(["libs/*.aar"]))
|
|
|
|
create_jar_targets(glob(["libs/*.jar"]))
|
2016-04-24 08:07:08 +00:00
|
|
|
|
|
|
|
android_library(
|
|
|
|
name = 'all-libs',
|
|
|
|
exported_deps = lib_deps
|
|
|
|
)
|
|
|
|
|
|
|
|
android_library(
|
|
|
|
name = 'app-code',
|
|
|
|
srcs = glob([
|
|
|
|
'src/main/java/**/*.java',
|
|
|
|
]),
|
|
|
|
deps = [
|
|
|
|
':all-libs',
|
|
|
|
':build_config',
|
|
|
|
':res',
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
android_build_config(
|
|
|
|
name = 'build_config',
|
2016-11-18 14:49:51 +00:00
|
|
|
package = 'im.status.ethereum',
|
2016-04-24 08:07:08 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
android_resource(
|
|
|
|
name = 'res',
|
|
|
|
res = 'src/main/res',
|
2016-11-18 14:49:51 +00:00
|
|
|
package = 'im.status.ethereum',
|
2016-04-24 08:07:08 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
android_binary(
|
|
|
|
name = 'app',
|
|
|
|
package_type = 'debug',
|
|
|
|
manifest = 'src/main/AndroidManifest.xml',
|
|
|
|
keystore = '//android/keystores:debug',
|
|
|
|
deps = [
|
|
|
|
':app-code',
|
|
|
|
],
|
|
|
|
)
|