Skip to content

Commit

Permalink
fix optional orientation on android and upgrade typescript and angula…
Browse files Browse the repository at this point in the history
…r versions
  • Loading branch information
Vennela Kodali committed Aug 21, 2020
1 parent 823db15 commit 67e362f
Show file tree
Hide file tree
Showing 8 changed files with 15,143 additions and 12,775 deletions.
4 changes: 4 additions & 0 deletions android/src/main/java/com/bendyworks/capML/CapML.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ public void detectText(PluginCall call) throws IOException {
return;
}
String orientation = call.getString("orientation");
if (orientation == null) {
orientation = "UP";
}

int rotation = this.orientationToRotation(orientation);

Bitmap bitmap = MediaStore.Images.Media.getBitmap(this.getContext().getContentResolver(), Uri.parse(filename));
Expand Down
4 changes: 2 additions & 2 deletions examples/text-detection/ImageReader/ios/App/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ install! 'cocoapods', :disable_input_output_paths => true

def capacitor_pods
# Automatic Capacitor Pod dependencies, do not delete
pod 'Capacitor', :path => '../../../../../node_modules/@capacitor/ios'
pod 'CapacitorCordova', :path => '../../../../../node_modules/@capacitor/ios'
pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
pod 'CapMl', :path => '../../../../..'
# Do not delete
end
Expand Down
Loading

0 comments on commit 67e362f

Please sign in to comment.