mirror of
https://github.com/XFox111/GUTSchedule.git
synced 2026-04-22 06:58:01 +03:00
Merge pull request #9 from XFox111/bundle-config
Updated project config to create App Bundle
This commit is contained in:
@@ -8,12 +8,16 @@ EndProject
|
|||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release (APK)|Any CPU = Release (APK)|Any CPU
|
||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{A0471165-37F5-4309-8A92-42F1A6589EEE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{A0471165-37F5-4309-8A92-42F1A6589EEE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{A0471165-37F5-4309-8A92-42F1A6589EEE}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{A0471165-37F5-4309-8A92-42F1A6589EEE}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{A0471165-37F5-4309-8A92-42F1A6589EEE}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
|
{A0471165-37F5-4309-8A92-42F1A6589EEE}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
|
||||||
|
{A0471165-37F5-4309-8A92-42F1A6589EEE}.Release (APK)|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{A0471165-37F5-4309-8A92-42F1A6589EEE}.Release (APK)|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{A0471165-37F5-4309-8A92-42F1A6589EEE}.Release (APK)|Any CPU.Deploy.0 = Release|Any CPU
|
||||||
{A0471165-37F5-4309-8A92-42F1A6589EEE}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{A0471165-37F5-4309-8A92-42F1A6589EEE}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{A0471165-37F5-4309-8A92-42F1A6589EEE}.Release|Any CPU.Build.0 = Release|Any CPU
|
{A0471165-37F5-4309-8A92-42F1A6589EEE}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{A0471165-37F5-4309-8A92-42F1A6589EEE}.Release|Any CPU.Deploy.0 = Release|Any CPU
|
{A0471165-37F5-4309-8A92-42F1A6589EEE}.Release|Any CPU.Deploy.0 = Release|Any CPU
|
||||||
|
|||||||
@@ -58,6 +58,25 @@
|
|||||||
<AndroidEnableProfiledAot>false</AndroidEnableProfiledAot>
|
<AndroidEnableProfiledAot>false</AndroidEnableProfiledAot>
|
||||||
<BundleAssemblies>false</BundleAssemblies>
|
<BundleAssemblies>false</BundleAssemblies>
|
||||||
<AndroidSupportedAbis>armeabi-v7a;x86;x86_64;arm64-v8a</AndroidSupportedAbis>
|
<AndroidSupportedAbis>armeabi-v7a;x86;x86_64;arm64-v8a</AndroidSupportedAbis>
|
||||||
|
<AndroidPackageFormat>aab</AndroidPackageFormat>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release %28APK%29|AnyCPU'">
|
||||||
|
<OutputPath>bin\Release %28APK%29\</OutputPath>
|
||||||
|
<DebugSymbols>false</DebugSymbols>
|
||||||
|
<DebugType>portable</DebugType>
|
||||||
|
<Optimize>True</Optimize>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
<AndroidManagedSymbols>true</AndroidManagedSymbols>
|
||||||
|
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime>
|
||||||
|
<AndroidLinkMode>SdkOnly</AndroidLinkMode>
|
||||||
|
<EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
|
||||||
|
<AotAssemblies>false</AotAssemblies>
|
||||||
|
<EnableLLVM>false</EnableLLVM>
|
||||||
|
<AndroidEnableProfiledAot>false</AndroidEnableProfiledAot>
|
||||||
|
<BundleAssemblies>false</BundleAssemblies>
|
||||||
|
<AndroidSupportedAbis>armeabi-v7a;x86;x86_64;arm64-v8a</AndroidSupportedAbis>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
|
|||||||
@@ -12,27 +12,43 @@ variables:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- task: NuGetToolInstaller@1
|
- task: NuGetToolInstaller@1
|
||||||
|
displayName: 'Install NuGet Tool'
|
||||||
|
|
||||||
- task: NuGetCommand@2
|
- task: NuGetCommand@2
|
||||||
|
displayName: 'Restore Solution'
|
||||||
inputs:
|
inputs:
|
||||||
restoreSolution: '**/*.sln'
|
restoreSolution: '**/*.sln'
|
||||||
|
|
||||||
- task: ResharperCli@2
|
- task: ResharperCli@2
|
||||||
|
displayName: 'RESharper CLI Code Analyzer'
|
||||||
inputs:
|
inputs:
|
||||||
solutionOrProjectPath: 'GUT.Schedule/GUT.Schedule.sln'
|
solutionOrProjectPath: 'GUT.Schedule/GUT.Schedule.sln'
|
||||||
failBuildLevelSelector: 'Error'
|
failBuildLevelSelector: 'Error'
|
||||||
failBuildOnCodeIssues: false
|
failBuildOnCodeIssues: false
|
||||||
|
|
||||||
- task: XamarinAndroid@1
|
- task: XamarinAndroid@1
|
||||||
|
displayName: 'Build Solution (AppBundle)'
|
||||||
inputs:
|
inputs:
|
||||||
projectFile: '**/**.csproj'
|
projectFile: '**/**.csproj'
|
||||||
outputDirectory: '$(outputDirectory)'
|
outputDirectory: '$(outputDirectory)'
|
||||||
configuration: '$(buildConfiguration)'
|
configuration: '$(buildConfiguration)'
|
||||||
msbuildVersionOption: 'latest'
|
msbuildVersionOption: 'latest'
|
||||||
msbuildArchitectureOption: 'x64'
|
msbuildArchitectureOption: 'x64'
|
||||||
|
msbuildArguments: ' /t:PackageForAndroid -t:SignAndroidPackage -p:AndroidPackageFormat=aab /p:Configuration=Release'
|
||||||
|
jdkOption: 'JDKVersion'
|
||||||
|
|
||||||
|
- task: XamarinAndroid@1
|
||||||
|
displayName: 'Build Solution (APK)'
|
||||||
|
inputs:
|
||||||
|
projectFile: '**/**.csproj'
|
||||||
|
outputDirectory: '$(outputDirectory)'
|
||||||
|
configuration: 'Release (APK)'
|
||||||
|
msbuildVersionOption: 'latest'
|
||||||
|
msbuildArchitectureOption: 'x64'
|
||||||
jdkOption: 'JDKVersion'
|
jdkOption: 'JDKVersion'
|
||||||
|
|
||||||
- task: DeleteFiles@1
|
- task: DeleteFiles@1
|
||||||
|
displayName: 'Delete debug files'
|
||||||
inputs:
|
inputs:
|
||||||
SourceFolder: '$(outputDirectory)'
|
SourceFolder: '$(outputDirectory)'
|
||||||
Contents: |
|
Contents: |
|
||||||
@@ -40,12 +56,21 @@ steps:
|
|||||||
**/**.dll
|
**/**.dll
|
||||||
|
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
|
displayName: 'Copy changelog to output'
|
||||||
inputs:
|
inputs:
|
||||||
SourceFolder: '$(Build.SourcesDirectory)'
|
SourceFolder: '$(Build.SourcesDirectory)'
|
||||||
Contents: 'changelog.md'
|
Contents: 'changelog.md'
|
||||||
TargetFolder: '$(outputDirectory)'
|
TargetFolder: '$(outputDirectory)'
|
||||||
|
|
||||||
|
- task: PowerShell@2
|
||||||
|
displayName: 'Update package name'
|
||||||
|
inputs:
|
||||||
|
targetType: 'inline'
|
||||||
|
script: 'get-childitem *-Signed.* | foreach { rename-item $_ $_.Name.Replace("-Signed", "") }'
|
||||||
|
workingDirectory: '$(outputDirectory)'
|
||||||
|
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
|
displayName: 'Drop Artifact'
|
||||||
inputs:
|
inputs:
|
||||||
PathtoPublish: '$(outputDirectory)'
|
PathtoPublish: '$(outputDirectory)'
|
||||||
ArtifactName: 'bundle'
|
ArtifactName: 'bundle'
|
||||||
|
|||||||
Reference in New Issue
Block a user