-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #445 from okta/update-expo
Update expo and remove expo-updates
- Loading branch information
Showing
69 changed files
with
2,390 additions
and
3,473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6821609e885d4b68f4066751949a9211f4196ab36df9d63f7a5f9037ca64e2d6 android-commandline.zip | ||
2d2d50857e4eb553af5a6dc3ad507a17adf43d115264b1afc116f95c92e5e258 android-commandline.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,87 +5,55 @@ orbs: | |
node: circleci/[email protected] | ||
|
||
executors: | ||
apple-ci-arm-medium: | ||
macos: | ||
xcode: 14.3.1 | ||
resource_class: macos.m1.medium.gen1 | ||
linux: | ||
machine: | ||
image: ubuntu-2404:current | ||
|
||
commands: | ||
install_android_sdk: | ||
description: "Install Android SDK in macOS machine" | ||
description: "Install Android SDK" | ||
steps: | ||
- run: brew install wget | ||
- run: wget --quiet --output-document="$HOME/android-commandline.zip" https://dl.google.com/android/repository/commandlinetools-mac-10406996_latest.zip | ||
- run: wget --quiet --output-document="$HOME/android-commandline.zip" https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip | ||
- run: (cp .circleci/android_sdk_checksum $HOME/checksum; cd $HOME; shasum -a256 -c checksum) | ||
- run: set +o pipefail | ||
- run: unzip "$HOME/android-commandline.zip" -d "$HOME" | ||
- run: mkdir "$HOME/android-sdk" | ||
- run: echo y | $HOME/cmdline-tools/bin/sdkmanager --sdk_root="$HOME/android-sdk" "platforms;android-33" > /dev/null | ||
- run: echo y | $HOME/cmdline-tools/bin/sdkmanager --sdk_root="$HOME/android-sdk" "platforms;android-35" > /dev/null | ||
- run: echo y | $HOME/cmdline-tools/bin/sdkmanager --sdk_root="$HOME/android-sdk" "platform-tools" > /dev/null | ||
- run: echo y | $HOME/cmdline-tools/bin/sdkmanager --sdk_root="$HOME/android-sdk" "build-tools;33.0.2" > /dev/null | ||
- run: echo y | $HOME/cmdline-tools/bin/sdkmanager --sdk_root="$HOME/android-sdk" "build-tools;35.0.0" > /dev/null | ||
- run: (yes || true) | $HOME/cmdline-tools/bin/sdkmanager --sdk_root="$HOME/android-sdk" --licenses | ||
- run: echo 'export ANDROID_HOME="$HOME/android-sdk"' >> "$BASH_ENV" | ||
- run: set -o pipefail | ||
|
||
jobs: | ||
setup: | ||
executor: apple-ci-arm-medium | ||
description: "Setup project for security scan" | ||
steps: | ||
- checkout | ||
- node/install: | ||
install-yarn: true | ||
node-version: 'latest' | ||
- install_android_sdk | ||
- run: brew install git-lfs | ||
- run: git lfs install | ||
- run: git lfs pull | ||
- run: yarn install --frozen-lockfile | ||
- run: yarn build | ||
- run: gem install cocoapods | ||
- run: (cd android; ./gradlew assembleDebug) # Avoid gradle build during snyk scan | ||
- run: (cd e2e; yarn install --frozen-lockfile) | ||
- run: (cd android; ./gradlew assembleDebug) | ||
- run: (cd dist; yarn install) | ||
- run: (cd dist/android; ./gradlew assembleDebug) | ||
- run: (cd e2e/android; echo "signInRedirectUri=com.example.redirect:/login" > okta.properties; ./gradlew assembleDebug) | ||
- run: (cd ios; pod install) | ||
- run: (cd e2e/ios; pod install) | ||
- persist_to_workspace: | ||
root: ~/project | ||
paths: | ||
- . | ||
- run: (cd e2e/android; echo "signInRedirectUri=com.example.redirect:/login" > okta.properties; ./gradlew assembleDebug) # Avoid gradle build during snyk scan | ||
|
||
jobs: | ||
snyk-scan: | ||
executor: apple-ci-arm-medium | ||
executor: linux | ||
steps: | ||
- attach_workspace: | ||
at: ~/project | ||
- run: | ||
name: Install rosetta # Needed for snyk to work on M1 machines. | ||
command: softwareupdate --install-rosetta --agree-to-license | ||
- install_android_sdk | ||
- setup | ||
- run: pip install setuptools | ||
- general-platform-helpers/step-load-dependencies | ||
- general-platform-helpers/step-run-snyk-monitor: | ||
run-on-non-main: true | ||
scan-all-projects: true | ||
skip-unresolved: false | ||
os: macos | ||
additional-arguments: --prune-repeated-subdependencies | ||
additional-arguments: --exclude=dist | ||
|
||
workflows: | ||
security-scan: | ||
jobs: | ||
- setup: | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
- snyk-scan: | ||
name: execute-snyk | ||
context: | ||
- static-analysis | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
requires: | ||
- setup | ||
branches: | ||
only: | ||
- master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ build/ | |
local.properties | ||
*.iml | ||
*.hprof | ||
.cxx/ | ||
|
||
# Bundle artifacts | ||
*.jsbundle | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 28 additions & 15 deletions
43
e2e/android/app/src/main/java/com/e2eoktareactnative/MainApplication.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,57 @@ | ||
package com.e2eoktareactnative | ||
|
||
import android.app.Application | ||
import android.content.res.Configuration | ||
|
||
import com.facebook.react.PackageList | ||
import com.facebook.react.ReactApplication | ||
import com.facebook.react.ReactNativeHost | ||
import com.facebook.react.ReactPackage | ||
import com.facebook.react.ReactHost | ||
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load | ||
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost | ||
import com.facebook.react.defaults.DefaultReactNativeHost | ||
import com.facebook.react.soloader.OpenSourceMergedSoMapping | ||
import com.facebook.soloader.SoLoader | ||
|
||
import expo.modules.ApplicationLifecycleDispatcher | ||
import expo.modules.ReactNativeHostWrapper | ||
|
||
class MainApplication : Application(), ReactApplication { | ||
override val reactNativeHost: ReactNativeHost = | ||
object : DefaultReactNativeHost(this) { | ||
override fun getPackages(): List<ReactPackage> = | ||
PackageList(this).packages.apply { | ||
// Packages that cannot be autolinked yet can be added manually here, for example: | ||
// add(MyReactNativePackage()) | ||
} | ||
|
||
override fun getJSMainModuleName(): String = "index" | ||
override val reactNativeHost: ReactNativeHost = ReactNativeHostWrapper( | ||
this, | ||
object : DefaultReactNativeHost(this) { | ||
override fun getPackages(): List<ReactPackage> { | ||
val packages = PackageList(this).packages | ||
// Packages that cannot be autolinked yet can be added manually here, for example: | ||
// packages.add(new MyReactNativePackage()); | ||
return packages | ||
} | ||
|
||
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG | ||
override fun getJSMainModuleName(): String = ".expo/.virtual-metro-entry" | ||
|
||
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED | ||
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED | ||
} | ||
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG | ||
|
||
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED | ||
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED | ||
} | ||
) | ||
|
||
override val reactHost: ReactHost | ||
get() = getDefaultReactHost(applicationContext, reactNativeHost) | ||
get() = ReactNativeHostWrapper.createReactHost(applicationContext, reactNativeHost) | ||
|
||
override fun onCreate() { | ||
super.onCreate() | ||
SoLoader.init(this, false) | ||
SoLoader.init(this, OpenSourceMergedSoMapping) | ||
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { | ||
// If you opted-in for the New Architecture, we load the native entry point for this app. | ||
load() | ||
} | ||
ApplicationLifecycleDispatcher.onApplicationCreate(this) | ||
} | ||
|
||
override fun onConfigurationChanged(newConfig: Configuration) { | ||
super.onConfigurationChanged(newConfig) | ||
ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig) | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.22 KB
e2e/android/app/src/main/res/drawable-night-hdpi/splashscreen_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.48 KB
e2e/android/app/src/main/res/drawable-night-mdpi/splashscreen_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.56 KB
e2e/android/app/src/main/res/drawable-night-xhdpi/splashscreen_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.1 KB
e2e/android/app/src/main/res/drawable-night-xxhdpi/splashscreen_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.8 KB
e2e/android/app/src/main/res/drawable-night-xxxhdpi/splashscreen_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.