diff options
| author | Maksymilian Jopek <maks@jopek.eu> | 2021-12-09 23:15:33 +0100 |
|---|---|---|
| committer | Maksymilian Jopek <maks@jopek.eu> | 2021-12-09 23:15:33 +0100 |
| commit | 67b6f338cfe4da739d39dc6764d11efa00105d81 (patch) | |
| tree | 441ff30a8fb783e400ea7c9e600c889e12392eca /android/app/BUCK | |
| download | remarques-67b6f338cfe4da739d39dc6764d11efa00105d81.tar.gz remarques-67b6f338cfe4da739d39dc6764d11efa00105d81.tar.zst remarques-67b6f338cfe4da739d39dc6764d11efa00105d81.zip | |
Created a new Expo app
Diffstat (limited to 'android/app/BUCK')
| -rw-r--r-- | android/app/BUCK | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/android/app/BUCK b/android/app/BUCK new file mode 100644 index 0000000..fb74a41 --- /dev/null +++ b/android/app/BUCK @@ -0,0 +1,55 @@ +# 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 +# + +load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") + +lib_deps = [] + +create_aar_targets(glob(["libs/*.aar"])) + +create_jar_targets(glob(["libs/*.jar"])) + +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", + package = "com.10lesson", +) + +android_resource( + name = "res", + package = "com.10lesson", + res = "src/main/res", +) + +android_binary( + name = "app", + keystore = "//android/keystores:debug", + manifest = "src/main/AndroidManifest.xml", + package_type = "debug", + deps = [ + ":app-code", + ], +) |
