Skip to content

Commit e2d43c5

Browse files
yangyansong-adbecacheungemdobrinshtomar-adbPravinPK
authored
Staging -> main for beta.1 release (#129)
* Add getExperienceCloudId API Add getExperienceCloudId API * Update Readme Update Readme * Some more Readme fix Some more Readme fix * Update links in Readme Update links in Readme * update peer dependency edgeidentity version in messaging wrapper update peer dependency edgeidentity version in messaging wrapper * update peerDependencies version update peerDependencies version * revert Messaging package.json revert Messaging package.json, will update together with other wrappers in another PR * UserProfile (1.0.0-alpha.3) -> staging (#50) (#53) * Update with review comments Update with review comments * Edge (1.0.0-alpha.2), Messaging (1.0.0-alpha.2) -> staging (#54) * quick fix for peerDependecies issue * update sample app dependencies to latest versions * Update Edge Wrapper Readme Update Edge Wrapper Readme * update readme update readme * Update Readme and revert code Update Readme and revert code * update package json for sample app update package json for sample app * Fix a typo in sample app Fix a typo in sample app * Add promise checking for error case Add promise checking for error case * Remove the unused import statements (#60) Remove the unused import statements * EdgeIdentity (1.0.0-alpha.2) -> staging (#59) * fix a typo in readme (#61) fix a typo in readme * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * add promise reject with error add promise reject with error * Updated for callback error Updated for callback error * update to final for handleError parameter update to final for handleError parameter * update with review feedback update with review feedback * add import statements for RCTAEPEdgeIdentityModule.java add import statement for RCTAEPEdgeIdentityModule.java * Consent package setup * update dependencies * Reduce visibility for util classes, cleanup * Fix consent module * Add consent to iOS sample app * Renaming, update dependencies * Update gradle * Add Edge Identity API in JS and Java (#74) * Add EdgeIdentity API in js * add import statements for RCTAEPEdgeIdentityModule.java * Update with review comments * testing branch * Update getIdentities Update getIdentities * remove add items * update EdgeIdentity.js * More Update to the IdentityMap * more updates * Update with android databridge and removeIdentity * cleaning code * Remove console codes Remove console codes * Remove public access for internal files Remove public access for internal files * update with review comments update with review comments * update review comments update review comments * Add the boolean check for Primary key Add the boolean check for Primary key * update typo for ts file update typo for ts file * Update AuthenticatedState.js Update AuthenticatedState.js * Update with review comments Update with review comments * Added APIs for Consent extension (#80) * Consent - add Android + JS APIs, update sample app * Consent - sample app styling * Consent - iOS API updates, update examples on sample app * Consent - update typescript def and tests * Consent - update documentation * Consent - docs updates * Consent - reject with AEPError * Consent - add to main readme * Consent - review update sample app * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * EdgeIdentity - Updates on JS public APIs, unit testing, test app (#81) * Add Edge Identity API in JS and Java (#74) * Add EdgeIdentity API in js * add import statements for RCTAEPEdgeIdentityModule.java * Update with review comments * testing branch * Update getIdentities Update getIdentities * remove add items * update EdgeIdentity.js * More Update to the IdentityMap * more updates * Update with android databridge and removeIdentity * cleaning code * Remove console codes Remove console codes * Remove public access for internal files Remove public access for internal files * update with review comments update with review comments * update review comments update review comments * Add the boolean check for Primary key Add the boolean check for Primary key * update typo for ts file update typo for ts file * Update AuthenticatedState.js Update AuthenticatedState.js * Update with review comments Update with review comments * EdgeIdentity - Updates on JS public APIs, unit testing, test app (#81) * Edge - renaming, sample app and documentation updates (#87) * Renaming - Edge, EdgeEventHandle, ExperienceEvent * Renaming for Edge extension, minor sample app updates * Edge - update documentation * Edge - rename EdgeView * dev - yarn update * Consent - renaming public JS classes (#93) * Consent - renaming for consistency with native classes * Consent - AEP renaming * Update Readme for EdgeIdentity (#82) * Update Readme Update Readme * Update Readme with the review comments Update Readme with the review comments * Update readme file Update readme file * update to the correct link update to the correct link * correct a typo correct a typo * Edge Identity iOS implementation (#92) * Edge Identity iOS implementation Edge Identity iOS implementation * Update with review comments Update with review comments * update nullable for databridge file update nullable for databridge file * Update null checks order Update null checks order * EdgeIdentity - renaming * EdgeIdentity - fix typo * update readme update readme * EdgeIdentity - renaming in Readme * EdgeIdentity - more renaming * Consent - updated return promise * Pods update * Updated pods * Convert native identity map object to js identity map Convert native identity map object to js identity map * Update identity.js for iterating identity item Update identity.js for iterating identity item * Core - renaming public JS classes (#102) * add a new API in Core - resetIdentities (#63) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Merge latest staging changes (#85) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * Reduce visibility for utility classes and handle error callback (#86) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * reduce visibility for utility classes. * handle error callback * address review comments * Core - renaming public APIs (#91) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * reduce visibility for utility classes. * handle error callback * rename public APIs * fix sample app compile issue * clean up logs, remove AEP prefix * remove AEP prefix for Log tags * remove AEP prefix from PriavacyStatus const strings * fix compile failure * Remove AEP prefix for internal constant strings. * Add jest tests for getIdentities API Add jest tests for getIdentities API * remove an extra line of code remove an extra line of code * Core - clean up the sample app (#107) * add a new API in Core - resetIdentities (#63) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Merge latest staging changes (#85) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * Reduce visibility for utility classes and handle error callback (#86) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * reduce visibility for utility classes. * handle error callback * address review comments * Core - renaming public APIs (#91) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * reduce visibility for utility classes. * handle error callback * rename public APIs * fix sample app compile issue * clean up logs, remove AEP prefix * remove AEP prefix for Log tags * remove AEP prefix from PriavacyStatus const strings * fix compile failure * Remove AEP prefix for internal constant strings. * Core - clean up the sample app (#106) * Core - renaming public JS classes (#102) * add a new API in Core - resetIdentities (#63) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Merge latest staging changes (#85) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * Reduce visibility for utility classes and handle error callback (#86) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * reduce visibility for utility classes. * handle error callback * address review comments * Core - renaming public APIs (#91) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * reduce visibility for utility classes. * handle error callback * rename public APIs * fix sample app compile issue * clean up logs, remove AEP prefix * remove AEP prefix for Log tags * remove AEP prefix from PriavacyStatus const strings * fix compile failure * Remove AEP prefix for internal constant strings. * Clean up the sample app after renaming JS classes in Core plugin * Update getIdentity return promise Update getIdentity return promise * Changes for the Beta release. Includes changes in the file names and version name in package.json * Updated the unit tests for Messaging. * Update Sample App Update Sample App * update app.js and remove an extra file update app.js and remove an extra file * UserProfile -> staging : rename JS classes (#108) * bump version (#21) * Clean up package - UserProfile (#27) * update copyright * Fix peerDependecies issue for npm client * UserProfile - merge latest staging changes (#104) * UserProfile (1.0.0-alpha.3) -> staging (#50) (#51) * UserProfile (1.0.0-alpha.3) -> staging (#50) (#53) * Edge (1.0.0-alpha.2), Messaging (1.0.0-alpha.2) -> staging (#54) * quick fix for peerDependecies issue * update sample app dependencies to latest versions * Update Edge Wrapper Readme Update Edge Wrapper Readme * update readme update readme * Edge (1.0.0-alpha.2), Messaging (1.0.0-alpha.2) -> main (#55) * EdgeIdentity (1.0.0-alpha.2) -> staging (#59) * fix a typo in readme (#61) fix a typo in readme * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * Core (1.0.0-alpha.2) -> main (#65) * add a FAQ section (#66) * Consent package setup * update dependencies * Fix consent module * Add consent to iOS sample app * Renaming, update dependencies * Update gradle * Added APIs for Consent extension (#80) * Consent - add Android + JS APIs, update sample app * Consent - sample app styling * Consent - iOS API updates, update examples on sample app * Consent - update typescript def and tests * Consent - update documentation * Consent - docs updates * Consent - reject with AEPError * Consent - add to main readme * Consent - review update sample app * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * Consent - renaming public JS classes (#93) * Consent - renaming for consistency with native classes * Consent - AEP renaming * Consent - updated return promise * Pods update * Core - renaming public JS classes (#102) * add a new API in Core - resetIdentities (#63) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Merge latest staging changes (#85) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * Reduce visibility for utility classes and handle error callback (#86) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * reduce visibility for utility classes. * handle error callback * address review comments * Core - renaming public APIs (#91) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * reduce visibility for utility classes. * handle error callback * rename public APIs * fix sample app compile issue * clean up logs, remove AEP prefix * remove AEP prefix for Log tags * remove AEP prefix from PriavacyStatus const strings * fix compile failure * Remove AEP prefix for internal constant strings. Co-authored-by: Calise Cheung <[email protected]> Co-authored-by: Shivam Tomar <[email protected]> Co-authored-by: Pravin Prakash Kumar <[email protected]> Co-authored-by: Emilia Dobrin <[email protected]> Co-authored-by: Emilia Dobrin <[email protected]> * UserProfile - rename JS classes (#105) * UserProfile (1.0.0-alpha.3) -> staging (#50) (#51) * UserProfile (1.0.0-alpha.3) -> staging (#50) (#53) * Edge (1.0.0-alpha.2), Messaging (1.0.0-alpha.2) -> staging (#54) * quick fix for peerDependecies issue * update sample app dependencies to latest versions * Update Edge Wrapper Readme Update Edge Wrapper Readme * update readme update readme * Edge (1.0.0-alpha.2), Messaging (1.0.0-alpha.2) -> main (#55) * EdgeIdentity (1.0.0-alpha.2) -> staging (#59) * fix a typo in readme (#61) fix a typo in readme * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * Core (1.0.0-alpha.2) -> main (#65) * add a FAQ section (#66) * Consent package setup * update dependencies * Fix consent module * Add consent to iOS sample app * Renaming, update dependencies * Update gradle * Added APIs for Consent extension (#80) * Consent - add Android + JS APIs, update sample app * Consent - sample app styling * Consent - iOS API updates, update examples on sample app * Consent - update typescript def and tests * Consent - update documentation * Consent - docs updates * Consent - reject with AEPError * Consent - add to main readme * Consent - review update sample app * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * Consent - renaming public JS classes (#93) * Consent - renaming for consistency with native classes * Consent - AEP renaming * Consent - updated return promise * Pods update * Core - renaming public JS classes (#102) * add a new API in Core - resetIdentities (#63) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Merge latest staging changes (#85) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * Reduce visibility for utility classes and handle error callback (#86) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * reduce visibility for utility classes. * handle error callback * address review comments * Core - renaming public APIs (#91) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * reduce visibility for utility classes. * handle error callback * rename public APIs * fix sample app compile issue * clean up logs, remove AEP prefix * remove AEP prefix for Log tags * remove AEP prefix from PriavacyStatus const strings * fix compile failure * Remove AEP prefix for internal constant strings. * rename js classes * Core - clean up the sample app (#107) * add a new API in Core - resetIdentities (#63) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Merge latest staging changes (#85) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * Reduce visibility for utility classes and handle error callback (#86) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * reduce visibility for utility classes. * handle error callback * address review comments * Core - renaming public APIs (#91) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * reduce visibility for utility classes. * handle error callback * rename public APIs * fix sample app compile issue * clean up logs, remove AEP prefix * remove AEP prefix for Log tags * remove AEP prefix from PriavacyStatus const strings * fix compile failure * Remove AEP prefix for internal constant strings. * Core - clean up the sample app (#106) * Core - renaming public JS classes (#102) * add a new API in Core - resetIdentities (#63) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Merge latest staging changes (#85) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * Reduce visibility for utility classes and handle error callback (#86) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * reduce visibility for utility classes. * handle error callback * address review comments * Core - renaming public APIs (#91) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * reduce visibility for utility classes. * handle error callback * rename public APIs * fix sample app compile issue * clean up logs, remove AEP prefix * remove AEP prefix for Log tags * remove AEP prefix from PriavacyStatus const strings * fix compile failure * Remove AEP prefix for internal constant strings. * Clean up the sample app after renaming JS classes in Core plugin * Update the sample app Co-authored-by: Calise Cheung <[email protected]> Co-authored-by: Shivam Tomar <[email protected]> Co-authored-by: Pravin Prakash Kumar <[email protected]> Co-authored-by: Emilia Dobrin <[email protected]> Co-authored-by: Emilia Dobrin <[email protected]> * update yarn.lock Co-authored-by: Calise Cheung <[email protected]> Co-authored-by: Shivam Tomar <[email protected]> Co-authored-by: Pravin Prakash Kumar <[email protected]> Co-authored-by: Emilia Dobrin <[email protected]> Co-authored-by: Emilia Dobrin <[email protected]> * Fixed code review comments. * Removed merge conflicts. * Updated the Readme.md * Updated Readme. * Add return promise custom type Add return promise custom type * Remove Static for from Readme Remove Static for from Readme * remove styles in EdgeIdentityView remove styles in EdgeIdentityView * revert consent sample app style change revert consent sample app style change Will do that in consent PR * move text and breakline to styles move text and breakline to styles * remove static in Readme and update sample app style remove static in Readme and update sample app style * Update Edge.js for return catch error Update Edge.js for return catch error * check null for promise return custom class check null for promise return custom class * update with review feedback update with review feedback * Fix return type for ts * Update syntax for sendEvent * enum support for AuthenticatedState in ts enum support for AuthenticatedState in ts * remove extra spaces remove extra spaces * fixed typo fixed typo * Core -> staging: add enum support in d.ts file (#124) * add a new API in Core - resetIdentities (#63) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Merge latest staging changes (#85) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * Reduce visibility for utility classes and handle error callback (#86) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * reduce visibility for utility classes. * handle error callback * address review comments * Core - renaming public APIs (#91) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * reduce visibility for utility classes. * handle error callback * rename public APIs * fix sample app compile issue * clean up logs, remove AEP prefix * remove AEP prefix for Log tags * remove AEP prefix from PriavacyStatus const strings * fix compile failure * Remove AEP prefix for internal constant strings. * Core - clean up the sample app (#106) * Core - renaming public JS classes (#102) * add a new API in Core - resetIdentities (#63) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Merge latest staging changes (#85) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * Reduce visibility for utility classes and handle error callback (#86) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * reduce visibility for utility classes. * handle error callback * address review comments * Core - renaming public APIs (#91) * EdgeIdentity (1.0.0-alpha.2) -> main (#62) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * add a new API in Core - resetIdentities (#63) (#64) * add a new API in Core -? resetIdentities * update core package version to alpha.2 * Update README.md * add a FAQ section (#66) * fix the release issue: NPM registry enforces a minimum of TLS 1.2 beginning October 4, 2021 (#73) * reduce visibility for utility classes. * handle error callback * rename public APIs * fix sample app compile issue * clean up logs, remove AEP prefix * remove AEP prefix for Log tags * remove AEP prefix from PriavacyStatus const strings * fix compile failure * Remove AEP prefix for internal constant strings. * Clean up the sample app after renaming JS classes in Core plugin * remove dispatchResponseEvent API from Core (#112) * Core - add enum support in d.ts file (#113) * add enum support in d.ts file * add more enum types in d.ts files * update tests * fix conflicts * Rename Items to IdentityMap Rename Items to IdentityMap * Update Readme with initializing information for Edge extensions Update Readme with initializing information for Edge extensions * update Readme files with the review comments update Readme files with the review comments * Update few Readme format Update few Readme format * update version alpha -> beta (#127) * update version alpha -> beta * revert lock file * revert babel config * Move from Assurance_publish branch to staging (#128) * move code from AssurancePublish branch * readMe edits * core dependency to beta * Update to Assurance readMe * Remove Identity and correct naming * Update Assurance readme * Update assurance sample app to beta tag * Assurance badge update * Main README cleanup (#130) * update version alpha -> beta * revert lock file * revert babel config * Update README.md * Update README.md * Update README.md * REAME cleanup (#132) * update version alpha -> beta * revert lock file * revert babel config * Update README.md * Update README.md * Update README.md * update the sample code to present use of setWrapperType * Update README.md * clean up README * Bug fix: correct error handling logic (#133) * update version alpha -> beta * revert lock file * revert babel config * Update README.md * Update README.md * Update README.md * update the sample code to present use of setWrapperType * Update README.md * clean up README * fix review comments Co-authored-by: calise cheung <[email protected]> Co-authored-by: Emilia Dobrin <[email protected]> Co-authored-by: Emilia Dobrin <[email protected]> Co-authored-by: shtomar-adb <[email protected]> Co-authored-by: Shivam Tomar <[email protected]> Co-authored-by: Pravin Prakash Kumar <[email protected]>
1 parent 9f61265 commit e2d43c5

File tree

148 files changed

+15671
-2166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+15671
-2166
lines changed

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
run: yarn bootstrap
2222
- name: Authenticate with Registry
2323
run: |
24-
echo "@adobe:registry=http://registry.npmjs.org/" > .npmrc
25-
echo "registry=http://registry.npmjs.org/" >> .npmrc
24+
echo "@adobe:registry=https://registry.npmjs.org/" > .npmrc
25+
echo "registry=https://registry.npmjs.org/" >> .npmrc
2626
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
2727
npm whoami
2828
env: # More info about the environment variables in the README

README.md

Lines changed: 38 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ This repository is a monorepo. It contains a collection of Adobe Experience Plat
1818
| [@adobe/react-native-aepuserprofile](./packages/userprofile) | [![npm version](https://badge.fury.io/js/%40adobe%2Freact-native-aepuserprofile.svg)](https://www.npmjs.com/package/@adobe/react-native-aepuserprofile) [![npm downloads](https://img.shields.io/npm/dm/@adobe/react-native-aepuserprofile)](https://www.npmjs.com/package/@adobe/react-native-aepuserprofile)
1919
| [@adobe/react-native-aepedge](./packages/edge) | [![npm version](https://badge.fury.io/js/%40adobe%2Freact-native-aepedge.svg)](https://www.npmjs.com/package/@adobe/react-native-aepedge) [![npm downloads](https://img.shields.io/npm/dm/@adobe/react-native-aepedge)](https://www.npmjs.com/package/@adobe/react-native-aepedge) |
2020
| [@adobe/react-native-aepedgeidentity](./packages/edgeidentity) | [![npm version](https://badge.fury.io/js/%40adobe%2Freact-native-aepedgeidentity.svg)](https://www.npmjs.com/package/@adobe/react-native-aepedgeidentity) [![npm downloads](https://img.shields.io/npm/dm/@adobe/react-native-aepedgeidentity)](https://www.npmjs.com/package/@adobe/react-native-aepedgeidentity) |
21+
| [@adobe/react-native-aepedgeconsent](./packages/edgeconsent) | [![npm version](https://badge.fury.io/js/%40adobe%2Freact-native-aepedgeconsent.svg)](https://www.npmjs.com/package/@adobe/react-native-aepedgeconsent) [![npm downloads](https://img.shields.io/npm/dm/@adobe/react-native-aepedgeconsent)](https://www.npmjs.com/package/@adobe/react-native-aepedgeconsent) |
2122
| [@adobe/react-native-aepmessaging](./packages/messaging) | [![npm version](https://badge.fury.io/js/%40adobe%2Freact-native-aepmessaging.svg)](https://www.npmjs.com/package/@adobe/react-native-aepmessaging) [![npm downloads](https://img.shields.io/npm/dm/@adobe/react-native-aepmessaging)](https://www.npmjs.com/package/@adobe/react-native-aepmessaging) |
22-
| [@adobe/react-native-aepassurance (3.0.0-alpha.1)](./packages/assurance) | [![npm version](https://img.shields.io/npm/v/@adobe/react-native-aepassurance/alpha?color=green&label=npm%20package)](https://www.npmjs.com/package/@adobe/react-native-aepassurance/v/3.0.0-alpha.1) [![npm downloads](https://img.shields.io/npm/dm/@adobe/react-native-aepassurance)](https://www.npmjs.com/package/@adobe/react-native-aepassurance/v/3.0.0-alpha.1) |
23+
| [@adobe/react-native-aepassurance](./packages/assurance) | [![npm version](https://badge.fury.io/js/%40adobe%2Freact-native-aepassurance.svg)](https://www.npmjs.com/package/@adobe/react-native-aepassurance) [![npm downloads](https://img.shields.io/npm/dm/@adobe/react-native-aepassurance)](https://www.npmjs.com/package/@adobe/react-native-aepassurance) |
2324

2425
`@adobe/react-native-aep{extension}` is a wrapper around the iOS and Android [AEP SDK](https://aep-sdks.gitbook.io/docs/) to allow for integration with React Native applications.
2526

@@ -65,15 +66,28 @@ Initializing the SDK should be done in native code inside your `AppDelegate` (iO
6566
@import AEPServices;
6667
@import AEPSignal;
6768
@import AEPLifecycle;
68-
@import AEPIdentity;
69-
@import AEPUserProfile;
69+
@import AEPEdge;
70+
@import AEPEdgeIdentity;
71+
@import AEPEdgeConsent;
72+
//@import AEPMessaging;
73+
//@import AEPUserProfile;
74+
//@import AEPAssurance;
75+
//@import AEPIdentity;
7076
...
7177
@implementation AppDelegate
7278
-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
7379
[AEPMobileCore setLogLevel: AEPLogLevelDebug];
7480
[AEPMobileCore configureWithAppId:@"yourAppID"];
75-
[AEPMobileCore registerExtensions: @[AEPMobileIdentity.class, AEPMobileLifecycle.class, AEPMobileSignal.class, AEPMobileUserProfile.class
76-
// register other extensions here
81+
[AEPMobileCore registerExtensions: @[
82+
AEPMobileLifecycle.class,
83+
AEPMobileSignal.class,
84+
AEPMobileEdge.class,
85+
AEPMobileEdgeIdentity.class,
86+
AEPMobileEdgeConsent.class,
87+
//AEPMobileIdentity.class,
88+
//AEPMobileUserProfile.class,
89+
//AEPMobileMessaging.class,
90+
//AEPMobileAssurance.class,
7791
] completion:^{
7892
[AEPMobileCore lifecycleStart:@{@"contextDataKey": @"contextDataVal"}];
7993
}
@@ -93,13 +107,16 @@ Initializing the SDK should be done in native code inside your `AppDelegate` (iO
93107
###### **Android:**
94108
```java
95109
import com.adobe.marketing.mobile.AdobeCallback;
96-
import com.adobe.marketing.mobile.Identity;
97110
import com.adobe.marketing.mobile.InvalidInitException;
98-
import com.adobe.marketing.mobile.Lifecycle;
99111
import com.adobe.marketing.mobile.LoggingMode;
100-
import com.adobe.marketing.mobile.MobileCore;
112+
import com.adobe.marketing.mobile.Lifecycle;
101113
import com.adobe.marketing.mobile.Signal;
102-
import com.adobe.marketing.mobile.UserProfile;
114+
import com.adobe.marketing.mobile.MobileCore;
115+
import com.adobe.marketing.mobile.Edge;
116+
import com.adobe.marketing.mobile.edge.consent.Consent;
117+
//import com.adobe.marketing.mobile.Messaging;
118+
//import com.adobe.marketing.mobile.UserProfile;
119+
//import com.adobe.marketing.mobile.Assurance;
103120
...
104121
import android.app.Application;
105122
...
@@ -111,14 +128,16 @@ public class MainApplication extends Application implements ReactApplication {
111128
...
112129
MobileCore.setApplication(this);
113130
MobileCore.setLogLevel(LoggingMode.DEBUG);
114-
MobileCore.setWrapperType(WrapperType.REACT_NATIVE);
115-
116131
try {
117-
UserProfile.registerExtension();
118-
Identity.registerExtension();
119-
Lifecycle.registerExtension();
120-
Signal.registerExtension();
121-
// register other extensions here
132+
Lifecycle.registerExtension();
133+
Signal.registerExtension();
134+
com.adobe.marketing.mobile.edge.identity.Identity.registerExtension();
135+
Edge.registerExtension();
136+
Consent.registerExtension();
137+
//Messaging.registerExtension();
138+
//Assurance.registerExtension();
139+
//UserProfile.registerExtension();
140+
//com.adobe.marketing.mobile.Identity.registerExtension();
122141
MobileCore.configureWithAppID("yourAppID");
123142
MobileCore.start(new AdobeCallback() {
124143
@Override
@@ -138,6 +157,9 @@ public class MainApplication extends Application implements ReactApplication {
138157

139158
See [development.md](./docs/development.md) for development docs.
140159

160+
## Frequently Asked Questions (FAQ)
161+
162+
141163
## Contributing
142164
See [CONTRIBUTING](CONTRIBUTING.md)
143165

apps/AEPSampleApp/App.js

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,47 @@ import * as React from 'react';
22
import { Button, View, Text } from 'react-native';
33
import { createDrawerNavigator } from '@react-navigation/drawer';
44
import { NavigationContainer } from '@react-navigation/native';
5-
import Profile from './extensions/Profile';
6-
import Core from './extensions/Core';
7-
import Identity from './extensions/Identity';
8-
import Messaging from './extensions/Messaging';
9-
import EdgeIdentity from './extensions/EdgeIdentity';
10-
import Edge from './extensions/Edge';
11-
import Assurance from './extensions/Assurance';
5+
import ProfileView from './extensions/ProfileView';
6+
import MessagingView from './extensions/MessagingView';
7+
import CoreView from './extensions/CoreView';
8+
import IdentityView from './extensions/IdentityView';
9+
import EdgeIdentity from './extensions/EdgeIdentityView';
10+
import ConsentView from './extensions/ConsentView';
11+
import EdgeView from './extensions/EdgeView';
12+
import AssuranceView from './extensions/AssuranceView';
1213

1314
function HomeScreen({ navigation }) {
1415
return (
1516
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
1617
<Button
17-
onPress={() => navigation.navigate('Core')}
18+
onPress={() => navigation.navigate('CoreView')}
1819
title="Core/Lifecycle/Signal"
1920
/>
2021
<Button
21-
onPress={() => navigation.navigate('Profile')}
22+
onPress={() => navigation.navigate('ProfileView')}
2223
title="UserProfile"
2324
/>
2425
<Button
25-
onPress={() => navigation.navigate('Identity')}
26+
onPress={() => navigation.navigate('IdentityView')}
2627
title="Identity"
2728
/>
2829
<Button
29-
onPress={() => navigation.navigate('Messaging')}
30-
title="Messaging"/>
30+
onPress={() => navigation.navigate('MessagingView')}
31+
title="Messaging" />
3132
<Button
32-
onPress={() => navigation.navigate('Edge')}
33+
onPress={() => navigation.navigate('EdgeView')}
3334
title="Edge"
3435
/>
3536
<Button
36-
onPress={() => navigation.navigate('EdgeIdentity')}
37+
onPress={() => navigation.navigate('EdgeIdentityView')}
3738
title="EdgeIdentity"
3839
/>
3940
<Button
40-
onPress={() => navigation.navigate('Assurance')}
41+
onPress={() => navigation.navigate('ConsentView')}
42+
title="Consent"
43+
/>
44+
<Button
45+
onPress={() => navigation.navigate('AssuranceView')}
4146
title="Assurance"
4247
/>
4348
</View>
@@ -51,14 +56,15 @@ export default function App() {
5156
<NavigationContainer>
5257
<Drawer.Navigator initialRouteName="Home">
5358
<Drawer.Screen name="Home" component={HomeScreen} />
54-
<Drawer.Screen name="Core" component={Core} />
55-
<Drawer.Screen name="Profile" component={Profile} />
56-
<Drawer.Screen name="Identity" component={Identity} />
57-
<Drawer.Screen name="Messaging" component={Messaging}/>
58-
<Drawer.Screen name="EdgeIdentity" component={EdgeIdentity} />
59-
<Drawer.Screen name="Edge" component={Edge} />
60-
<Drawer.Screen name="Assurance" component={Assurance} />
61-
</Drawer.Navigator>
62-
</NavigationContainer>
59+
<Drawer.Screen name="CoreView" component={CoreView} />
60+
<Drawer.Screen name="ProfileView" component={ProfileView} />
61+
<Drawer.Screen name="IdentityView" component={IdentityView} />
62+
<Drawer.Screen name="MessagingView" component={MessagingView} />
63+
<Drawer.Screen name="EdgeView" component={EdgeView} />
64+
<Drawer.Screen name="EdgeIdentityView" component={EdgeIdentityView} />
65+
<Drawer.Screen name="ConsentView" component={ConsentView} />
66+
<Drawer.Screen name="AssuranceView" component={AssuranceView} />
67+
</Drawer.Navigator >
68+
</NavigationContainer >
6369
);
6470
}

apps/AEPSampleApp/android/app/src/main/java/com/aepsampleapp/MainApplication.java

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717

1818
import com.adobe.marketing.mobile.AdobeCallback;
1919
import com.adobe.marketing.mobile.Assurance;
20-
import com.adobe.marketing.mobile.Identity;
2120
import com.adobe.marketing.mobile.InvalidInitException;
2221
import com.adobe.marketing.mobile.Lifecycle;
2322
import com.adobe.marketing.mobile.LoggingMode;
2423
import com.adobe.marketing.mobile.Messaging;
2524
import com.adobe.marketing.mobile.MobileCore;
2625
import com.adobe.marketing.mobile.Edge;
26+
import com.adobe.marketing.mobile.edge.consent.Consent;
2727
import com.adobe.marketing.mobile.Signal;
2828
import com.adobe.marketing.mobile.UserProfile;
2929
import com.facebook.react.PackageList;
@@ -77,20 +77,22 @@ public void onCreate() {
7777
com.adobe.marketing.mobile.Identity.registerExtension();
7878
com.adobe.marketing.mobile.edge.identity.Identity.registerExtension();
7979
Lifecycle.registerExtension();
80-
Signal.registerExtension();
80+
Signal.registerExtension();
8181
Edge.registerExtension();
82+
Consent.registerExtension();
8283
Messaging.registerExtension();
8384
Assurance.registerExtension();
84-
MobileCore.configureWithAppID("your-app-ID");
85-
MobileCore.start(new AdobeCallback() {
86-
@Override
87-
public void call(Object o) {
88-
MobileCore.lifecycleStart(null);
89-
}
90-
});
9185
} catch (InvalidInitException e) {
9286
e.printStackTrace();
9387
}
88+
89+
MobileCore.configureWithAppID("your-app-ID");
90+
MobileCore.start(new AdobeCallback() {
91+
@Override
92+
public void call(Object o) {
93+
MobileCore.lifecycleStart(null);
94+
}
95+
});
9496
}
9597

9698
/**

apps/AEPSampleApp/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ buildscript {
1010
}
1111
repositories {
1212
google()
13-
jcenter()
13+
mavenCentral()
1414
}
1515
dependencies {
1616
classpath("com.android.tools.build:gradle:4.1.0")
@@ -32,8 +32,8 @@ allprojects {
3232
}
3333

3434
google()
35-
jcenter()
3635
maven { url 'https://www.jitpack.io' }
3736
mavenCentral()
37+
jcenter()
3838
}
3939
}

apps/AEPSampleApp/babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: ['module:metro-react-native-babel-preset'],
2+
presets: ['module:metro-react-native-babel-preset']
33
};

apps/AEPSampleApp/extensions/Assurance.js renamed to apps/AEPSampleApp/extensions/AssuranceView.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ governing permissions and limitations under the License.
1515

1616
import React, {useState,Component} from 'react';
1717
import {Button, StyleSheet, Text, View, TextInput, ScrollView} from 'react-native';
18-
import {AEPAssurance} from '@adobe/react-native-aepassurance';
18+
import {Assurance} from '@adobe/react-native-aepassurance';
1919

20-
export default Assurance = ({ navigation }) => {
20+
export default AssuranceView = ({ navigation }) => {
2121
const [version, setVersion] = useState('');
2222
const [sessionURL, setsessionURL] = useState('your-assurance-url');
2323

24-
AEPAssurance.extensionVersion().then(version => {
24+
Assurance.extensionVersion().then(version => {
2525
setVersion(version)
2626
});
2727

@@ -41,7 +41,7 @@ export default Assurance = ({ navigation }) => {
4141
)
4242

4343
function startSessionClicked() {
44-
AEPAssurance.startSession(sessionURL)
44+
Assurance.startSession(sessionURL)
4545
}
4646

4747
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/*
2+
Copyright 2021 Adobe. All rights reserved.
3+
This file is licensed to you under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License. You may obtain a copy
5+
of the License at http://www.apache.org/licenses/LICENSE-2.0
6+
7+
Unless required by applicable law or agreed to in writing, software distributed under
8+
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9+
OF ANY KIND, either express or implied. See the License for the specific language
10+
governing permissions and limitations under the License.
11+
12+
@flow
13+
@format
14+
*/
15+
16+
import React, {useState, Component} from 'react';
17+
import {Button, StyleSheet, Text, View, ScrollView} from 'react-native';
18+
import {Consent} from '@adobe/react-native-aepedgeconsent';
19+
import {MobileCore} from '@adobe/react-native-aepcore';
20+
import styles from '../styles/styles';
21+
22+
export default ConsentView = ({ navigation }) => {
23+
const [version, setVersion] = useState('');
24+
const [consents, setConsents] = useState('');
25+
Consent.extensionVersion().then(version => setVersion(version));
26+
27+
function getConsents() {
28+
var consents = {"consents" : {"collect" : {"val": "n"}}};
29+
Consent.getConsents().then(currentConsents => {
30+
let consentsStr = JSON.stringify(currentConsents);
31+
setConsents(consentsStr);
32+
console.log("AdobeExperienceSDK: Consent.getConsents returned current consent preferences: " + consentsStr);
33+
}).catch((error) => {
34+
console.warn("AdobeExperienceSDK: Consent.getConsents returned error: ", error);
35+
});
36+
}
37+
38+
return (
39+
<View style={styles.container}>
40+
<ScrollView contentContainerStyle={{ marginTop: 75 }}>
41+
<Button onPress={() => navigation.goBack()} title="Go to main page" />
42+
<Text style={styles.welcome}>Consent v{version}</Text>
43+
<Button title="Set Default Consent - Yes" onPress={() => setDefaultConsent(true)}/>
44+
<Button title="Set Collect Consent - Yes" onPress={() => updateCollectConsent(true)}/>
45+
<Button title="Set Collect Consent - No" onPress={() => updateCollectConsent(false)}/>
46+
<Button title="Get Consents" onPress={getConsents}/>
47+
<View style={styles.breakLine}/>
48+
<Text style={styles.text}>{consents}</Text>
49+
</ScrollView>
50+
</View>
51+
)
52+
}
53+
54+
function updateCollectConsent(allowed: boolean) {
55+
var collectConsentStatus = allowed ? {"val": "y"} : {"val": "n"};
56+
57+
var consents: {[keys: string]: any} = {"consents" : {"collect" : collectConsentStatus}};
58+
Consent.update(consents);
59+
console.log("AdobeExperienceSDK: Consent.update called with: " + JSON.stringify(consents));
60+
}
61+
62+
function setDefaultConsent(allowed: boolean) {
63+
var collectConsentStatus = allowed ? {"val": "y"} : {"val": "n"};
64+
var defaultConsents: {[keys: string]: any} = {"consent.default": {"consents" : {"collect" : collectConsentStatus}}};
65+
MobileCore.updateConfiguration(defaultConsents);
66+
}

0 commit comments

Comments
 (0)