diff --git a/android/src/main/java/com/stripeterminalreactnative/StripeTerminalReactNativeModule.kt b/android/src/main/java/com/stripeterminalreactnative/StripeTerminalReactNativeModule.kt index ce8204a4..8025cf9b 100644 --- a/android/src/main/java/com/stripeterminalreactnative/StripeTerminalReactNativeModule.kt +++ b/android/src/main/java/com/stripeterminalreactnative/StripeTerminalReactNativeModule.kt @@ -93,7 +93,7 @@ class StripeTerminalReactNativeModule(reactContext: ReactApplicationContext) : @ReactMethod @Suppress("unused") - fun initialize(params: ReadableMap, promise: Promise) { + fun initialize(params: ReadableMap, promise: Promise) = withExceptionResolver(promise) { UiThreadUtil.runOnUiThread { onCreate(context.applicationContext as Application) } val result = if (!Terminal.isInitialized()) { diff --git a/bitrise.yml b/bitrise.yml index 3bd53037..8e0c8bbd 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -97,7 +97,7 @@ workflows: - content: |- set -e # This is a terrible hack, as I haven't worked out how Bitrise's `pod install` step interacts with the rbenv set in this app. You definitely shouldn't copy this. - cd dev-app/ios && rbenv install 2.7.4 && bundle install && \ + cd dev-app/ios && asdf install ruby 2.7.4 && bundle install && \ gem install cocoapods -v 1.12.1 && pod install && cd - && \ echo "Checking for diffs in pod lockfile, if this fails please ensure all dependencies are up to date" && \ git diff --exit-code @@ -136,8 +136,8 @@ workflows: - complete_all meta: bitrise.io: - stack: osx-xcode-14.0.x-ventura - machine_type_id: g2.12core + stack: linux-docker-android-20.04 + machine_type_id: elite-xl example-build-ios: steps: - cocoapods-install@2: @@ -176,6 +176,7 @@ workflows: - script@1: inputs: - content: |- + asdf install nodejs 16.15.0 echo 'export PATH="$PATH:~/project/node_modules/.bin:~/project/dev-app/node_modules/.bin"' >> $BASH_ENV source $BASH_ENV brew update >/dev/null