Skip to content

Commit cbaa381

Browse files
committed
Fix automated testing
1 parent 52ced2f commit cbaa381

File tree

5 files changed

+11
-31
lines changed

5 files changed

+11
-31
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,5 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v1
17-
- run: sudo chown -R cirrus:cirrus ./ /github/home/
18-
- name: Flutter pub get
19-
run: flutter packages get
20-
- name: Flutter analyze --suppress-analytics
21-
run: flutter analyze --suppress-analytics
17+
- run: flutter pub get
18+
- run: flutter analyze --suppress-analytics

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ Or in text format add the key:
3838
If you're using one of the on-device APIs, include the corresponding ML Kit library model in your Podfile. Then run pod update in a terminal within the same directory as your Podfile.
3939

4040
```
41-
pod 'GoogleMLKit/BarcodeScanning'
42-
pod 'GoogleMLKit/FaceDetection'
43-
pod 'GoogleMLKit/ImageLabeling'
44-
pod 'GoogleMLKit/TextRecognition'
41+
pod 'GoogleMLKit/BarcodeScanning' '~> 2.2.0'
42+
pod 'GoogleMLKit/FaceDetection' '~> 2.2.0'
43+
pod 'GoogleMLKit/ImageLabeling' '~> 2.2.0'
44+
pod 'GoogleMLKit/TextRecognition' '~> 2.2.0'
4545
```
4646

4747
### Android

example/android/app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,8 @@
22
package="fr.rushioconsulting.flutter_camera_ml_vision_example"
33
xmlns:tools="http://schemas.android.com/tools">
44

5-
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
6-
calls FlutterMain.startInitialization(this); in its onCreate method.
7-
In most cases you can leave this as-is, but you if you want to provide
8-
additional functionality it is fine to subclass or reimplement
9-
FlutterApplication and put your custom class here. -->
105
<application
11-
android:name="io.flutter.app.FlutterApplication"
6+
android:name="${applicationName}"
127
android:label="flutter_camera_ml_vision_example"
138
android:icon="@mipmap/ic_launcher">
149
<activity
@@ -18,18 +13,14 @@
1813
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
1914
android:hardwareAccelerated="true"
2015
android:windowSoftInputMode="adjustResize">
21-
<!-- This keeps the window background of the activity showing
22-
until Flutter renders its first frame. It can be removed if
23-
there is no splash screen (such as the default splash screen
24-
defined in @style/LaunchTheme). -->
25-
<meta-data
26-
android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
27-
android:value="true" />
2816
<intent-filter>
2917
<action android:name="android.intent.action.MAIN"/>
3018
<category android:name="android.intent.category.LAUNCHER"/>
3119
</intent-filter>
3220
</activity>
21+
<meta-data
22+
android:name="flutterEmbedding"
23+
android:value="2" />
3324
<meta-data
3425
android:name="com.google.mlkit.vision.DEPENDENCIES"
3526
android:value="barcode" />
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
package fr.rushioconsulting.flutter_camera_ml_vision_example;
22

3-
import android.os.Bundle;
4-
import io.flutter.app.FlutterActivity;
5-
import io.flutter.plugins.GeneratedPluginRegistrant;
3+
import io.flutter.embedding.android.FlutterActivity;
64

75
public class MainActivity extends FlutterActivity {
8-
@Override
9-
protected void onCreate(Bundle savedInstanceState) {
10-
super.onCreate(savedInstanceState);
11-
GeneratedPluginRegistrant.registerWith(this);
12-
}
136
}

example/lib/main.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'dart:developer';
21
import 'dart:ui';
32

43
import 'package:google_ml_kit/google_ml_kit.dart';

0 commit comments

Comments
 (0)