Page MenuHomePhabricator

[native] Create AESCrypto Expo module
ClosedPublic

Authored by bartek on Mar 8 2023, 9:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 27, 9:05 PM
Unknown Object (File)
Tue, Mar 26, 3:32 AM
Unknown Object (File)
Feb 25 2024, 5:04 PM
Unknown Object (File)
Feb 21 2024, 4:06 AM
Unknown Object (File)
Feb 20 2024, 11:41 PM
Unknown Object (File)
Feb 20 2024, 11:41 PM
Unknown Object (File)
Feb 15 2024, 1:15 AM
Unknown Object (File)
Feb 15 2024, 1:15 AM
Subscribers

Details

Summary

Created an Expo module that will handle AES encryption operations on native.

Inspired by D5932 that added android-lifecycle expo module.

Test Plan

Run yarn cleaninstall.

Both iOS and Android projects build and run successfully.

import { hello } from './utils/aes-crypto-module.js';

console.log(hello());

displays "Hello world! 👋"

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Mar 8 2023, 10:19 AM
bartek edited the test plan for this revision. (Show Details)
bartek added 1 blocking reviewer(s): ashoat.
bartek added inline comments.
native/expo-modules/aes-crypto/ios/AESCrypto.podspec
7–12 ↗(On Diff #23535)

Unfortunately, these values are required or pod install fails.

ashoat added inline comments.
native/expo-modules/aes-crypto/package.json
3 ↗(On Diff #23535)

The version in the Gradle file appears to be 0.1.0... should we make them consistent?

This revision is now accepted and ready to land.Mar 8 2023, 10:28 AM
native/expo-modules/aes-crypto/package.json
3 ↗(On Diff #23535)

Doesn't matter. AndroidLifecycle has the same inconsistency.

This revision was automatically updated to reflect the committed changes.