-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add .vscode dir to .gitignore * Bump to Android SDK 17.0.3, cross-platform 18.0.0 * Checkpoint: android sdk 17 building * Bump Android SDK to 17.1.0, add bindings for live-update and feature-flag modules * Wire up push notification status listener on Android * Revert UseProjectReferences setting in MauiSample.csproj * Update to latest SDK version * Update iOS binding Remove ExtededActions module Update sample app * Remove extendedActions leftovers * Add FIXME * Fix build * Remove leftover extendedActions && FIXME * Update to .NET7.0 * Use Airship-Xcode15.zip && use xcode 15 * Update dotnet workloads * Update androidbinderator version * Fix androidx lifecycle version warning * Revert supportedOSPlateform version * Bump Android SDK to 17.4.1 * Update Codeowners list * Fix MC android target, clean up extended actions refs * Fix crash in iOS MessageViewHandler * Update build props and binderator config for Android 17.4.1 * Minor cleanups * Add migration guide * Update changelog * Bump to latest SDKs * Update release workflow --------- Co-authored-by: Josh Yaganeh <[email protected]>
- Loading branch information
Showing
70 changed files
with
5,206 additions
and
5,643 deletions.
There are no files selected for viewing
This file contains 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,2 +1,2 @@ | ||
# https://help.github.com/en/articles/about-code-owners | ||
* @BrianBatchelder @marc-scig @crow @rlepinski | ||
* @crow @rlepinski @khmMouna @oristanovic @Apekka @Ulrico972 @jyaganeh |
This file contains 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 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 |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
- "[0-9]+.[0-9]+.[0-9]+*" | ||
|
||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_14.3.1.app | ||
DEVELOPER_DIR: /Applications/Xcode_15.0.app | ||
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | ||
DOTNET_NOLOGO: 1 | ||
|
@@ -20,42 +20,46 @@ jobs: | |
|
||
- name: Get Version | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | ||
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT | ||
|
||
- name: Verify Version | ||
run: | | ||
VERSION=${{ steps.get_version.outputs.VERSION }} | ||
PLUGIN_VERSION=$(./gradlew -q getVersion) | ||
if [[ $PLUGIN_VERSION = $VERSION ]]; then exit 0 ; else exit 1; fi | ||
- name: Get Release Notes | ||
- name: Get the release notes | ||
id: get_release_notes | ||
env: | ||
VERSION: ${{ steps.get_version.outputs.VERSION }} | ||
run: | | ||
VERSION=${{ steps.get_version.outputs.VERSION }} | ||
NOTES="$(awk "/## Version $VERSION/{flag=1;next}/## Version/{flag=0}flag" CHANGELOG.md)" | ||
NOTES="${NOTES//'%'/'%25'}" | ||
NOTES="${NOTES//$'\n'/'%0A'}" | ||
NOTES="${NOTES//$'\r'/'%0D'}" | ||
echo ::set-output name=NOTES::"$NOTES" | ||
delimiter="$(openssl rand -hex 8)" | ||
{ | ||
echo "NOTES<<${delimiter}" | ||
awk "/## Version $VERSION/{flag=1;next}/## Version/{flag=0}flag" CHANGELOG.md | ||
echo ${delimiter} | ||
} >> $GITHUB_OUTPUT | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
|
||
# - name: Setup GCP | ||
# uses: google-github-actions/setup-gcloud@daadedc81d5f9d3c06d2c92f49202a3cc2b919ba # v0.2.1 | ||
# with: | ||
# version: '351.0.0' | ||
# service_account_email: ${{ secrets.GCP_SA_EMAIL }} | ||
# service_account_key: ${{ secrets.GCP_SA_KEY }} | ||
- name: Setup GCP Auth | ||
uses: google-github-actions/auth@v1 | ||
with: | ||
credentials_json: ${{ secrets.GCP_SA_KEY }} | ||
|
||
# Install gcloud, `setup-gcloud` automatically picks up authentication from `auth`. | ||
- name: Set up Google Cloud SDK | ||
uses: google-github-actions/setup-gcloud@v1 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '11' | ||
|
||
- name: Set up .NET 6.0 | ||
- name: Set up .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
global-json-file: global.json | ||
|
@@ -64,25 +68,19 @@ jobs: | |
run: | | ||
dotnet workload install android ios maui-android maui-ios maui-maccatalyst | ||
# - name: Install doc dependencies | ||
# run: | | ||
# brew install doxygen | ||
# brew install graphviz | ||
- name: Install doc dependencies | ||
run: | | ||
brew install doxygen | ||
brew install graphviz | ||
- name: Build | ||
#run: ./gradlew build pack packageDocs | ||
run: ./gradlew build pack | ||
run: ./gradlew build pack packageDocs | ||
|
||
- name: Publish Nugets | ||
env: | ||
NUGET_PRODUCTION_API_KEY: ${{ secrets.NUGET_PRODUCTION_API_KEY }} | ||
run: ./gradlew publishToProduction | ||
|
||
# - name: Upload Docs | ||
# run: | | ||
# VERSION=${{ steps.get_version.outputs.VERSION }} | ||
# gsutil cp docs/build/$VERSION.tar.gz gs://ua-web-ci-prod-docs-transfer/libraries/maui/$VERSION.tar.gz | ||
|
||
- name: Create Github Release | ||
uses: actions/[email protected] | ||
env: | ||
|
@@ -93,3 +91,9 @@ jobs: | |
body: ${{ steps.get_release_notes.outputs.NOTES }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload Docs | ||
run: | | ||
VERSION=${{ steps.get_version.outputs.VERSION }} | ||
gsutil cp docs/build/$VERSION.tar.gz gs://ua-web-ci-prod-docs-transfer/libraries/maui/$VERSION.tar.gz | ||
This file contains 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 |
---|---|---|
|
@@ -243,3 +243,6 @@ binderator/output | |
|
||
# Idea folder | ||
.idea | ||
|
||
# VSCode folder | ||
.vscode |
This file was deleted.
Oops, something went wrong.
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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 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 @@ | ||
github "urbanairship/ios-library" == 16.12.3 | ||
github "urbanairship/ios-library" == 17.6.0 |
This file contains 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 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,68 @@ | ||
# Migration Guide | ||
|
||
## 17.x to 18.x | ||
|
||
### .NET Version | ||
|
||
This version of the plugin now requires .NET 7.0 (`net7.0-android` and `net7.0-ios`) as the min target framework. | ||
|
||
### Minimum iOS Version | ||
|
||
This version of the plugin now requires iOS 14+ as the min deployment target and Xcode 14.3+. | ||
|
||
### iOS Log Levels | ||
|
||
The `TRACE` level has been renamed to `VERBOSE`, for consistency with other platforms/frameworks. | ||
|
||
### API Changes | ||
|
||
#### Methods | ||
|
||
| 17.x | 18.x | | ||
|------|------| | ||
| `Airship.Instance.NamedUser = "some named user ID";` | `Airship.Instance.IdentifyContact("some named user ID");` | | ||
| `Airship.Instance.NamedUser = null;` | `Airship.Instance.ResetContact();` | | ||
| `var namedUser = Airship.Instance.NamedUser;` | `Airship.Instance.GetNamedUser(namedUser => { ... });` | | ||
| `Airship.Instance.EditNamedUserTagGroups();` | `Airship.Instance.EditContactTagGroups();` | | ||
| `Airship.Instance.EditNamedUserAttributes();` | `Airship.Instance.EditContactAttributes();` | | ||
| `var messages = Airship.Instance.InboxMessages;` | `Airship.Instance.InboxMessages(messages => { ... });` | | ||
| `var count = Airship.Instance.MessageCenterUnreadCount;` | `Airship.Instance.MessageCenterUnreadCount(count => { ... });` | | ||
| `var count = Airship.Instance.MessageCenterCount;` | `Airship.Instance.MessageCenterCount(count => { ... });` | | ||
|
||
### API Additions | ||
|
||
#### Push notification status Listener | ||
|
||
```csharp | ||
Airship.Instance.OnPushNotificationStatusUpdate -= OnPushNotificationStatusEvent; | ||
|
||
private void OnPushNotificationStatusEvent(object sender, PushNotificationStatusEventArgs e) => | ||
{ | ||
bool isUserNotificationsEnabled = e.IsUserNotificationsEnabled; | ||
// ... | ||
}; | ||
``` | ||
|
||
#### Editing Channel Subscription Lists | ||
|
||
```csharp | ||
Airship.Instance.EditChannelSubscriptionLists() | ||
.subscribe("food"); | ||
.unsubscribe("sports"); | ||
.apply(); | ||
``` | ||
|
||
#### Editing Contact Subscription Lists | ||
|
||
```csharp | ||
Airship.Instance.EditContactSubscriptionLists() | ||
.subscribe("food", "app") | ||
.unsubscribe("sports", "sms") | ||
.apply() | ||
``` | ||
|
||
### API Removals | ||
|
||
#### `Airship.Instance.OnChannelUpdate` | ||
|
||
Replace with either `OnChannelCreation` or `OnPushNotificationStatusUpdate`, depending on usage. |
Oops, something went wrong.