* switch to firebase mlkit for text recognition * migrate android to MLKit migrate Text detection android to MLKit update gradle of example app Update build.gradle separate gms vision facedetector to general flavor migrate faceDetector to mlkit and fix incorrect bounds due to padding migrate barCode detector to mlkit update android instructions in readme safe face implementation move gms to generalImplementation * add mlkit example setup android of mlkit example setup ios of mlkit example fix typo in readme update example project readme * amend mlkit migration to include raw data add barcode detection in basic and mlkit examples * fix duplicate bridgeDidBackground method BREAKING CHANGE: We migrated to MLKit instead of Google Mobile Vision
56 lines
1.3 KiB
Python
56 lines
1.3 KiB
Python
# 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.mlkit",
|
|
)
|
|
|
|
android_resource(
|
|
name = "res",
|
|
package = "com.mlkit",
|
|
res = "src/main/res",
|
|
)
|
|
|
|
android_binary(
|
|
name = "app",
|
|
keystore = "//android/keystores:debug",
|
|
manifest = "src/main/AndroidManifest.xml",
|
|
package_type = "debug",
|
|
deps = [
|
|
":app-code",
|
|
],
|
|
)
|