Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
230 commits
Select commit Hold shift + click to select a range
931ee72
Initial commit. Added Optimize RN package and Android sample app.
shtomar-adb Oct 22, 2021
dd46322
Update README.md
shtomar-adb Oct 22, 2021
10646c1
Added classed offer and Proposition
shtomar-adb Oct 23, 2021
8a8cde6
Merge branch 'optimize' of github.com:adobe/aepsdk-react-native into …
shtomar-adb Oct 23, 2021
8517f67
Added model class Offer and Preposition in js and hadle Offer tapped …
shtomar-adb Oct 29, 2021
e28cace
Added podspec in Optimize wrapper.
shtomar-adb Nov 5, 2021
80cce92
Added RN wrapper ios bridge code
shtomar-adb Nov 10, 2021
a41080a
Updated js files with values type.
shtomar-adb Nov 19, 2021
e60abad
Modified the model classes Offer, Proposition, DecisionScope
shtomar-adb Nov 20, 2021
c48da13
Code optimization in model classes and data movement between native a…
shtomar-adb Dec 1, 2021
edb49ba
Updated Android aar and made necessary changes in js and Android native.
shtomar-adb Dec 15, 2021
c0a4ec9
Added following 2 news js API: generateReferenceXDM and generateTapIn…
shtomar-adb Dec 16, 2021
bd8f578
Made changes in ios code to integrate with changes in JS API.
shtomar-adb Dec 17, 2021
4272d8c
Added APIs for in-app messaging.
shtomar-adb Feb 3, 2022
32041fe
Added the JS equivalent of Messaging Delegate.
shtomar-adb Feb 8, 2022
acc79a9
Removed the suppresautotrack parameter from Message.dismiss.
shtomar-adb Feb 8, 2022
6bc2c05
Updated sample app to show usage of more IAM API's. Update in the imp…
shtomar-adb Feb 9, 2022
c1b4966
Update Home Readme
cacheung Feb 10, 2022
9693241
Fix format
cacheung Feb 10, 2022
152cf47
Address code review feedback.
shtomar-adb Feb 10, 2022
bba19b0
Remove Services from the Readme
cacheung Feb 10, 2022
68e643e
update comments for messaging
cacheung Feb 10, 2022
3e74668
Addressed code review feedback.
shtomar-adb Feb 11, 2022
145b590
Added Message parameter in urlLoaded function of MessagingDelegate.
shtomar-adb Feb 11, 2022
0b5724c
Added IAM APIs in Messaging Readme
shtomar-adb Feb 11, 2022
7d7af90
Added more Logs.
shtomar-adb Feb 11, 2022
39e8415
Merge branch 'messaging' of github.com:adobe/aepsdk-react-native into…
shtomar-adb Feb 11, 2022
2c917fe
Merged the upstream staging branch.
shtomar-adb Feb 11, 2022
5821a50
Rename function Message.clearMessage to Message.clear
shtomar-adb Feb 11, 2022
1fbc49c
Updated the Readme to address code review feedback
shtomar-adb Feb 11, 2022
96e45af
Update with review comments
cacheung Feb 12, 2022
4ed1412
Updated the installation instructions
shtomar-adb Feb 12, 2022
40a0a34
update readme package.json description
cacheung Feb 14, 2022
c4e33c5
Update Readme with dependencies and Lifecycle info
cacheung Feb 14, 2022
9d4cb33
Add Native Extension column and add description to extensions
cacheung Feb 15, 2022
0c4ce83
Fix the Capital letter
cacheung Feb 15, 2022
490b539
code review feedback
shtomar-adb Feb 15, 2022
04299c5
New Approach for the doc format
cacheung Feb 15, 2022
30d1816
Code review feedback
shtomar-adb Feb 15, 2022
978cc16
Updated more with review comments
cacheung Feb 16, 2022
0950837
update messaging link
cacheung Feb 16, 2022
47fc39c
Code review feedback.
shtomar-adb Feb 17, 2022
0227248
Added Android native code RN package
shtomar-adb Feb 19, 2022
e8fbc67
Merge branch 'messaging' of github.com:adobe/aepsdk-react-native into…
shtomar-adb Feb 19, 2022
dc175cd
Removed flow-typed folder
shtomar-adb Feb 23, 2022
5239e4e
Updated Readme
shtomar-adb Feb 23, 2022
44d975f
Updated Android install instructions
shtomar-adb Feb 23, 2022
2de922e
Added public class documentation
shtomar-adb Feb 23, 2022
9087805
Updated the comments for DecisionScope
shtomar-adb Feb 25, 2022
bdda743
Merge branch 'optimize' of github.com:adobe/aepsdk-react-native into …
shtomar-adb Feb 25, 2022
a993441
Merge staging branch and resolve the merge conflicts.
shtomar-adb Feb 25, 2022
6396e79
Fix compilation issues.
shtomar-adb Feb 26, 2022
db890e4
Improved the UI: Improve the List view showing all the Offers.
shtomar-adb Mar 1, 2022
0330b23
Implemented Offer displayed interaction in sample app.
shtomar-adb Mar 2, 2022
6a2bf3d
Added typescript definition file and Unit tests.
shtomar-adb Mar 4, 2022
fc07d67
Added Unit tests and Type script description file.
shtomar-adb Mar 5, 2022
88e4ccb
Changes in RN Messaging package Android side.
shtomar-adb Mar 9, 2022
236aa9f
Added Offer activity id and placement id as metadata in AndroidManife…
shtomar-adb Mar 9, 2022
93137af
Staging -> Main for Edge beta.2 release (#151)
yangyansong-adbe Mar 11, 2022
b5a4a28
Integrated the updated messaging.aar to keep track and handleJsMessag…
shtomar-adb Mar 12, 2022
3f955f9
Added the activity and placement id in plist. Changed the bundle id …
shtomar-adb Mar 12, 2022
26fe574
[userprofile] clean up userprofile package & update public docs with …
yangyansong-adbe Mar 22, 2022
e3e269b
Changes in Offer.js to fix the broken Offer.display() and Offer.tappe…
shtomar-adb Mar 23, 2022
f025a74
Clean up for Edge extension
cacheung Mar 24, 2022
6d887c3
Merge pull request #156 from cacheung/typescript
cacheung Mar 28, 2022
066abd8
[core] clean up core package & update public docs with typescript syn…
yangyansong-adbe Mar 29, 2022
f93e5ab
Fixed an issue in getting fetched propositions.
shtomar-adb Mar 30, 2022
4e54868
Updated the public class definitions in Readme
shtomar-adb Mar 30, 2022
56b89af
Clean up for EdgeIdentity and update readme.
cacheung Mar 30, 2022
815950c
Merge pull request #159 from cacheung/edgeId
cacheung Mar 30, 2022
c2baa57
[assurance] clean up assurance package & update public docs with type…
yangyansong-adbe Mar 30, 2022
a8c6b35
Merge branch 'staging' of github.com:adobe/aepsdk-react-native into e…
cacheung Mar 30, 2022
dc0c65c
remove babelrc file
cacheung Mar 30, 2022
08a2991
Merge pull request #161 from cacheung/edgeId
cacheung Mar 30, 2022
2c50ef2
Merge pull request #160 from adobe/edgeIdentity
cacheung Mar 30, 2022
1b85ea8
Clean up Consent package
cacheung Mar 30, 2022
b3737c6
Merge branch 'staging' of github.com:adobe/aepsdk-react-native into c…
cacheung Mar 30, 2022
fff667c
Merge pull request #162 from cacheung/consent
cacheung Mar 31, 2022
feb14f8
Updated installation instructions
shtomar-adb Mar 31, 2022
bb4ad46
Merge pull request #163 from adobe/consent
cacheung Mar 31, 2022
832033b
Merge commit '93137af2e77c94d8f6241f4d34514ab381b88f88' into staging
yangyansong-adbe Mar 31, 2022
a7d0feb
Staging -> Main (typescript change) (#164)
yangyansong-adbe Mar 31, 2022
7de30a9
add back android manifest for debug
cacheung Apr 1, 2022
80111f1
Merge pull request #165 from cacheung/staging
cacheung Apr 4, 2022
de1cacc
Update API docs with typescript syntax (migration doc/ readme) (#166)
yangyansong-adbe Apr 4, 2022
6c61108
[core] Add a new API: clearUpdatedConfiguration (#167)
yangyansong-adbe Apr 4, 2022
bb4a63f
On Android Null check for visitorId in getIdentifier
cacheung Apr 5, 2022
469a5d0
Update Identity Readme and migration
cacheung Apr 5, 2022
a159801
Revert "Update Identity Readme and migration"
cacheung Apr 5, 2022
2e7bb5f
Revert "On Android Null check for visitorId in getIdentifier"
cacheung Apr 5, 2022
72605f3
Update Identity Readme, migration doc and a bug fix
cacheung Apr 5, 2022
123ef43
Update migration and readme for identity
cacheung Apr 5, 2022
2e2e531
Merge branch 'staging' of github.com:adobe/aepsdk-react-native into r…
cacheung Apr 5, 2022
21f1fa0
Merge pull request #141 from cacheung/readme
cacheung Apr 5, 2022
07e45b0
Merge pull request #168 from cacheung/identityDocAndFix
cacheung Apr 6, 2022
75869fd
remove beta from package versions (#169)
yangyansong-adbe Apr 7, 2022
ccd7682
Merge commit 'a7d0febed8bcb7c58025bff4daa6a974953f3de4' into staging
yangyansong-adbe Apr 7, 2022
a0236ec
Update doc link for messaging in the readme (#173)
cacheung Apr 11, 2022
b03cfbc
[1.0.0 release] staging -> main (#170)
yangyansong-adbe Apr 12, 2022
a1cc78c
Merge branch 'staging' of https://github.com/adobe/aepsdk-react-nativ…
dsoffiantini Apr 13, 2022
62c298d
Merge branch 'staging' of https://github.com/adobe/aepsdk-react-nativ…
dsoffiantini Apr 13, 2022
32f4613
feat: converts optimize to ts
dsoffiantini Apr 14, 2022
db3ace5
-a couple small updates from the pr review
sbenedicadb Apr 21, 2022
e76001b
Merge pull request #174 from sbenedicadb/messaging
sbenedicadb Apr 21, 2022
204a49d
add some of the extensions back into android sample app
sbenedicadb Apr 21, 2022
fbd9193
-fix registerExtension calls
sbenedicadb Apr 21, 2022
ff7eb40
Merge pull request #175 from sbenedicadb/messaging
sbenedicadb Apr 22, 2022
5ad8b55
Merge pull request #139 from adobe/messaging
sbenedicadb Apr 22, 2022
4c6eeab
-updating messaging RN dependencies on optimize to use RN pod and pac…
sbenedicadb Apr 26, 2022
e5ced8c
-update pods
sbenedicadb May 3, 2022
d8d1272
-point to dev for services
sbenedicadb May 3, 2022
1125b2e
Merge pull request #176 from sbenedicadb/messaging
sbenedicadb May 3, 2022
26ffaf8
Merge branch 'staging' of https://github.com/adobe/aepsdk-react-nativ…
dsoffiantini May 11, 2022
b30d2b5
Getting dependencies from SNAPSHOT instead of using aar
cacheung May 19, 2022
9053474
remove aar
cacheung May 19, 2022
24b0d70
bug: fixes optimize sample app view
dsoffiantini May 20, 2022
8002436
Merge pull request #178 from cacheung/optimize
cacheung May 27, 2022
c306c87
feat: updates messaging snapshot
dsoffiantini May 31, 2022
f3e5dbb
Merge branch 'messaging' of https://github.com/adobe/aepsdk-react-nat…
dsoffiantini Jun 2, 2022
3eadfea
feat: adds react native wrapper for aep places
dsoffiantini May 26, 2022
a0e66f6
updates ios build
dsoffiantini Jun 2, 2022
270f398
ios fixes
dsoffiantini Jun 10, 2022
5d5ae0a
android fixes
dsoffiantini Jun 11, 2022
739fdcf
Add getUrlVariables API
cacheung Jun 12, 2022
659098f
Include lock files
cacheung Jun 13, 2022
88aae78
remove AEPMobileOptimize
cacheung Jun 13, 2022
30b13ef
update edgeIdentity version number for Sample App in package.json
cacheung Jun 13, 2022
a69b83b
android fixes
dsoffiantini Jun 11, 2022
f209aef
remove optimize aar
dsoffiantini Jun 15, 2022
5390546
docs: update optimize documentation
dsoffiantini Jun 15, 2022
1404f10
Update with review comments
cacheung Jun 16, 2022
e2781ed
Add rejected logic in getUrlVariable ts
cacheung Jun 16, 2022
3c3b408
Update package-lock and yarn.lock files
cacheung Jun 17, 2022
addfe60
Update lock files
cacheung Jun 17, 2022
41ff385
revert a text format
cacheung Jun 20, 2022
bdb04b9
fix: pr feedback
dsoffiantini Jun 20, 2022
3f73a64
fix: updates hoisting
dsoffiantini Jun 14, 2022
e3bc55e
fix:revert gradle versions
dsoffiantini Jun 22, 2022
743a007
fix: update copyrights
dsoffiantini Jun 22, 2022
60b54d5
Merge branch 'optimize' of https://github.com/adobe/aepsdk-react-nati…
dsoffiantini Jun 22, 2022
15aef6b
fix: bad merge on workspaces
dsoffiantini Jun 22, 2022
0be24c5
feat: change optimize to async await
dsoffiantini Jun 22, 2022
0fa3863
docs: update docs to be more accurate
dsoffiantini Jun 22, 2022
c2906fa
version: bump optimize to beta
dsoffiantini Jun 22, 2022
3daaef0
Merge pull request #182 from cacheung/edgeIdentity
cacheung Jun 22, 2022
456f127
version: bump messaging version, add readme badges
dsoffiantini Jun 23, 2022
c41f9ed
docs: update iam docs
dsoffiantini Jun 23, 2022
1e453f1
Merge pull request #184 from adobe/edgeIdentity
cacheung Jun 24, 2022
9e545a4
Merge branch 'main' into staging
cacheung Jun 28, 2022
ec543cf
remote extra file
cacheung Jun 28, 2022
45b581e
Merge pull request #186 from cacheung/edgeStaging
cacheung Jun 28, 2022
d132009
Merge pull request #185 from adobe/staging
cacheung Jun 28, 2022
5aef783
Update hoisting
cacheung Jun 29, 2022
7e33804
register consent in Sample app
cacheung Jun 29, 2022
97fb28b
add missing dependency for unit test
cacheung Jun 29, 2022
50f3fc0
Merge pull request #187 from cacheung/sampleAppfix
cacheung Jun 29, 2022
bef71cb
Merge branch 'staging' of https://github.com/adobe/aepsdk-react-nativ…
dsoffiantini Jun 27, 2022
12e79c1
Merge pull request #188 from adobe/staging
cacheung Jun 29, 2022
ac8d602
Merge branch 'staging' of https://github.com/adobe/aepsdk-react-nativ…
dsoffiantini Jun 29, 2022
5021564
Register missing extension in iOS sample app
cacheung Jun 29, 2022
f3b60a6
Merge pull request #189 from cacheung/addRegistration
cacheung Jun 29, 2022
9487fb9
Merge pull request #190 from adobe/staging
cacheung Jun 29, 2022
5890a82
version: revert messaging version
dsoffiantini Jul 18, 2022
97f9535
Merge branch 'staging' of https://github.com/adobe/aepsdk-react-nativ…
dsoffiantini Jul 18, 2022
4d556c1
fix: remove snapshot for android
dsoffiantini Jul 18, 2022
6a2f7dd
docs: update messaging docs
dsoffiantini Jul 18, 2022
90db378
docs: messaging docs formatting
dsoffiantini Jul 18, 2022
64bdeb2
Merge pull request #177 from adobe/optimize
dsoffiantini Jul 18, 2022
d0d3664
fix: :bug: register optimize in sample app
dsoffiantini Jul 18, 2022
e478cee
Merge pull request #191 from adobe/register-optimize
dsoffiantini Jul 18, 2022
17c98f4
fix: :bug: register edge consent on ios sample app
dsoffiantini Jul 18, 2022
74a0d9b
docs: add beta tag to ios sdk
dsoffiantini Jul 18, 2022
9814f94
Merge branch 'optimize' of https://github.com/adobe/aepsdk-react-nati…
dsoffiantini Jul 18, 2022
d4015da
Merge pull request #193 from adobe/register-edge-consent-ios
dsoffiantini Jul 18, 2022
0e67f95
Merge pull request #192 from adobe/optimize
dsoffiantini Jul 18, 2022
52afcad
fix: removes android warning using event emitter
dsoffiantini Jul 19, 2022
371e566
docs: missing comma
dsoffiantini Jul 20, 2022
9019125
build: circleci version
dsoffiantini Jul 20, 2022
6d328e4
Merge pull request #194 from adobe/android-event-emitter-warning
dsoffiantini Jul 20, 2022
0fd87b2
Merge pull request #197 from adobe/optimize
dsoffiantini Jul 20, 2022
d8b7336
feat: includes meta information in offer
dsoffiantini Jul 20, 2022
1e7cd11
Merge pull request #198 from adobe/add-meta-to-offer
dsoffiantini Jul 20, 2022
30ca0a0
Merge pull request #199 from adobe/optimize
dsoffiantini Jul 20, 2022
bfc8151
Merge pull request #195 from adobe/staging
dsoffiantini Jul 20, 2022
7c722f2
[android12] add android:exported attribute to core extension's manife…
yangyansong-adbe Jul 22, 2022
658dc50
[android12] add android:exported attribute to core extension's manife…
yangyansong-adbe Jul 22, 2022
eccc135
Merge branch 'staging' of https://github.com/adobe/aepsdk-react-nativ…
dsoffiantini Jul 26, 2022
a364546
build: updates xcode image in circleci
dsoffiantini Jul 28, 2022
91b9178
Merge pull request #205 from adobe/circleci-update-xcode
dsoffiantini Jul 29, 2022
85db6e9
feat: adds score to offer class, better type defs
dsoffiantini Jul 27, 2022
10905c7
Merge branch 'staging' of https://github.com/adobe/aepsdk-react-nativ…
dsoffiantini Aug 3, 2022
dc24660
Merge pull request #198 from adobe/add-meta-to-offer
dsoffiantini Jul 20, 2022
1663770
docs: update readme, copyrights
dsoffiantini Jul 26, 2022
155077a
Merge branch 'staging' of https://github.com/adobe/aepsdk-react-nativ…
dsoffiantini Aug 23, 2022
f0c6cdc
docs: :memo: adds license
dsoffiantini Aug 23, 2022
6330769
docs: :memo: update docs with examples, add places to root docs
dsoffiantini Aug 25, 2022
8b428ef
Merge pull request #180 from adobe/places
dsoffiantini Aug 25, 2022
7180e0d
feat: adds target rn wrapper
dsoffiantini May 11, 2022
0cc96c2
docs: update docs for target
dsoffiantini Jul 19, 2022
e9d68bf
docs: :memo: updates target docs with syntax
dsoffiantini Aug 25, 2022
f974a60
Merge branch 'staging' of https://github.com/adobe/aepsdk-react-nativ…
dsoffiantini Aug 26, 2022
c4931b4
fix: :art: pr feedback for adding score
dsoffiantini Aug 16, 2022
1e33698
Merge pull request #181 from adobe/target
dsoffiantini Aug 26, 2022
81baeb3
Merge pull request #206 from adobe/add-score-to-offer
dsoffiantini Aug 26, 2022
06a1484
Merge branch 'staging' of https://github.com/adobe/aepsdk-react-nativ…
dsoffiantini Aug 26, 2022
bfc82c7
Merge pull request #208 from adobe/optimize
dsoffiantini Aug 26, 2022
daa1896
Merge pull request #207 from adobe/staging
dsoffiantini Aug 30, 2022
62ba6a5
chore: :arrow_up: updates to latest versions of messaging
dsoffiantini Oct 24, 2022
6db968b
Merge branch 'staging' of https://github.com/adobe/aepsdk-react-nativ…
dsoffiantini Oct 24, 2022
50c6344
Merge pull request #192 from adobe/optimize
dsoffiantini Jul 18, 2022
f38e8df
Merge branch 'messaging-beta-upgrade' into messaging
dsoffiantini Oct 25, 2022
eeb5d0f
feat: :sparkles: adds support for campaign classic
dsoffiantini Sep 19, 2022
8658b28
build: :green_heart: change test commad for circleci
dsoffiantini Oct 26, 2022
a276aae
fix: :goal_net: updates podfile
dsoffiantini Oct 27, 2022
d19596c
Merge pull request #212 from adobe/messaging
dsoffiantini Oct 27, 2022
4674c08
Merge pull request #209 from adobe/campaign-classic
dsoffiantini Oct 27, 2022
1c81179
Merge pull request #213 from adobe/staging
dsoffiantini Oct 27, 2022
e33984e
chore: :bookmark: upgrades beta packages to release
dsoffiantini Nov 2, 2022
9e768bd
Merge pull request #214 from adobe/upgrade-betas
dsoffiantini Nov 2, 2022
76f2f5b
Merge pull request #215 from adobe/staging
dsoffiantini Nov 2, 2022
49d1445
Merge pull request #215 from adobe/staging
dsoffiantini Nov 2, 2022
ebcd281
Merge pull request #216 from adobe/campaign-classic-docs
dsoffiantini Nov 7, 2022
2cf8bc3
Merge pull request #217 from adobe/staging
dsoffiantini Nov 7, 2022
2e4f66c
Update Readme for Edge and Edge Identity. Replace all https://aep-sd…
cacheung Jan 17, 2023
a767d9c
Merge pull request #218 from cacheung/doc
cacheung Jan 17, 2023
eaa0c3f
Merge pull request #219 from adobe/main
cacheung Jan 18, 2023
4992e0d
fix: defer to root project sdk version gradle params (#223)
kevindice Jan 26, 2023
1b8e98b
Bump up package versions to adopt Android 2.0 (#226)
yangyansong-adbe Feb 23, 2023
e3e52b9
Update SDK installation steps for Android 2.0 integration (#232)
yangyansong-adbe Feb 23, 2023
1850130
Merge commit 'e3e52b97c48c3982077c68988803bb9694a902af' into userprofile
yangyansong-adbe Feb 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,16 @@ jobs:

build-sample-app-ios:
macos:
xcode: "12.0.1"
xcode: "13.0.0"

steps:
- checkout

# CircleCI puts xcode app in consistent path, RN looks for versioned path
- run:
name: Move xcode
command: cd /Applications && mv Xcode.app Xcode-13.0.app

- run:
name: Install latest NodeJS
command: brew install node
Expand All @@ -66,7 +71,7 @@ jobs:
command: sudo gem install cocoapods

- run:
name: intall pods
name: Install pods
command: yarn sampleapp:ios:pod:install

- run:
Expand Down
19 changes: 19 additions & 0 deletions PRERELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

# Using Pre-Release Extensions

If you would like to use Optimize or Messaging before they have been released, you can use the following steps to install them onto your app

## Steps to Install Optimize and Messaging

- Place Optimize and Messaging packages folder into app repo or directory of your choosing
- In your app repository, run
```javascript
npm install (path/to/optimize) (path/to/messaging)
```
to install the local version of the package to your app

### Android
- Inside android/app.gradle add the following into the two repositories blocks in the file `maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }`

### IOS
- Inside Podfile, add the following line inside the target block `pod "AEPMessaging", :git => "https://github.com/adobe/aepsdk-messaging-ios.git", :branch => "staging"`
175 changes: 103 additions & 72 deletions README.md

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion apps/AEPSampleApp/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ build/
.gradle
local.properties
*.iml
*.hprof

# node.js
#
Expand Down Expand Up @@ -55,5 +56,6 @@ buck-out/
# Bundle artifact
*.jsbundle

# CocoaPods
# Ruby / CocoaPods
/ios/Pods/
/vendor/bundle/
57 changes: 41 additions & 16 deletions apps/AEPSampleApp/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import * as React from 'react';
import { Button, View } from 'react-native';
import { createDrawerNavigator } from '@react-navigation/drawer';
import { NavigationContainer } from '@react-navigation/native';
import {Button, View} from 'react-native';
import {createDrawerNavigator} from '@react-navigation/drawer';
import {NavigationContainer} from '@react-navigation/native';
import OptimizeView from './extensions/OptimizeView';
import ProfileView from './extensions/ProfileView';
import MessagingView from './extensions/MessagingView';
import CoreView from './extensions/CoreView';
Expand All @@ -10,11 +11,14 @@ import ConsentView from './extensions/ConsentView';
import EdgeView from './extensions/EdgeView';
import AssuranceView from './extensions/AssuranceView';
import EdgeIdentityView from './extensions/EdgeIdentityView';
import { NavigationProps } from './types/props';
import TargetView from './extensions/TargetView';
import PlacesView from './extensions/PlacesView';
import {NavigationProps} from './types/props';
import CampaignClassicView from './extensions/CampaignClassicView';

function HomeScreen({ navigation }: NavigationProps) {
function HomeScreen({navigation}: NavigationProps) {
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
<Button
onPress={() => navigation.navigate('CoreView')}
title="Core/Lifecycle/Signal"
Expand All @@ -27,13 +31,18 @@ function HomeScreen({ navigation }: NavigationProps) {
onPress={() => navigation.navigate('IdentityView')}
title="Identity"
/>

<Button
onPress={() => navigation.navigate('MessagingView')}
title="Messaging" />
title="Messaging"
/>

<Button
onPress={() => navigation.navigate('EdgeView')}
title="Edge"
onPress={() => navigation.navigate('OptimizeView')}
title="Optimize"
/>

<Button onPress={() => navigation.navigate('EdgeView')} title="Edge" />
<Button
onPress={() => navigation.navigate('EdgeIdentityView')}
title="EdgeIdentity"
Expand All @@ -46,6 +55,18 @@ function HomeScreen({ navigation }: NavigationProps) {
onPress={() => navigation.navigate('AssuranceView')}
title="Assurance"
/>
<Button
onPress={() => navigation.navigate('TargetView')}
title="Target"
/>
<Button
onPress={() => navigation.navigate('PlacesView')}
title="Places"
/>
<Button
onPress={() => navigation.navigate('CampaignClassicView')}
title="Campaign Classic"
/>
</View>
);
}
Expand All @@ -58,14 +79,18 @@ export default function App() {
<Drawer.Navigator initialRouteName="Home">
<Drawer.Screen name="Home" component={HomeScreen} />
<Drawer.Screen name="CoreView" component={CoreView} />
<Drawer.Screen name="ProfileView" component={ProfileView} />
<Drawer.Screen name="IdentityView" component={IdentityView} />
<Drawer.Screen name="MessagingView" component={MessagingView} />
<Drawer.Screen name="AssuranceView" component={AssuranceView} />
<Drawer.Screen name="CampaignClassicView" component={CampaignClassicView} />
<Drawer.Screen name="ConsentView" component={ConsentView} />
<Drawer.Screen name="EdgeView" component={EdgeView} />
<Drawer.Screen name="EdgeIdentityView" component={EdgeIdentityView} />
<Drawer.Screen name="ConsentView" component={ConsentView} />
<Drawer.Screen name="AssuranceView" component={AssuranceView} />
</Drawer.Navigator >
</NavigationContainer >
<Drawer.Screen name="IdentityView" component={IdentityView} />
<Drawer.Screen name="MessagingView" component={MessagingView} />
<Drawer.Screen name="OptimizeView" component={OptimizeView} />
<Drawer.Screen name="PlacesView" component={PlacesView} />
<Drawer.Screen name="ProfileView" component={ProfileView} />
<Drawer.Screen name="TargetView" component={TargetView} />
</Drawer.Navigator>
</NavigationContainer>
);
}
2 changes: 1 addition & 1 deletion apps/AEPSampleApp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
How to run the sample app:

### Add your App Id:
In `ios/**/AppDelegate.m`, find the call to `configureWithAppId` and add your app id.
In `ios/**/AppDelegate.mm`, find the call to `configureWithAppId` and add your app id.

In `android/**/MainApplication.java`, find the call to `configureWithAppId` and add your app id.

Expand Down
116 changes: 107 additions & 9 deletions apps/AEPSampleApp/android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apply plugin: "com.android.application"

import com.android.build.OutputFile
import org.apache.tools.ant.taskdefs.condition.Os

/**
* The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
Expand Down Expand Up @@ -114,35 +115,111 @@ def jscFlavor = 'org.webkit:android-jsc:+'
/**
* Whether to enable the Hermes VM.
*
* This should be set on project.ext.react and mirrored here. If it is not set
* This should be set on project.ext.react and that value will be read here. If it is not set
* on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
* and the benefits of using Hermes will therefore be sharply reduced.
*/
def enableHermes = project.ext.react.get("enableHermes", false);

/**
* Architectures to build native code for.
*/
def reactNativeArchitectures() {
def value = project.getProperties().get("reactNativeArchitectures")
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
}

android {
ndkVersion rootProject.ext.ndkVersion

compileSdkVersion rootProject.ext.compileSdkVersion

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

defaultConfig {
applicationId "com.aepsampleapp"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()

if (isNewArchitectureEnabled()) {
// We configure the NDK build only if you decide to opt-in for the New Architecture.
externalNativeBuild {
ndkBuild {
arguments "APP_PLATFORM=android-21",
"APP_STL=c++_shared",
"NDK_TOOLCHAIN_VERSION=clang",
"GENERATED_SRC_DIR=$buildDir/generated/source",
"PROJECT_BUILD_DIR=$buildDir",
"REACT_ANDROID_DIR=$rootDir/../node_modules/react-native/ReactAndroid",
"REACT_ANDROID_BUILD_DIR=$rootDir/../node_modules/react-native/ReactAndroid/build"
cFlags "-Wall", "-Werror", "-fexceptions", "-frtti", "-DWITH_INSPECTOR=1"
cppFlags "-std=c++17"
// Make sure this target name is the same you specify inside the
// src/main/jni/Android.mk file for the `LOCAL_MODULE` variable.
targets "aepsampleapp_appmodules"

// Fix for windows limit on number of character in file paths and in command lines
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
arguments "NDK_APP_SHORT_COMMANDS=true"
}
}
}
if (!enableSeparateBuildPerCPUArchitecture) {
ndk {
abiFilters (*reactNativeArchitectures())
}
}
}
}

if (isNewArchitectureEnabled()) {
// We configure the NDK build only if you decide to opt-in for the New Architecture.
externalNativeBuild {
ndkBuild {
path "$projectDir/src/main/jni/Android.mk"
}
}
def reactAndroidProjectDir = project(':ReactAndroid').projectDir
def packageReactNdkDebugLibs = tasks.register("packageReactNdkDebugLibs", Copy) {
dependsOn(":ReactAndroid:packageReactNdkDebugLibsForBuck")
from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib")
into("$buildDir/react-ndk/exported")
}
def packageReactNdkReleaseLibs = tasks.register("packageReactNdkReleaseLibs", Copy) {
dependsOn(":ReactAndroid:packageReactNdkReleaseLibsForBuck")
from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib")
into("$buildDir/react-ndk/exported")
}
afterEvaluate {
// If you wish to add a custom TurboModule or component locally,
// you should uncomment this line.
// preBuild.dependsOn("generateCodegenArtifactsFromSchema")
preDebugBuild.dependsOn(packageReactNdkDebugLibs)
preReleaseBuild.dependsOn(packageReactNdkReleaseLibs)

// Due to a bug inside AGP, we have to explicitly set a dependency
// between configureNdkBuild* tasks and the preBuild tasks.
// This can be removed once this is solved: https://issuetracker.google.com/issues/207403732
configureNdkBuildRelease.dependsOn(preReleaseBuild)
configureNdkBuildDebug.dependsOn(preDebugBuild)
reactNativeArchitectures().each { architecture ->
tasks.findByName("configureNdkBuildDebug[${architecture}]")?.configure {
dependsOn("preDebugBuild")
}
tasks.findByName("configureNdkBuildRelease[${architecture}]")?.configure {
dependsOn("preReleaseBuild")
}
}
}
}

splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
include (*reactNativeArchitectures())
}
}
signingConfigs {
Expand Down Expand Up @@ -185,13 +262,14 @@ android {

dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])

//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+" // From node_modules

implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"

debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
exclude group:'com.facebook.fbjni'
exclude group:'com.facebook.fbjni'
}

debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
Expand All @@ -212,11 +290,31 @@ dependencies {
}
}

if (isNewArchitectureEnabled()) {
// If new architecture is enabled, we let you build RN from source
// Otherwise we fallback to a prebuilt .aar bundled in the NPM package.
// This will be applied to all the imported transtitive dependency.
configurations.all {
resolutionStrategy.dependencySubstitution {
substitute(module("com.facebook.react:react-native"))
.using(project(":ReactAndroid")).because("On New Architecture we're building React Native from source")
}
}
}

// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
from configurations.implementation
into 'libs'
}

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

def isNewArchitectureEnabled() {
// To opt-in for the New Architecture, you can either:
// - Set `newArchEnabled` to true inside the `gradle.properties` file
// - Invoke gradle with `-newArchEnabled=true`
// - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true`
return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
android:usesCleartextTraffic="true"
tools:targetApi="28"
tools:ignore="GoogleAppIndexingWarning">
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false" />
</application>
</manifest>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
Expand All @@ -19,6 +19,7 @@
import com.facebook.flipper.plugins.network.NetworkFlipperPlugin;
import com.facebook.flipper.plugins.react.ReactFlipperPlugin;
import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
import com.facebook.react.ReactInstanceEventListener;
import com.facebook.react.ReactInstanceManager;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.modules.network.NetworkingModule;
Expand Down Expand Up @@ -51,7 +52,7 @@ public void apply(OkHttpClient.Builder builder) {
ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
if (reactContext == null) {
reactInstanceManager.addReactInstanceEventListener(
new ReactInstanceManager.ReactInstanceEventListener() {
new ReactInstanceEventListener() {
@Override
public void onReactContextInitialized(ReactContext reactContext) {
reactInstanceManager.removeReactInstanceEventListener(this);
Expand Down
Loading