-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jonas
committed
Nov 14, 2017
1 parent
3bd24e9
commit bdf316d
Showing
34 changed files
with
1,288 additions
and
671 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# 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 | ||
# | ||
|
||
lib_deps = [] | ||
|
||
for jarfile in glob(['libs/*.jar']): | ||
name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')] | ||
lib_deps.append(':' + name) | ||
prebuilt_jar( | ||
name = name, | ||
binary_jar = jarfile, | ||
) | ||
|
||
for aarfile in glob(['libs/*.aar']): | ||
name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')] | ||
lib_deps.append(':' + name) | ||
android_prebuilt_aar( | ||
name = name, | ||
aar = aarfile, | ||
) | ||
|
||
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.anyline", | ||
) | ||
|
||
android_resource( | ||
name = "res", | ||
package = "com.anyline", | ||
res = "src/main/res", | ||
) | ||
|
||
android_binary( | ||
name = "app", | ||
keystore = "//android/keystores:debug", | ||
manifest = "src/main/AndroidManifest.xml", | ||
package_type = "debug", | ||
deps = [ | ||
":app-code", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file modified
0
example/Anyline/android/app/src/main/assets/fonts/EvilIcons.ttf
100755 → 100644
Empty file.
Empty file modified
0
example/Anyline/android/app/src/main/assets/fonts/FontAwesome.ttf
100755 → 100644
Empty file.
Empty file modified
0
example/Anyline/android/app/src/main/assets/fonts/Foundation.ttf
100755 → 100644
Empty file.
Empty file modified
0
example/Anyline/android/app/src/main/assets/fonts/Ionicons.ttf
100755 → 100644
Empty file.
Empty file modified
0
example/Anyline/android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf
100755 → 100644
Empty file.
Empty file modified
0
example/Anyline/android/app/src/main/assets/fonts/MaterialIcons.ttf
100755 → 100644
Empty file.
Binary file modified
BIN
+84 Bytes
(100%)
example/Anyline/android/app/src/main/assets/fonts/Octicons.ttf
100755 → 100644
Binary file not shown.
Empty file modified
0
example/Anyline/android/app/src/main/assets/fonts/SimpleLineIcons.ttf
100755 → 100644
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,57 @@ | ||
export default { | ||
license:'eyAiYW5kcm9pZElkZW50aWZpZXIiOiBbICJjb20uYW55bGluZS5leGFtcGxlLnJl\n' + | ||
'YWN0bmF0aXZlIiBdLCAiZGVidWdSZXBvcnRpbmciOiAib24iLCAiaW9zSWRlbnRp\n' + | ||
'ZmllciI6IFsgImNvbS5hbnlsaW5lLmV4YW1wbGUucmVhY3RuYXRpdmUiIF0sICJs\n' + | ||
'aWNlbnNlS2V5VmVyc2lvbiI6IDIsICJtYWpvclZlcnNpb24iOiAiMyIsICJwaW5n\n' + | ||
'UmVwb3J0aW5nIjogdHJ1ZSwgInBsYXRmb3JtIjogWyAiaU9TIiwgIkFuZHJvaWQi\n' + | ||
'IF0sICJzY29wZSI6IFsgIkFMTCIgXSwgInNob3dQb3BVcEFmdGVyRXhwaXJ5Ijog\n' + | ||
'ZmFsc2UsICJzaG93V2F0ZXJtYXJrIjogdHJ1ZSwgInRvbGVyYW5jZURheXMiOiA5\n' + | ||
'MCwgInZhbGlkIjogIjIwMjAtMTItMzEiIH0KUlliRzFBbFgwempXZTVLYkdtK000\n' + | ||
'SXFXME5jWUdTZWNBU0t6M3k0QnQ3VGFjMWgrVEpveHlIVXFTb1JxWFZKNgpXRlhH\n' + | ||
'N2kvVjFqNjVTTEgyS0V4NUpoRlZKT0Y1UDhJR1VLak9CY1ozR2o5WHRTLzdub3Ni\n' + | ||
'ZHoxTTlqZWlJRWJYCjZ1ZXFyVmtyNGRpRVJsOWNDQ01kOWRvTG80dnJiMGpIbzZ0\n' + | ||
'bk12d2VrWFdUaUFnSlNjNXB5MGlOc2F6MjRKZFYKa3dEWnY2dG9Oa1NIdjhRWTVj\n' + | ||
'U3laSWdNSHFsRTZ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WTVj\n' + | ||
'U3laSWdNSHFsRTZBUkVxcG5oNlA5THh3aWF1Sm5Sd2o4OWFWVCt4ZkoyaFdLbgpU\n' + | ||
'NE9tUzVraWdNUVZLaW8vaWlJS2tIVEVUdUxjYWJEWWtacExZdVR2YnU1S1hIc0R6\n' + | ||
'b1NxUUJTL3ZFS3VYUHhhCjNnanZnS285M3lrSjJKQjVBZjZiSkE9PQo=', | ||
options: { | ||
"captureResolution": "1080p", | ||
"cutout": { | ||
"style": "rect", | ||
"maxWidthPercent": "80%", | ||
"maxHeightPercent": "80%", | ||
"alignment": "center", | ||
"width": 540, | ||
"ratioFromSize": { | ||
"width": 4, | ||
"height": 1 | ||
}, | ||
"strokeWidth": 2, | ||
"cornerRadius": 10, | ||
"strokeColor": "FFFFFF", | ||
"outerColor": "000000", | ||
"outerAlpha": 0.3 | ||
}, | ||
"flash": { | ||
"mode": "manual", | ||
"alignment": "bottom_right" | ||
}, | ||
"beepOnResult": true, | ||
"vibrateOnResult": true, | ||
"blinkAnimationOnResult": true, | ||
"cancelOnResult": true, | ||
"visualFeedback": { | ||
"style": "CONTOUR_RECT", | ||
}, | ||
}, | ||
|
||
ocr: { | ||
"captureResolution": "1080", | ||
"cutout": { | ||
"style": "rect", | ||
"maxWidthPercent": "80%", | ||
"maxHeightPercent": "80%", | ||
"alignment": "center", | ||
"width": 540, | ||
"ratioFromSize": { | ||
"width": 4, | ||
"height": 1 | ||
}, | ||
"strokeWidth": 2, | ||
"cornerRadius": 10, | ||
"strokeColor": "FFFFFF", | ||
"outerColor": "000000", | ||
"outerAlpha": 0.3 | ||
}, | ||
"flash": { | ||
"mode": "manual", | ||
"alignment": "bottom_right" | ||
}, | ||
"beepOnResult": true, | ||
"vibrateOnResult": true, | ||
"blinkAnimationOnResult": true, | ||
"cancelOnResult": true, | ||
"visualFeedback": { | ||
"style": "contour_point", | ||
"strokeColor": "0099FF", | ||
"strokeWidth": 3 | ||
} | ||
}, | ||
ocr: { | ||
"scanMode": "AUTO", | ||
"tesseractLanguages": ["anyline_capitals"], | ||
"traineddataFiles": ["trainedData/anyline_capitals.traineddata"], | ||
"charWhitelist": "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", | ||
"validationRegex": "[A-Z0-9]{8}$", | ||
"isBrightTextOnDark": true | ||
"minConfidence": 85 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.