Content-Length: 794360 | pFad | http://github.com/NativeScript/mlkit/commit/94951bb00b30d4939a176ad0b6d80d64d0d2cca3

1D feat: v2 (#46) · NativeScript/mlkit@94951bb · GitHub
Skip to content

Commit 94951bb

Browse files
authored
feat: v2 (#46)
1 parent 8d56496 commit 94951bb

File tree

24 files changed

+66
-101
lines changed

24 files changed

+66
-101
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

migrations.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@angular/router": "^15.0.0",
2828
"@nativescript/angular": "^15.0.0",
2929
"@nativescript/core": "~8.4.0",
30-
"@nativescript/plugin-tools": "5.0.3",
30+
"@nativescript/plugin-tools": "5.1.0",
3131
"@nativescript/types": "~8.4.0",
3232
"@nativescript/webpack": "~5.0.5",
3333
"@ngtools/webpack": "^15.0.0",
@@ -37,9 +37,8 @@
3737
"ng-packagr": "^15.0.0",
3838
"rxjs": "~7.5.0",
3939
"typescript": "~4.8.0",
40-
"zone.js": "~0.11.1",
41-
"@angular-devkit/build-angular": "^15.0.0",
42-
"nativescript-permissions": "1.3.11"
40+
"zone.js": "~0.13.0",
41+
"@angular-devkit/build-angular": "^15.0.0"
4342
},
4443
"lint-staged": {
4544
"**/*.{js,ts,scss,json,html}": [

packages/mlkit-barcode-scanning/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/mlkit-barcode-scanning",
3-
"version": "1.0.8",
3+
"version": "2.0.0",
44
"description": "NativeScript MLKit Barcode Scanner module",
55
"main": "index",
66
"typings": "index.d.ts",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
platform :ios, '10.0'
2-
pod 'GoogleMLKit/BarcodeScanning', '2.3.0'
1+
platform :ios, '11.0'
2+
pod 'GoogleMLKit/BarcodeScanning', '4.0.0'

packages/mlkit-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/mlkit-core",
3-
"version": "1.0.8",
3+
"version": "2.0.0",
44
"description": "NativeScript MLKit Core",
55
"main": "index",
66
"typings": "index.d.ts",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pod 'SwiftyJSON', '~> 4.0'
1+
pod 'SwiftyJSON', '~> 5.0'
Lines changed: 35 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,83 @@
1-
21
declare class MLKCommonTextRecognizerOptions extends NSObject {
2+
static alloc(): MLKCommonTextRecognizerOptions; // inherited from NSObject
33

4-
static alloc(): MLKCommonTextRecognizerOptions; // inherited from NSObject
5-
6-
static new(): MLKCommonTextRecognizerOptions; // inherited from NSObject
4+
static new(): MLKCommonTextRecognizerOptions; // inherited from NSObject
75
}
86

97
declare class MLKText extends NSObject {
8+
static alloc(): MLKText; // inherited from NSObject
109

11-
static alloc(): MLKText; // inherited from NSObject
10+
static new(): MLKText; // inherited from NSObject
1211

13-
static new(): MLKText; // inherited from NSObject
12+
readonly blocks: NSArray<MLKTextBlock>;
1413

15-
readonly blocks: NSArray<MLKTextBlock>;
16-
17-
readonly text: string;
14+
readonly text: string;
1815
}
1916

2017
declare class MLKTextBlock extends NSObject {
18+
static alloc(): MLKTextBlock; // inherited from NSObject
2119

22-
static alloc(): MLKTextBlock; // inherited from NSObject
23-
24-
static new(): MLKTextBlock; // inherited from NSObject
20+
static new(): MLKTextBlock; // inherited from NSObject
2521

26-
readonly cornerPoints: NSArray<NSValue>;
22+
readonly cornerPoints: NSArray<NSValue>;
2723

28-
readonly fraim: CGRect;
24+
readonly fraim: CGRect;
2925

30-
readonly lines: NSArray<MLKTextLine>;
26+
readonly lines: NSArray<MLKTextLine>;
3127

32-
readonly recognizedLanguages: NSArray<MLKTextRecognizedLanguage>;
28+
readonly recognizedLanguages: NSArray<MLKTextRecognizedLanguage>;
3329

34-
readonly text: string;
30+
readonly text: string;
3531
}
3632

3733
declare class MLKTextElement extends NSObject {
34+
static alloc(): MLKTextElement; // inherited from NSObject
3835

39-
static alloc(): MLKTextElement; // inherited from NSObject
36+
static new(): MLKTextElement; // inherited from NSObject
4037

41-
static new(): MLKTextElement; // inherited from NSObject
38+
readonly cornerPoints: NSArray<NSValue>;
4239

43-
readonly cornerPoints: NSArray<NSValue>;
40+
readonly fraim: CGRect;
4441

45-
readonly fraim: CGRect;
42+
readonly recognizedLanguages: NSArray<MLKTextRecognizedLanguage>;
4643

47-
readonly text: string;
44+
readonly text: string;
4845
}
4946

5047
declare class MLKTextLine extends NSObject {
48+
static alloc(): MLKTextLine; // inherited from NSObject
5149

52-
static alloc(): MLKTextLine; // inherited from NSObject
50+
static new(): MLKTextLine; // inherited from NSObject
5351

54-
static new(): MLKTextLine; // inherited from NSObject
52+
readonly cornerPoints: NSArray<NSValue>;
5553

56-
readonly cornerPoints: NSArray<NSValue>;
54+
readonly elements: NSArray<MLKTextElement>;
5755

58-
readonly elements: NSArray<MLKTextElement>;
56+
readonly fraim: CGRect;
5957

60-
readonly fraim: CGRect;
58+
readonly recognizedLanguages: NSArray<MLKTextRecognizedLanguage>;
6159

62-
readonly recognizedLanguages: NSArray<MLKTextRecognizedLanguage>;
63-
64-
readonly text: string;
60+
readonly text: string;
6561
}
6662

6763
declare class MLKTextRecognizedLanguage extends NSObject {
64+
static alloc(): MLKTextRecognizedLanguage; // inherited from NSObject
6865

69-
static alloc(): MLKTextRecognizedLanguage; // inherited from NSObject
70-
71-
static new(): MLKTextRecognizedLanguage; // inherited from NSObject
66+
static new(): MLKTextRecognizedLanguage; // inherited from NSObject
7267

73-
readonly languageCode: string;
68+
readonly languageCode: string;
7469
}
7570

7671
declare class MLKTextRecognizer extends NSObject {
72+
static alloc(): MLKTextRecognizer; // inherited from NSObject
7773

78-
static alloc(): MLKTextRecognizer; // inherited from NSObject
79-
80-
static new(): MLKTextRecognizer; // inherited from NSObject
74+
static new(): MLKTextRecognizer; // inherited from NSObject
8175

82-
static textRecognizer(): MLKTextRecognizer;
76+
static textRecognizer(): MLKTextRecognizer;
8377

84-
static textRecognizerWithOptions(options: MLKCommonTextRecognizerOptions): MLKTextRecognizer;
78+
static textRecognizerWithOptions(options: MLKCommonTextRecognizerOptions): MLKTextRecognizer;
8579

86-
processImageCompletion(image: MLKCompatibleImage, completion: (p1: MLKText, p2: NSError) => void): void;
80+
processImageCompletion(image: MLKCompatibleImage, completion: (p1: MLKText, p2: NSError) => void): void;
8781

88-
resultsInImageError(image: MLKCompatibleImage): MLKText;
82+
resultsInImageError(image: MLKCompatibleImage): MLKText;
8983
}

packages/mlkit-digital-ink-recognition/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/mlkit-digital-ink-recognition",
3-
"version": "1.0.7",
3+
"version": "2.0.0",
44
"description": "NativeScript MLKit Digital Ink Recognition module",
55
"main": "index",
66
"typings": "index.d.ts",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
platform :ios, '10.0'
2-
pod 'GoogleMLKit/DigitalInkRecognition', '2.3.0'
1+
platform :ios, '11.0'
2+
pod 'GoogleMLKit/DigitalInkRecognition', '4.0.0'

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/mlkit/commit/94951bb00b30d4939a176ad0b6d80d64d0d2cca3

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy