Skip to content

Commit

Permalink
Merge pull request #119 from edgiardina/target-android-34
Browse files Browse the repository at this point in the history
Target Android 34
  • Loading branch information
edgiardina authored Jan 29, 2024
2 parents 4d3371e + 6a77e79 commit 85c331f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
run: dotnet restore IfpaMaui.csproj

- name: Build MAUI Android
run: dotnet build IfpaMaui.csproj -c Debug -f net8.0-android --no-restore
run: dotnet build IfpaMaui.csproj -c Debug -f net8.0-android34.0 --no-restore

# MAUI iOS Build
build-ios:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,21 @@ jobs:
run: dotnet restore IfpaMaui.csproj

- name: Build MAUI Android
run: dotnet publish IfpaMaui.csproj -c Release -f net8.0-android -p:Version=$Env:VERSION -p:ApplicationDisplayVersion=$Env:VERSION -p:ApplicationVersion=${{ env.VERSION_NUMBER_WITH_OFFSET }} --no-restore -p:AndroidKeyStore=True /p:AndroidSigningKeyStore=ifpa-keystore.jks /p:AndroidSigningKeyAlias=upload /p:AndroidSigningKeyPass="${{ secrets.IFPA_ANDROID_KEYSTORE_PASSWORD }}" /p:AndroidSigningStorePass="${{ secrets.IFPA_ANDROID_KEYSTORE_PASSWORD }}" --no-restore
run: dotnet publish IfpaMaui.csproj -c Release -f net8.0-android34.0 -p:Version=$Env:VERSION -p:ApplicationDisplayVersion=$Env:VERSION -p:ApplicationVersion=${{ env.VERSION_NUMBER_WITH_OFFSET }} --no-restore -p:AndroidKeyStore=True /p:AndroidSigningKeyStore=ifpa-keystore.jks /p:AndroidSigningKeyAlias=upload /p:AndroidSigningKeyPass="${{ secrets.IFPA_ANDROID_KEYSTORE_PASSWORD }}" /p:AndroidSigningStorePass="${{ secrets.IFPA_ANDROID_KEYSTORE_PASSWORD }}" --no-restore

- name: Upload Android Artifact
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
with:
if-no-files-found: error
name: ifpamaui-android-signed-build
path: bin/Release/net8.0-android/publish/com.edgiardina.ifpa-Signed.aab
path: bin/Release/net8.0-android34.0/publish/com.edgiardina.ifpa-Signed.aab

- name: Deploy to Google Play (Production)
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
packageName: com.edgiardina.ifpa
releaseFiles: bin/Release/net8.0-android/publish/com.edgiardina.ifpa-Signed.aab
releaseFiles: bin/Release/net8.0-android34.0/publish/com.edgiardina.ifpa-Signed.aab
releaseName: ${{ env.VERSION }}
track: production

Expand Down
2 changes: 1 addition & 1 deletion IfpaMaui.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0-ios;net8.0-maccatalyst;net8.0-android</TargetFrameworks>
<TargetFrameworks>net8.0-ios;net8.0-maccatalyst;net8.0-android34.0</TargetFrameworks>
<!--<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks>-->
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
<!-- <TargetFrameworks>$(TargetFrameworks);net6.0-tizen</TargetFrameworks> -->
Expand Down

0 comments on commit 85c331f

Please sign in to comment.