-
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.
added nativeBarcodeScanning Option
- Loading branch information
Jonas
committed
Apr 12, 2017
1 parent
3ccb922
commit 7520efa
Showing
24 changed files
with
326 additions
and
147 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<RelativeLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto"> | ||
|
||
<at.nineyards.anyline.modules.document.DocumentScanView | ||
android:id="@+id/document_scan_view" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
app:api_2_enabled="false" | ||
/> | ||
|
||
<ImageView | ||
android:id="@+id/image_result" | ||
android:layout_width="100dp" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:layout_alignParentRight="true" | ||
android:adjustViewBounds="true"/> | ||
|
||
<ImageView | ||
android:id="@+id/full_image" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
android:layout_alignParentBottom="true" | ||
android:layout_alignParentLeft="true" | ||
android:adjustViewBounds="true"/> | ||
|
||
<FrameLayout | ||
android:id="@+id/error_message_layout" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentTop="true" | ||
android:visibility="gone" | ||
tools:visibility="visible" | ||
> | ||
|
||
<TextView | ||
android:id="@+id/error_message" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:padding="16dp" | ||
android:textColor="@android:color/primary_text_dark" | ||
android:gravity="center" | ||
android:layout_margin="24dp" | ||
android:layout_gravity="center" | ||
android:background="@android:color/background_dark" | ||
tools:text="Error: image to dark! but I am very very very long and you can not read me" /> | ||
|
||
</FrameLayout> | ||
</RelativeLayout> |
33 changes: 33 additions & 0 deletions
33
android/src/main/res/values/anyline_sdk_plugin_strings.xml
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,33 @@ | ||
<resources> | ||
<string name="error_unkown_scan_mode">Unkown scan mode: </string> | ||
<string name="error_invalid_json_data">Config json is invalid.</string> | ||
<string name="error_invalid_segment_config">Semgent config not valid. Must have equal amount of titles and modes.</string> | ||
<string name="error_accessing_camera">Error while accessing camera.</string> | ||
<string name="error_licence_invalid">Error: Anyline license invalid.</string> | ||
<string name="error_occured">An error occured.</string> | ||
|
||
<string name="document_advanced_outline_detection">Advanced Outline Detection</string> | ||
<string name="document_fast_outline_detection">Fast Outline Detection</string> | ||
<string name="document_error_not_sharp">Document is not sharp. Please hold the camera steadily and ensure the document is in focus</string> | ||
<string name="document_error_skew_too_high">Document is skewed. Place the camera directly above the document</string> | ||
<string name="document_error_outline_not_found">Could not detect document outline</string> | ||
|
||
<string name="document_error_glare_detected">Please remove the glare</string> | ||
<string name="document_error_too_dark">The image is too dark. Please ensure there is enough light</string> | ||
<string name="document_error_unknown">Unknown Failure</string> | ||
<string name="document_picture_error">Error scanning full document:\n</string> | ||
<string name="document_preview_success">Scanning full document. Please hold still</string> | ||
<string name="document_picture_success">Document scanned successfully</string> | ||
<string name="document_using_fast_mode">Switched to fast detection mode</string> | ||
<string name="document_using_advanced_mode">Switched to advanced detection mode</string> | ||
<string name="document_processing_picture_header">Processing</string> | ||
<string name="document_processing_picture">Processing the Picture. Please wait</string> | ||
<string name="document_error_shake">Shake detected</string> | ||
<string name="document_error_closer">Come closer</string> | ||
<string name="document_error_format">Unrecognised format</string> | ||
<string name="document_image_saved_to">Image saved to</string> | ||
|
||
<string name="document_processing">Processing</string> | ||
<string name="document_processing_picture_please_wait">Processing the picture. Please wait.</string> | ||
|
||
</resources> |
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="scrabble_green">#327466</color> | ||
<color name="anyline_blue_darker">#AA007ACC</color> | ||
<color name="anyline_red">#AAE53F16</color> | ||
</resources> |
10 changes: 10 additions & 0 deletions
10
android/src/main/res/values/com_crashlytics_export_strings.xml
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,10 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | ||
<resources xmlns:tools="http://schemas.android.com/tools"> | ||
<!-- | ||
This file is automatically generated by Crashlytics to uniquely | ||
identify individual builds of your Android application. | ||
Do NOT modify, delete, or commit to source control! | ||
--> | ||
<string tools:ignore="UnusedResources,TypographyDashes" name="com.crashlytics.android.build_id" translatable="false">2ca91258-5574-41ce-8686-74008a61f765</string> | ||
</resources> |
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,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<integer name="error_message_delay">2000</integer> | ||
</resources> |
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,32 +1,26 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.anyline-ocr-react-native-module" | ||
android:versionCode="1" | ||
android:versionName="1.0"> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> | ||
|
||
<uses-sdk | ||
android:minSdkVersion="16" | ||
android:targetSdkVersion="22" /> | ||
|
||
package="com.anyline" | ||
android:versionCode="1" | ||
android:versionName="1.0"> | ||
<uses-permission android:name="android.permission.VIBRATE" /> | ||
<application | ||
android:name=".MainApplication" | ||
android:allowBackup="true" | ||
android:label="@string/app_name" | ||
android:icon="@mipmap/ic_launcher" | ||
android:theme="@style/AppTheme"> | ||
<activity | ||
android:name=".MainActivity" | ||
android:label="@string/app_name" | ||
android:configChanges="keyboard|keyboardHidden|orientation|screenSize" | ||
android:windowSoftInputMode="adjustResize"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" /> | ||
android:name=".MainApplication" | ||
android:allowBackup="true" | ||
android:label="@string/app_name" | ||
android:icon="@mipmap/ic_launcher" | ||
android:theme="@style/AppTheme" | ||
android:screenOrientation="portrait"> | ||
<activity | ||
android:name=".MainActivity" | ||
android:label="@string/app_name" | ||
android:configChanges="keyboard|keyboardHidden|orientation|screenSize" | ||
android:windowSoftInputMode="adjustResize"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN"/> | ||
<category android:name="android.intent.category.LAUNCHER"/> | ||
</intent-filter> | ||
</activity> | ||
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity"/> | ||
</application> | ||
|
||
</manifest> |
Oops, something went wrong.