Skip to content
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

fixed android ci #35

Merged
merged 1 commit into from
Apr 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion azure-pipeline-public-nuget-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ steps:
displayName: "Xamarin.RevenueCat.Android.Extensions: Build Release Nuget"

- bash: |
./build-nugets.sh
./copy-nugets.sh
displayName: "Copy nugets to nugetoutput folder"

- bash: |
Expand Down
21 changes: 4 additions & 17 deletions build-nugets.sh
Original file line number Diff line number Diff line change
@@ -1,26 +1,13 @@
#!/bin/bash
projects=" \
Xamarin.RevenueCat.Android.Core.Strings \
Xamarin.RevenueCat.Android.Core.Utils \
Xamarin.RevenueCat.Android.Core.Public \
Xamarin.RevenueCat.Android.Core.Common \
Xamarin.RevenueCat.Android.Core.Feature.Subscriber.Attributes \
Xamarin.RevenueCat.Android.Core.Feature.Identity \
Xamarin.RevenueCat.Android.Store.Google \
Xamarin.RevenueCat.Android \
Xamarin.RevenueCat.Android.Store.Amazon \
Xamarin.RevenueCat.Android.Extensions"
projects=$(cat ./projects.txt)

mkdir -p nugetoutput
rm nugetoutput/*.nupkg

for project in $projects; do
cd $project
for project in ${projects}; do
cd ${project}
rm nugetoutput/*.nupkg
msbuild /p:Configuration=Release /t:Clean
msbuild /p:Configuration=Release /t:Restore
msbuild /p:Configuration=Release /t:Build
msbuild /p:Configuration=Release /t:Pack
cp nugetoutput/*.nupkg ../nugetoutput/
cd ..
done
./copy-nugets.sh
9 changes: 9 additions & 0 deletions copy-nugets.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
projects=$(cat ./projects.txt)

mkdir -p nugetoutput
rm nugetoutput/*.nupkg

for project in ${projects}; do
cp ${project}/nugetoutput/*.nupkg ./nugetoutput/
done
10 changes: 10 additions & 0 deletions projects.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Xamarin.RevenueCat.Android.Core.Strings
Xamarin.RevenueCat.Android.Core.Utils
Xamarin.RevenueCat.Android.Core.Public
Xamarin.RevenueCat.Android.Core.Common
Xamarin.RevenueCat.Android.Core.Feature.Subscriber.Attributes
Xamarin.RevenueCat.Android.Core.Feature.Identity
Xamarin.RevenueCat.Android.Store.Google
Xamarin.RevenueCat.Android
Xamarin.RevenueCat.Android.Store.Amazon
Xamarin.RevenueCat.Android.Extensions