[android][expo-network] migrate to new modules API (#20083)# Why Migrate native modules to use new modules API # How Followed the usual steps involved in migrating a module # Test Plan Tes
[android][expo-network] migrate to new modules API (#20083)# Why Migrate native modules to use new modules API # How Followed the usual steps involved in migrating a module # Test Plan Tested in the bare expo app. All tests pass as before
show more ...
[android][network] Rewrite Android code to Kotlin (#14474)
[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
[expo-network] deprecate getMacAddressAsync (#12307)
[network] fix: ip address not retrieved if using cellular data (#11534)* return 0.0.0.0 if unable to get ip address (match ios) * cleanup some small things * fallback to ipify if unable to ge
[network] fix: ip address not retrieved if using cellular data (#11534)* return 0.0.0.0 if unable to get ip address (match ios) * cleanup some small things * fallback to ipify if unable to get ip natively * changelog and docs * fix lint * return 0.0.0.0 if getByAddress throws * do not fallback to ipify on native * Update docs/pages/versions/unversioned/sdk/network.md Co-authored-by: James Ide <[email protected]> * ensure array passed to 'getByAddress' is 4 bytes long * use inputArray for consistent variable naming Co-authored-by: James Ide <[email protected]>
[expo-network] Fix getMacAddressAsync as per docs (#7394)# Why While QAing SDK37 with `test-suite` I noticed persistent failures on `getMacAddressAsync` method. Decided to investigate them and f
[expo-network] Fix getMacAddressAsync as per docs (#7394)# Why While QAing SDK37 with `test-suite` I noticed persistent failures on `getMacAddressAsync` method. Decided to investigate them and fix before release. # How - `mac` sometimes is `null`, looping over `null` threw an NPE — fixed by `if (mac != null)` - logic of this function is somewhat convoluted and I may have not grasped it all, but my gut tells me that this `break;` should happen alongside `promise.resolve`, otherwise for an empty `interfaceName` we only ever try to get MAC address of one interface - `getMacAddressAsync`'s documentation states that on Android > If undefined interface name passed in, the method would reject the promise with corresponding message. which it didn't. Added a simple `if (interfaceName === undefined)` check, which if true, throws a `CodedError`. - also updated the test case in `test-suite` to reflect the documentation behavior - while editing Android Studio also reformatted the `NetworkModule` so I just reformatted all the files in the module - then I backported those changes to versioned SDK37 # Test Plan The tests pass.
[expo-network] Add expo-network unimodule (#5074)Create expo-network module Co-authored-by: Robert L <[email protected]> Co-authored-by: Vivian Z <[email protected]>