Skip to content

Commit

Permalink
Fix automated testing
Browse files Browse the repository at this point in the history
  • Loading branch information
danhunsaker committed Dec 6, 2021
1 parent 52ced2f commit cbaa381
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 31 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,5 @@ jobs:

steps:
- uses: actions/checkout@v1
- run: sudo chown -R cirrus:cirrus ./ /github/home/
- name: Flutter pub get
run: flutter packages get
- name: Flutter analyze --suppress-analytics
run: flutter analyze --suppress-analytics
- run: flutter pub get
- run: flutter analyze --suppress-analytics
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ Or in text format add the key:
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.

```
pod 'GoogleMLKit/BarcodeScanning'
pod 'GoogleMLKit/FaceDetection'
pod 'GoogleMLKit/ImageLabeling'
pod 'GoogleMLKit/TextRecognition'
pod 'GoogleMLKit/BarcodeScanning' '~> 2.2.0'
pod 'GoogleMLKit/FaceDetection' '~> 2.2.0'
pod 'GoogleMLKit/ImageLabeling' '~> 2.2.0'
pod 'GoogleMLKit/TextRecognition' '~> 2.2.0'
```

### Android
Expand Down
17 changes: 4 additions & 13 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,8 @@
package="fr.rushioconsulting.flutter_camera_ml_vision_example"
xmlns:tools="http://schemas.android.com/tools">

<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
<application
android:name="io.flutter.app.FlutterApplication"
android:name="${applicationName}"
android:label="flutter_camera_ml_vision_example"
android:icon="@mipmap/ic_launcher">
<activity
Expand All @@ -18,18 +13,14 @@
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- This keeps the window background of the activity showing
until Flutter renders its first frame. It can be removed if
there is no splash screen (such as the default splash screen
defined in @style/LaunchTheme). -->
<meta-data
android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
android:value="true" />
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<meta-data
android:name="flutterEmbedding"
android:value="2" />
<meta-data
android:name="com.google.mlkit.vision.DEPENDENCIES"
android:value="barcode" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
package fr.rushioconsulting.flutter_camera_ml_vision_example;

import android.os.Bundle;
import io.flutter.app.FlutterActivity;
import io.flutter.plugins.GeneratedPluginRegistrant;
import io.flutter.embedding.android.FlutterActivity;

public class MainActivity extends FlutterActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
GeneratedPluginRegistrant.registerWith(this);
}
}
1 change: 0 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'dart:developer';
import 'dart:ui';

import 'package:google_ml_kit/google_ml_kit.dart';
Expand Down

0 comments on commit cbaa381

Please sign in to comment.