-
Notifications
You must be signed in to change notification settings - Fork 0
SFMC Integration [sc-194354] #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
7edbcc9
sc-135665: SFMC IIAM setup code snippet
chrissiewasabi 7c4d41c
Merge branch 'main' into integration/salesforce
chayelheinsen f056e74
updated sf sdk
chayelheinsen 1de8b3a
Add settings page
chayelheinsen 9ea473d
updates from copilot review
chayelheinsen 93eb4bf
Fix PendingIntent missing FLAG_IMMUTABLE for Android 12+ compatibility
chayelheinsen a765946
setup override for SFMC
chayelheinsen 60122cd
Setup release via firebase
chayelheinsen e26a168
Fix SFMC bug
chayelheinsen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,82 @@ | ||
| # android-test-apps | ||
| # android-test-apps | ||
|
|
||
| ## Setup | ||
|
|
||
| ### Prerequisites | ||
| - Android Studio | ||
| - JDK 17+ | ||
| - Firebase CLI (`brew install firebase-cli`) | ||
|
|
||
| ### local.properties | ||
|
|
||
| This file is git-ignored and must be created manually at the project root. It holds all secrets and local paths: | ||
|
|
||
| ```properties | ||
| sdk.dir=/path/to/your/Android/sdk | ||
|
|
||
| # Movable Ink | ||
| MOVABLE_INK_SDK_API_KEY=your_value | ||
|
|
||
| # Salesforce Marketing Cloud | ||
| MC_ACCESS_TOKEN=your_value | ||
| MC_APP_ID=your_value | ||
| FCM_SENDER_ID=your_value | ||
| MARKETING_CLOUD_URL=your_value | ||
|
|
||
| # Release signing | ||
| STORE_FILE=movableink-release.jks | ||
| STORE_PASSWORD=your_password | ||
| KEY_ALIAS=movableink | ||
| KEY_PASSWORD=your_password | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## Firebase App Distribution Release | ||
|
|
||
| ### First-time setup | ||
|
|
||
| **1. Generate a keystore** (only needed once): | ||
| ```bash | ||
| keytool -genkeypair -v \ | ||
| -keystore app/movableink-release.jks \ | ||
| -alias movableink \ | ||
| -keyalg RSA \ | ||
| -keysize 2048 \ | ||
| -validity 10000 \ | ||
| -storepass YOUR_PASSWORD \ | ||
| -keypass YOUR_PASSWORD \ | ||
| -dname "CN=Movable Ink, OU=Engineering, O=Movable Ink, L=New York, ST=NY, C=US" | ||
| ``` | ||
|
|
||
| Add the credentials to `local.properties` as shown above. Never commit the `.jks` file or `local.properties`. | ||
|
|
||
| **2. Get a Firebase CI token** (only needed once): | ||
| ```bash | ||
| firebase login:ci | ||
| ``` | ||
|
|
||
| Sign in with your Google account in the browser. Copy the token printed in the terminal and export it: | ||
| ```bash | ||
| export FIREBASE_TOKEN=your_token_here | ||
| ``` | ||
|
|
||
| You can add this to your shell profile (`~/.zshrc` or `~/.bashrc`) to avoid setting it each time. | ||
|
|
||
| --- | ||
|
|
||
| ### Releasing a build | ||
|
|
||
| **1. Update the release notes** at `app/release-notes.txt` with what's changed. | ||
|
|
||
| **2. Update `versionCode`** in `gradle.properties` (increment by 1 each release): | ||
| ```properties | ||
| versionCode=5 | ||
| ``` | ||
|
|
||
| **3. Build and upload** from the project root: | ||
| ```bash | ||
| ./gradlew assembleRelease appDistributionUploadRelease | ||
| ``` | ||
|
|
||
| The APK will be built, signed, and uploaded to Firebase App Distribution automatically. Testers with access via the distribution link will be notified. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| SFMC Integration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FullScreenWebViewActivityis started fromWebViewUtility, but it isn’t declared in the manifest. Add an<activity>entry for it (and ensure exported/launchMode settings are correct for your use case), otherwiseActivityNotFoundExceptionwill occur at runtime.