1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-21 09:38:01 +02:00
joplin/packages/app-mobile/android/app/BUCK

56 lines
1.3 KiB
Python
Raw Permalink Normal View History

2017-05-06 16:37:28 +02:00
# 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`
# - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
# - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
# - `buck install -r android/app` - compile, install and run application
#
2019-06-14 08:12:24 +02:00
load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")
2017-05-06 16:37:28 +02:00
lib_deps = []
2019-06-14 08:12:24 +02:00
create_aar_targets(glob(["libs/*.aar"]))
2017-05-06 16:37:28 +02:00
2019-06-14 08:12:24 +02:00
create_jar_targets(glob(["libs/*.jar"]))
2017-05-06 16:37:28 +02: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",
2017-07-08 00:25:03 +02:00
package = "net.cozic.joplin",
2017-05-06 16:37:28 +02:00
)
android_resource(
name = "res",
2017-07-08 00:25:03 +02:00
package = "net.cozic.joplin",
2017-05-06 16:37:28 +02:00
res = "src/main/res",
)
android_binary(
name = "app",
keystore = "//android/keystores:debug",
manifest = "src/main/AndroidManifest.xml",
package_type = "debug",
deps = [
":app-code",
],
)