|
87 | 87 | sudo apt-get install -y clang-format
|
88 | 88 | - name: Install dependencies
|
89 | 89 | run: dart pub get
|
| 90 | + - name: build in_app_java APK |
| 91 | + run: flutter build apk --target-platform=android-arm64 |
| 92 | + working-directory: pkg/jnigen/example/in_app_java |
| 93 | + - name: build notification_plugin example APK |
| 94 | + run: flutter build apk --target-platform=android-arm64 |
| 95 | + working-directory: pkg/jnigen/example/notification_plugin/example |
90 | 96 | - name: Run VM tests
|
91 | 97 | run: dart test --platform vm
|
92 | 98 | - name: Install coverage
|
@@ -245,6 +251,12 @@ jobs:
|
245 | 251 | - run: Add-Content $env:GITHUB_PATH "$env:JAVA_HOME\bin\server"
|
246 | 252 | - run: dart pub get
|
247 | 253 | - run: dart run jnigen:setup
|
| 254 | + - name: build in_app_java APK |
| 255 | + run: flutter build apk --target-platform=android-arm64 |
| 256 | + working-directory: pkg/jnigen/example/in_app_java |
| 257 | + - name: build notification_plugin example APK |
| 258 | + run: flutter build apk --target-platform=android-arm64 |
| 259 | + working-directory: pkg/jnigen/example/notification_plugin/example |
248 | 260 | - run: dart test
|
249 | 261 |
|
250 | 262 | test_jni_macos_minimal:
|
@@ -359,63 +371,6 @@ jobs:
|
359 | 371 | - run: flutter pub get
|
360 | 372 | - run: flutter build apk
|
361 | 373 |
|
362 |
| - build_notification_plugin_example: |
363 |
| - runs-on: ubuntu-latest |
364 |
| - defaults: |
365 |
| - run: |
366 |
| - working-directory: pkg/jnigen/example/notification_plugin |
367 |
| - steps: |
368 |
| - - uses: actions/checkout@v3 |
369 |
| - - uses: actions/setup-java@v2 |
370 |
| - with: |
371 |
| - distribution: 'zulu' |
372 |
| - java-version: '11' |
373 |
| - - uses: subosito/flutter-action@v2 |
374 |
| - with: |
375 |
| - channel: 'stable' |
376 |
| - cache: true |
377 |
| - cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:' |
378 |
| - - run: flutter pub get |
379 |
| - - run: flutter analyze |
380 |
| - - run: flutter build apk |
381 |
| - working-directory: pkg/jnigen/example/notification_plugin/example |
382 |
| - - name: re-generate bindings |
383 |
| - run: flutter pub run jnigen -Doutput.dart.path=_temp.dart -Doutput.c.path=_c/ --config jnigen.yaml |
384 |
| - - name: compare generated dart bindings |
385 |
| - run: diff lib/notifications.dart _temp.dart |
386 |
| - - name: compare generated C bindings |
387 |
| - run: diff -r src/ _c |
388 |
| - |
389 |
| - build_in_app_java_example: |
390 |
| - runs-on: ubuntu-latest |
391 |
| - defaults: |
392 |
| - run: |
393 |
| - working-directory: pkg/jnigen/example/in_app_java |
394 |
| - steps: |
395 |
| - - uses: actions/checkout@v3 |
396 |
| - - uses: actions/setup-java@v2 |
397 |
| - with: |
398 |
| - distribution: 'zulu' |
399 |
| - java-version: '11' |
400 |
| - - uses: subosito/flutter-action@v2 |
401 |
| - with: |
402 |
| - channel: 'stable' |
403 |
| - cache: true |
404 |
| - cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:' |
405 |
| - - name: install clang tools |
406 |
| - run: | |
407 |
| - sudo apt-get update -y |
408 |
| - sudo apt-get install -y clang-format |
409 |
| - - run: flutter pub get |
410 |
| - - run: flutter analyze |
411 |
| - - run: flutter build apk |
412 |
| - - name: re-generate bindings |
413 |
| - run: flutter pub run jnigen -Doutput.dart.path=_temp.dart -Doutput.c.path=_c/ --config jnigen.yaml |
414 |
| - - name: compare generated dart bindings |
415 |
| - run: diff lib/android_utils.dart _temp.dart |
416 |
| - - name: compare generated C bindings |
417 |
| - run: diff -r src/android_utils _c |
418 |
| - |
419 | 374 | run_pdfbox_example_linux:
|
420 | 375 | runs-on: ubuntu-latest
|
421 | 376 | defaults:
|
|
0 commit comments