diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1230149..8b13789 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,6 +1 @@ -version: 2 -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "daily" + diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5f0b0b5..e048ea1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,36 +1,48 @@ -name: Build and Test +name: Build and Deploy JobClick to Google Play on: workflow_dispatch: - push: - branches: [main] - pull_request: - branches: [main] + inputs: + track: + description: 'Play Store track to deploy (internal, alpha, beta, production)' + required: true + default: 'internal' jobs: - build: - name: Build Package - runs-on: windows-2022 - - env: - Solution_Path: Sample\Auth0MauiApp.sln + build-deploy: + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - - name: Install Java - uses: actions/setup-java@v4 - with: - distribution: 'temurin' - java-version: '11' - - - name: Install .NET Core - uses: actions/setup-dotnet@v4 - with: - dotnet-version: "8" - - - name: Install .NET Workloads - run: dotnet workload install maui - - - name: Build - run: dotnet build $env:Solution_Path --configuration Release + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.x' + + - name: Decode keystore + run: | + mkdir -p $HOME/.keystore + echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -d > $HOME/.keystore/jobclick.keystore + + - name: Restore dependencies + run: dotnet restore + + - name: Build Android AAB + run: dotnet publish JobClick.csproj -f net8.0-android -c Release -o publish \ + /p:AndroidKeyStore=true \ + /p:AndroidSigningKeyStore=$HOME/.keystore/jobclick.keystore \ + /p:AndroidSigningKeyAlias=${{ secrets.KEY_ALIAS }} \ + /p:AndroidSigningKeyPass=${{ secrets.KEY_PASS }} \ + /p:AndroidSigningStorePass=${{ secrets.STORE_PASS }} \ + /p:AndroidPackageFormat=aab + + - name: Upload to Google Play + uses: r0adkll/upload-google-play@v1 + with: + serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_KEY_JSON }} + packageName: com.jobclick.app + releaseFiles: publish/*.aab + track: ${{ github.event.inputs.track }} + status: draft diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index b03c649..fd885fb 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -8,7 +8,7 @@ on: - synchronize push: branches: - - main + - main_temp schedule: - cron: "30 0 1,15 * *" diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml index eb275f1..5190df1 100644 --- a/.github/workflows/snyk.yml +++ b/.github/workflows/snyk.yml @@ -8,7 +8,7 @@ on: - synchronize push: branches: - - main + - main_temp schedule: - cron: "30 0 1,15 * *" diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json new file mode 100644 index 0000000..6b61141 --- /dev/null +++ b/.vs/VSWorkspaceState.json @@ -0,0 +1,6 @@ +{ + "ExpandedNodes": [ + "" + ], + "PreviewInSolutionExplorer": false +} \ No newline at end of file diff --git a/.vs/auth0-mobile-sample/v17/.wsuo b/.vs/auth0-mobile-sample/v17/.wsuo new file mode 100644 index 0000000..0f02de1 Binary files /dev/null and b/.vs/auth0-mobile-sample/v17/.wsuo differ diff --git a/.vs/auth0-mobile-sample/v17/DocumentLayout.json b/.vs/auth0-mobile-sample/v17/DocumentLayout.json new file mode 100644 index 0000000..0618326 --- /dev/null +++ b/.vs/auth0-mobile-sample/v17/DocumentLayout.json @@ -0,0 +1,12 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\SourceCode\\auth0-mobile-sample\\", + "Documents": [], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [] + } + ] +} \ No newline at end of file diff --git a/Sample/Auth0MauiApp/App.xaml b/Sample/Auth0MauiApp/App.xaml index f64523b..3d6d3f2 100644 --- a/Sample/Auth0MauiApp/App.xaml +++ b/Sample/Auth0MauiApp/App.xaml @@ -1,8 +1,8 @@  + xmlns:local="clr-namespace:JobClick" + x:Class="JobClick.App"> diff --git a/Sample/Auth0MauiApp/App.xaml.cs b/Sample/Auth0MauiApp/App.xaml.cs index bcfe63f..c1f76d4 100644 --- a/Sample/Auth0MauiApp/App.xaml.cs +++ b/Sample/Auth0MauiApp/App.xaml.cs @@ -1,4 +1,4 @@ -namespace Auth0MauiApp +namespace JobClick { public partial class App : Application { diff --git a/Sample/Auth0MauiApp/AppShell.xaml b/Sample/Auth0MauiApp/AppShell.xaml index 0e4b183..8445299 100644 --- a/Sample/Auth0MauiApp/AppShell.xaml +++ b/Sample/Auth0MauiApp/AppShell.xaml @@ -1,9 +1,9 @@ - - - net7.0-android;net7.0-ios;net7.0-maccatalyst - $(TargetFrameworks);net7.0-windows10.0.19041.0 - Exe - Auth0MauiApp - true - true - enable - - - Auth0MauiApp - - - com.companyname.Auth0MauiApp - 8ac2519e-82a6-4584-a7c2-fd8e56cbd40d - - - 1.0 - 1 - - 11.0 - 13.1 - 21.0 - 10.0.17763.0 - 10.0.17763.0 - - 1.3.230502000 - - en - - - - false - - - false - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + net9.0-android35.0;net9.0-ios;net9.0-maccatalyst;net9.0-windows10.0.19041.0 + Exe + JobClick + true + true + enable + + + JobClick + + + com.jobclick.app + 8ac2519e-82a6-4584-a7c2-fd8e56cbd40d + + + 1.0 + 1 + + 11.0 + 13.1 + 21.0 + 10.0.17763.0 + 10.0.17763.0 + + 1.3.230502000 + + en + + + + + aab + + + true + jobclick.keystore + jobclick + your_key_password + your_keystore_password + + + + false + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Sample/Auth0MauiApp/MainPage.xaml b/Sample/Auth0MauiApp/MainPage.xaml index 55facdd..f6aebfc 100644 --- a/Sample/Auth0MauiApp/MainPage.xaml +++ b/Sample/Auth0MauiApp/MainPage.xaml @@ -1,7 +1,7 @@  + x:Class="JobClick.MainPage"> + xmlns:local="using:JobClick.WinUI"> diff --git a/Sample/Auth0MauiApp/Platforms/Windows/App.xaml.cs b/Sample/Auth0MauiApp/Platforms/Windows/App.xaml.cs index 658544e..79430aa 100644 --- a/Sample/Auth0MauiApp/Platforms/Windows/App.xaml.cs +++ b/Sample/Auth0MauiApp/Platforms/Windows/App.xaml.cs @@ -11,7 +11,7 @@ // To learn more about WinUI, the WinUI project structure, // and more about our project templates, see: http://aka.ms/winui-project-info. -namespace Auth0MauiApp.WinUI +namespace JobClick.WinUI { /// /// Provides application-specific behavior to supplement the default Application class. diff --git a/Sample/Auth0MauiApp/Platforms/Windows/app.manifest b/Sample/Auth0MauiApp/Platforms/Windows/app.manifest index 12b6c7c..4803df9 100644 --- a/Sample/Auth0MauiApp/Platforms/Windows/app.manifest +++ b/Sample/Auth0MauiApp/Platforms/Windows/app.manifest @@ -1,6 +1,6 @@ - + diff --git a/Sample/Auth0MauiApp/Platforms/iOS/AppDelegate.cs b/Sample/Auth0MauiApp/Platforms/iOS/AppDelegate.cs index b90045a..7237437 100644 --- a/Sample/Auth0MauiApp/Platforms/iOS/AppDelegate.cs +++ b/Sample/Auth0MauiApp/Platforms/iOS/AppDelegate.cs @@ -1,6 +1,6 @@ using Foundation; -namespace Auth0MauiApp +namespace JobClick { [Register("AppDelegate")] public class AppDelegate : MauiUIApplicationDelegate diff --git a/Sample/Auth0MauiApp/Platforms/iOS/Program.cs b/Sample/Auth0MauiApp/Platforms/iOS/Program.cs index 29f31c7..8689590 100644 --- a/Sample/Auth0MauiApp/Platforms/iOS/Program.cs +++ b/Sample/Auth0MauiApp/Platforms/iOS/Program.cs @@ -1,7 +1,7 @@ using ObjCRuntime; using UIKit; -namespace Auth0MauiApp +namespace JobClick { public class Program { diff --git a/Sample/Auth0MauiApp.sln b/Sample/JobClick.sln similarity index 86% rename from Sample/Auth0MauiApp.sln rename to Sample/JobClick.sln index fbf6358..a436d59 100644 --- a/Sample/Auth0MauiApp.sln +++ b/Sample/JobClick.sln @@ -1,27 +1,27 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.7.34031.279 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Auth0MauiApp", "Auth0MauiApp\Auth0MauiApp.csproj", "{CCA19EC8-7858-43A0-B12A-C16FFDA55D24}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {CCA19EC8-7858-43A0-B12A-C16FFDA55D24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {CCA19EC8-7858-43A0-B12A-C16FFDA55D24}.Debug|Any CPU.Build.0 = Debug|Any CPU - {CCA19EC8-7858-43A0-B12A-C16FFDA55D24}.Debug|Any CPU.Deploy.0 = Debug|Any CPU - {CCA19EC8-7858-43A0-B12A-C16FFDA55D24}.Release|Any CPU.ActiveCfg = Release|Any CPU - {CCA19EC8-7858-43A0-B12A-C16FFDA55D24}.Release|Any CPU.Build.0 = Release|Any CPU - {CCA19EC8-7858-43A0-B12A-C16FFDA55D24}.Release|Any CPU.Deploy.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {58BFEC61-0786-459D-889B-8C2B3DD32B7D} - EndGlobalSection -EndGlobal + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.7.34031.279 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JobClick", "Auth0MauiApp\JobClick.csproj", "{CCA19EC8-7858-43A0-B12A-C16FFDA55D24}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {CCA19EC8-7858-43A0-B12A-C16FFDA55D24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CCA19EC8-7858-43A0-B12A-C16FFDA55D24}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CCA19EC8-7858-43A0-B12A-C16FFDA55D24}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {CCA19EC8-7858-43A0-B12A-C16FFDA55D24}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CCA19EC8-7858-43A0-B12A-C16FFDA55D24}.Release|Any CPU.Build.0 = Release|Any CPU + {CCA19EC8-7858-43A0-B12A-C16FFDA55D24}.Release|Any CPU.Deploy.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {58BFEC61-0786-459D-889B-8C2B3DD32B7D} + EndGlobalSection +EndGlobal