forked from Diversido/Xamarin.Bindings.StfalconImageViewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_android.sh
19 lines (15 loc) · 896 Bytes
/
build_android.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# build Android library
cd StfalconImageViewer
gradle assembleRelease
cd ..
# copy libraries to the Xamarin project
cp StfalconImageViewer/imageviewer/build/outputs/aar/imageviewer-release.aar Xamarin.Bindings.StfalconImageViewer/Jars/imageviewer-release.aar
# build Xamarin Bindings
nuget restore
msbuild /t:Rebuild /p:Configuration=Release Xamarin.Bindings.StfalconImageViewer/Xamarin.Bindings.StfalconImageViewer.csproj
mkdir -p _builds/imageviewer
cp Xamarin.Bindings.StfalconImageViewer/bin/Release/ImageViewer.dll _builds/imageviewer/
mv Xamarin.Bindings.StfalconImageViewer/bin/Release/Xamarin.Bindings.StfalconImageViewer.*.nupkg Xamarin.Bindings.StfalconImageViewer/bin/Release/Xamarin.Bindings.StfalconImageViewer.nupkg
cp Xamarin.Bindings.StfalconImageViewer/bin/Release/*.nupkg _builds/nugets/
cp Xamarin.Bindings.StfalconImageViewer/bin/Release/*.nuspec _builds/nugets/