-
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.
Merge pull request #122 from Anyline/release/34.0.1
Release/34.0.1
- Loading branch information
Showing
5 changed files
with
115 additions
and
39 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
21 changes: 21 additions & 0 deletions
21
plugin/android/src/main/java/com/anyline/reactnative/Offset.java
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,21 @@ | ||
package com.anyline.reactnative; | ||
|
||
import org.json.JSONObject; | ||
|
||
public class Offset { | ||
private int x; | ||
private int y; | ||
|
||
public Offset(JSONObject jsonObject) { | ||
this.x = jsonObject.optInt("x", 0); | ||
this.y = jsonObject.optInt("y", 0); | ||
} | ||
|
||
public int getX() { | ||
return x; | ||
} | ||
|
||
public int getY() { | ||
return y; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
plugin/android/src/main/java/com/anyline/reactnative/RotateButtonConfig.java
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,22 @@ | ||
package com.anyline.reactnative; | ||
|
||
import org.json.JSONException; | ||
import org.json.JSONObject; | ||
|
||
public class RotateButtonConfig { | ||
private Offset offset = null; | ||
|
||
public RotateButtonConfig(JSONObject jsonObject) throws JSONException { | ||
if (jsonObject.has("offset")) { | ||
offset = new Offset(jsonObject.getJSONObject("offset")); | ||
} | ||
} | ||
|
||
public Offset getOffset() { | ||
return offset; | ||
} | ||
|
||
public boolean hasOffset() { | ||
return offset != null; | ||
} | ||
} |
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,26 +1,26 @@ | ||
{ | ||
"_from": "anyline-ocr-react-native-module@^34.0.0", | ||
"_id": "[email protected].0", | ||
"_from": "anyline-ocr-react-native-module@^34.0.1", | ||
"_id": "[email protected].1", | ||
"_inBundle": false, | ||
"_integrity": "sha512-BGi9zNkSsoxXywDBIqzgBRvKUBniQOJHDKBrozZubKthZNRBAj8Ry5tW0Me0yLXt/fauME//hbC0wsenfPJZqw==", | ||
"_location": "/anyline-ocr-react-native-module", | ||
"_phantomChildren": {}, | ||
"_requested": { | ||
"type": "range", | ||
"registry": true, | ||
"raw": "anyline-ocr-react-native-module@^34.0.0", | ||
"raw": "anyline-ocr-react-native-module@^34.0.1", | ||
"name": "anyline-ocr-react-native-module", | ||
"escapedName": "anyline-ocr-react-native-module", | ||
"rawSpec": "^34.0.0", | ||
"rawSpec": "^34.0.1", | ||
"saveSpec": null, | ||
"fetchSpec": "^34.0.0" | ||
"fetchSpec": "^34.0.1" | ||
}, | ||
"_requiredBy": [ | ||
"/" | ||
], | ||
"_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-34.0.0.tgz", | ||
"_shasum": "62ab2a6c30e365851e5c6951546576a711d9183e", | ||
"_spec": "anyline-ocr-react-native-module@^34.0.0", | ||
"_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-34.0.1.tgz", | ||
"_shasum": "bacbcd260cc662244f59393ed81a6edba009b52c", | ||
"_spec": "anyline-ocr-react-native-module@^34.0.1", | ||
"_where": "/Users/amiransari/Projects/anyline-ocr-react-native-module1/example/RNExampleApp", | ||
"bugs": { | ||
"url": "https://github.com/Anyline/anyline-ocr-react-native-module/issues" | ||
|
@@ -47,5 +47,5 @@ | |
"type": "git", | ||
"url": "git+https://github.com/Anyline/anyline-ocr-react-native-module.git" | ||
}, | ||
"version": "34.0.0" | ||
"version": "34.0.1" | ||
} |