Skip to content

Commit

Permalink
fix(android): JS Engine Reliability Fixes (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
theproducer authored Apr 9, 2024
1 parent d6511b2 commit 18f72b6
Show file tree
Hide file tree
Showing 244 changed files with 19,652 additions and 16,218 deletions.
8 changes: 8 additions & 0 deletions .changeset/rotten-items-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"android-js-engine": minor
"@capacitor/background-runner": minor
---

More reliability fixes for the JS Engine used in the Background Runner:
- (Android) Fixes in runtime during background execution
- (Android) Improvements in native lib handling for testing
2 changes: 1 addition & 1 deletion .github/workflows/reusable_unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
working-directory: ./packages/android-engine
working-directory: ./packages/android-js-engine
emulator-options: -no-window -no-audio -no-boot-anim -accel on -no-snapshot-save
profile: pixel_6
script: ./gradlew connectedCheck
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ Request permission to display local notifications.
### dispatchEvent(...)

```typescript
dispatchEvent(options: DispatchEventOptions) => any
dispatchEvent<T = void>(options: DispatchEventOptions) => any
```

Dispatches an event to the configured runner.
Expand Down
1 change: 1 addition & 0 deletions apps/example-app/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ android {
repositories {
flatDir{
dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
dirs '../../node_modules/@capacitor/background-runner/android/src/main/libs', 'libs'
}
}

Expand Down
2 changes: 1 addition & 1 deletion apps/example-app/android/variables.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ext {
minSdkVersion = 22
compileSdkVersion = 33
compileSdkVersion = 34
targetSdkVersion = 33
androidxActivityVersion = '1.7.0'
androidxAppCompatVersion = '1.6.1'
Expand Down
2 changes: 1 addition & 1 deletion apps/example-app/ios/App/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 023978344a0d202e5020371cd007ff62c16044ac

COCOAPODS: 1.11.3
COCOAPODS: 1.13.0
4 changes: 0 additions & 4 deletions packages/android-engine/.editorconfig

This file was deleted.

1 change: 0 additions & 1 deletion packages/android-engine/.idea/.name

This file was deleted.

336 changes: 0 additions & 336 deletions packages/android-engine/.idea/androidTestResultsUserPreferences.xml

This file was deleted.

Loading

0 comments on commit 18f72b6

Please sign in to comment.