[android] Remove unnecessary version checks (#24203)# Why This PR is related to #24201, it removes unnecessary version checks # How Remove version check logic for SDK's < 23 # Test Pla
[android] Remove unnecessary version checks (#24203)# Why This PR is related to #24201, it removes unnecessary version checks # How Remove version check logic for SDK's < 23 # Test Plan Tested in Bare Expo in Android 13 simulator
show more ...
[battery][Android] Migrated codebase to use Expo modules API (#23883)# Why Migrated codebase to use Expo modules API # Test Plan - bare-expo ✅
[modules][Android] Fix records & enums in the release builds (#19551)# Why Closes https://github.com/expo/expo/issues/19509. # How - Added missing proguard rules for records. - Enums cla
[modules][Android] Fix records & enums in the release builds (#19551)# Why Closes https://github.com/expo/expo/issues/19509. # How - Added missing proguard rules for records. - Enums classes from now have to inherit from `EnumArgument` class. > See https://github.com/expo/expo/issues/19509#issuecomment-1278014932 for more information # Test Plan - bare-expo in release build ✅
[expo-modules] Move code from `unimodules` into `expo-modules-core` (#13703)# Why Migrated `unimodules-core`, `unimodules-react-native-adapter`, `unimodules-app-loader` into `expo-modules-core`
[expo-modules] Move code from `unimodules` into `expo-modules-core` (#13703)# Why Migrated `unimodules-core`, `unimodules-react-native-adapter`, `unimodules-app-loader` into `expo-modules-core` # How - Change package using AS refactor tools - Fix some places where AS wasn't able to do automatically - Fix compatibility with new auto-linking - Ensure that classes which are used during installation steps are still available in the old place # Test Plan - expo-go (tested using unversioned and 41) - bare-expo
[android] lint spotless ktlint and fix CI step (#13662)
[android] Add kotlin spotless ktlint linter for bare-expo (#13596)# Why In [#12545](https://github.com/expo/expo/pull/12545) ktlint was added to expo-go, but it didn't work with bare app. # H
[android] Add kotlin spotless ktlint linter for bare-expo (#13596)# Why In [#12545](https://github.com/expo/expo/pull/12545) ktlint was added to expo-go, but it didn't work with bare app. # How 1. Add spotless plugin, configure ktlint in accordance with how it was already implemented in expo-go. 2. Fix current lint errors
[expo-battery][android] rewrite batterymodule to kotlin (#13504)# Why Modules written in java are rewritten to Kotlin. # How I generated Kotlin code from Java, fix problems and made code c
[expo-battery][android] rewrite batterymodule to kotlin (#13504)# Why Modules written in java are rewritten to Kotlin. # How I generated Kotlin code from Java, fix problems and made code cleaner. # Test Plan I launched bare expo app and tested battery module with different parameters. # Checklist - [x] Documentation is up to date to reflect these changes (eg: https://docs.expo.io and README.md).
[android][battery] Fix condition when checking if power manager exists
[android][battery] Add method to check if battery optimization is enabled (#13138)
[android][battery] Fix bug causing battery state changes crashing the app (#5784)
[web] Added web support to expo-battery (#5451)* Added web support to expo-battery * Update BatteryScreen.tsx * Update BatteryModule.java * Update BatteryModule.java * Update Video.d.ts
[web] Added web support to expo-battery (#5451)* Added web support to expo-battery * Update BatteryScreen.tsx * Update BatteryModule.java * Update BatteryModule.java * Update Video.d.ts * Removed promise check * Update Network.js * Updated web battery API * Merge branch 'master' into @evanbacon/expo-web/battery * Fixed lint
[test-suite] Add expo-battery tests (#4960)* [test-suite] create test for expo-battery * update tests updated tests with accordance to PR feedback * Removed unused errors * Remove unsub
[test-suite] Add expo-battery tests (#4960)* [test-suite] create test for expo-battery * update tests updated tests with accordance to PR feedback * Removed unused errors * Remove unsub tests * Update packages/expo-battery/android/src/main/java/expo/modules/battery/BatteryModule.java Co-Authored-By: James Ide <[email protected]> * Update BatteryModule.java * Update Battery.js
[battery] Tighten up expo-battery API and docs- Docs: revised the expo-battery docs to be more comprehensive, covering edge cases in more detail, and fixed various grammatical errors. Explained the
[battery] Tighten up expo-battery API and docs- Docs: revised the expo-battery docs to be more comprehensive, covering edge cases in more detail, and fixed various grammatical errors. Explained the behavior on web in more detail.- Fixed up TS type names, exported them all- Made "-1" consistently represent the unknown battery level across all platforms instead of sometimes throwing errors and other times returning -1 without an intentional distinction between the two. (We can add back errors if needed, e.g. if the cause is useful to know, but currently the only cause is "the native layer didn't have the battery level info.")- Android: stopped catching NullPointerExceptions. We should write our code not to throw NPEs in the first place -- NPEs indicate preventable programming errors, rather than system errors. Added null checks instead.- Removed the errors for reading battery level and battery state (kept just the low-power mode error) since we return -1 and BatteryState.UNKNOWN instead and don't have actionable info to communicate back. (We might want to change this if we think the error is transient and retrying will help.)- Made the TypeScript (API layer) implementation return default values instead of throwing UnavailabilityErrors. In this context, the returned values make sense and will work with correctly written apps that handle them.Tested on Android, iOS, and web.
[expo-battery] Add expo-battery unimodule (#4804)create expo-battery unimodule Co-authored-by: Robert Luo <[email protected]> Co-authored-by: Vivian Zhu <[email protected]>