Skip to content

Commit

Permalink
feat: .net8
Browse files Browse the repository at this point in the history
  • Loading branch information
tuyen-vuduc committed Aug 27, 2024
1 parent e22d1ff commit 0fd5a22
Show file tree
Hide file tree
Showing 51 changed files with 292 additions and 552 deletions.
68 changes: 27 additions & 41 deletions .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,15 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set default Xamarin SDK versions
run: |
$VM_ASSETS/select-xamarin-sdk-v2.sh --mono=6.12 --ios=16.0.0.72
- name: Set default Xcode 14.1

- name: Install Xamarin.iOS package using Homebrew
run: |
XCODE_ROOT=/Applications/Xcode_14.1.0.app
echo "MD_APPLE_SDK_ROOT=$XCODE_ROOT" >> $GITHUB_ENV
sudo xcode-select -s $XCODE_ROOT
brew install --cask xamarin-ios
- name: Setup .NET Core SDK 6.0.403
- name: Setup .NET Core SDK 8.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.403'
dotnet-version: '8.0'

- name: Install ios workload
run: |
Expand All @@ -34,36 +29,27 @@ jobs:
run: |
sh build.sh --target=nuget --base-path=$PWD
- name: Publish with Dotnet CLI
env:
NUGET_PUSH_API_KEY: ${{ secrets.NUGET_PUSH_API_KEY }}
shell: bash
run: |
dotnet nuget push ./nugets/*.nupkg --api-key "$NUGET_PUSH_API_KEY" --source https://api.nuget.org/v3/index.json --skip-duplicate
- name: Publish NuGet and symbols
id: nuget-push
uses: edumserrano/[email protected]
with:
api-key: '${{ secrets.NUGET_PUSH_API_KEY }}' # this example is using GitHub secrets to pass the API key
working-directory: 'nugets'

# publish:
# runs-on: macos-latest
# steps:
# - name: Publish NuGet and symbols
# id: nuget-push
# uses: edumserrano/[email protected]
# with:
# api-key: '${{ secrets.NUGET_PUSH_API_KEY }}' # this example is using GitHub secrets to pass the API key
# working-directory: 'nugets'
# # The next step is using powershell to parse the action's output but you can use whatever you prefer.
# # Note that in order to read the step outputs the action step must have an id.
# - name: Log output
# if: steps.nuget-push.conclusion != 'skipped' && always() # run regardless if the previous step failed or not, just as long as it wasn't skipped
# shell: pwsh
# run: |
# $pushResult = '${{ steps.nuget-push.outputs.push-result }}' | ConvertFrom-Json
# $pushResultAsJsonIndented = ConvertTo-Json $pushResult
# Write-Output $pushResultAsJsonIndented # outputs the result of the nuget push operation as an indented JSON string
# Write-Output '${{ steps.nuget-push.outputs.status }}' # outputs the overall status of the nuget push action
# The next step is using powershell to parse the action's output but you can use whatever you prefer.
# Note that in order to read the step outputs the action step must have an id.
- name: Log output
if: steps.nuget-push.conclusion != 'skipped' && always() # run regardless if the previous step failed or not, just as long as it wasn't skipped
shell: pwsh
run: |
$pushResult = '${{ steps.nuget-push.outputs.push-result }}' | ConvertFrom-Json
$pushResultAsJsonIndented = ConvertTo-Json $pushResult
Write-Output $pushResultAsJsonIndented # outputs the result of the nuget push operation as an indented JSON string
Write-Output '${{ steps.nuget-push.outputs.status }}' # outputs the overall status of the nuget push action
# # iterates over all list of packages and outputs the data from the nuget push operation for each
# foreach($package in $pushResult.packages) {
# Write-Output "$($package.status)" # outputs the status of the nuget push operation
# Write-Output "$($package.package)" # outputs the NuGet package name that was pushed
# Write-Output "$($package.symbols)" # outputs the symbols package name that was pushed
# }
# iterates over all list of packages and outputs the data from the nuget push operation for each
foreach($package in $pushResult.packages) {
Write-Output "$($package.status)" # outputs the status of the nuget push operation
Write-Output "$($package.package)" # outputs the NuGet package name that was pushed
Write-Output "$($package.symbols)" # outputs the symbols package name that was pushed
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ A Xamarin.Android binding library for [Braintree DropIn iOS](https://cocoapods.o
## Installation

```
dotnet add package BraintreeDropIn.iOS --version 9.7.2
dotnet add package Xamarin.Swift --version 1.0.11
dotnet add package BraintreeDropIn.iOS --version 9.7.2.3
dotnet add package Xamarin.Swift --version 1.2.0
```

## Usage
Expand Down
12 changes: 6 additions & 6 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{
"name": "BraintreeDropIn",
"version": "9.7.0",
"nugetVersion": "9.7.0.2",
"nugetVersion": "9.7.0.24",
"libraryType": "static",
"packageType": "pod",
"dependencyOnly": false,
Expand All @@ -46,7 +46,7 @@
{
"name": "Braintree",
"version": "5.12.0",
"nugetVersion": "5.12.0.2",
"nugetVersion": "5.12.0.24",
"libraryType": "dynamic",
"packageType": "spm",
"dependencyOnly": false,
Expand Down Expand Up @@ -149,7 +149,7 @@
{
"name": "PayPalCheckout",
"version": "0.100.0",
"nugetVersion": "0.100.0.1",
"nugetVersion": "0.100.0.24",
"packageType": "pod",
"dependencyOnly": false,
"targets": [
Expand All @@ -165,7 +165,7 @@
{
"name": "CardinalMobile",
"version": "2.2.5.3",
"nugetVersion": "2.2.5.301",
"nugetVersion": "2.2.5.324",
"packageType": "pod",
"dependencyOnly": false,
"targets": [
Expand All @@ -179,7 +179,7 @@
{
"name": "KountDataCollector",
"version": "4.1.5",
"nugetVersion": "4.1.5.1",
"nugetVersion": "4.1.5.24",
"packageType": "pod",
"dependencyOnly": false,
"targets": [
Expand All @@ -193,7 +193,7 @@
{
"name": "PPRiskMagnes",
"version": "5.4.0",
"nugetVersion": "5.4.0.1",
"nugetVersion": "5.4.0.24",
"packageType": "pod",
"dependencyOnly": false,
"targets": [
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"sdk":
{
"version": "6.0.403",
"version": "8.0.100",
"rollForward": "latestMinor"
},
"msbuild-sdks":
Expand Down
42 changes: 0 additions & 42 deletions samples/DropInQS/AppDelegate.cs

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
154 changes: 0 additions & 154 deletions samples/DropInQS/DropInQS.csproj

This file was deleted.

Loading

0 comments on commit 0fd5a22

Please sign in to comment.