diff options
| author | Husam Salhab <47015061+hsalhab@users.noreply.github.com> | 2020-06-24 20:01:35 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-24 20:01:35 -0400 |
| commit | c301252081ef31fe24160713d801722fc73e703b (patch) | |
| tree | 86f4d47d56a3945ab8f763e132b81aaaa5b2e2f8 /android/app/_BUCK | |
| parent | 4efe926122873adf8a598bb18b3eaf5d5a077cb4 (diff) | |
| parent | d9e0cde89b1e2c2483f91c656d6000f3b806181d (diff) | |
Merge pull request #3 from leonyjiang/master
[TMA-55] - Add react-native/typescript template
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 00000000..7047bb61 --- /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.frontend", +) + +android_resource( + name = "res", + package = "com.frontend", + res = "src/main/res", +) + +android_binary( + name = "app", + keystore = "//android/keystores:debug", + manifest = "src/main/AndroidManifest.xml", + package_type = "debug", + deps = [ + ":app-code", + ], +) |
