Skip to content
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
48 changes: 25 additions & 23 deletions build/steps-build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ steps:
- template: templates/build-number.yml
- template: templates/flutter-install.yml

# Flutter's Swift Package Manager support is a per-machine opt-in; enable it on the agent.
- task: FlutterCommand@0
displayName: 'Enable Swift Package Manager'
inputs:
projectDirectory: '${{ parameters.pathToSrc }}/app'
arguments: 'config --enable-swift-package-manager'

- task: InstallAppleCertificate@2
displayName: Install Certificate
inputs:
Expand Down Expand Up @@ -64,25 +71,6 @@ steps:
parameters:
projectDirectory: '${{ parameters.pathToSrc }}/app'

- task: CmdLine@2
displayName: 'Clean CocoaPods Cache'
inputs:
script: |
cd '${{ parameters.pathToSrc }}/app/ios'
rm -rf Pods
rm -rf Podfile.lock
pod deintegrate
pod cache clean --all
workingDirectory: '${{ parameters.pathToSrc }}/app'

- task: CmdLine@2
displayName: 'Install CocoaPods Dependencies'
inputs:
script: |
cd '${{ parameters.pathToSrc }}/app/ios'
pod install --repo-update
workingDirectory: '${{ parameters.pathToSrc }}/app'

- task: PowerShell@2
displayName: 'Execute Package Rename'
condition: eq(variables['ApplicationEnvironment'], 'Production')
Expand Down Expand Up @@ -121,6 +109,22 @@ steps:
projectDirectory: '${{ parameters.pathToSrc }}/app'
condition: failed()

# Scope manual signing to the Runner target through its xcconfig. Signing settings must not
# be passed as xcodebuild command-line arguments (signingOption: manual) because those apply
# to every target in the workspace, and Swift package targets cannot take a provisioning
# profile ("X does not support provisioning profiles" -> ARCHIVE FAILED).
- task: CmdLine@2
displayName: 'Set Runner Release Signing'
inputs:
script: |
cat >> '${{ parameters.pathToSrc }}/app/ios/Flutter/Release.xcconfig' << 'EOF'

CODE_SIGN_STYLE = Manual
CODE_SIGN_IDENTITY = $(APPLE_CERTIFICATE_SIGNING_IDENTITY)
PROVISIONING_PROFILE_SPECIFIER = $(provisioningProfile.provisioningProfileName)
PROVISIONING_PROFILE = $(APPLE_PROV_PROFILE_UUID)
EOF

- task: Xcode@5
condition: succeeded()
displayName: 'Xcode Archive iOS'
Expand All @@ -131,14 +135,12 @@ steps:
configuration: 'Release'
xcWorkspacePath: '${{ parameters.pathToSrc }}/app/ios/Runner.xcworkspace'
packageApp: true
signingOption: 'manual'
signingOption: 'default'
exportOptions: 'plist'
exportOptionsPlist: '$(exportOptions.secureFilePath)'
archivePath: '${{ parameters.pathToSrc }}/app/build/ios/iphoneos'
exportPath: '${{ parameters.pathToSrc }}/app/build/ios/iphoneos'
signingIdentity: '$(APPLE_CERTIFICATE_SIGNING_IDENTITY)'
provisioningProfileUuid: '$(APPLE_PROV_PROFILE_UUID)'
provisioningProfileName: '$(provisioningProfile.provisioningProfileName)'
useXcpretty: false

- task: CopyFiles@2
condition: succeeded()
Expand Down
6 changes: 3 additions & 3 deletions doc/Logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ Multiple logging features can be tested from the diagnostics screen. This is con
- You can see if a log file exists.
- You can share the logs / app summary by email, etc.

## Alice
## Talker

We use [alice](https://pub.dev/packages/alice) to track logs in-app without debugger console.
It is also configured to intercept HTTP requests made within the app.
We use [talker_flutter](https://pub.dev/packages/talker_flutter) to track logs in-app without debugger console.
It is also configured to intercept HTTP requests made within the app via [talker_dio_logger](https://pub.dev/packages/talker_dio_logger).

It's accessible via the "OPEN CONSOLE" in the `LoggerDiagnosticWidget`.

Expand Down
6 changes: 5 additions & 1 deletion src/app/ios/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
**/.vagrant/
**/DerivedData/
Icon?
**/Pods/
**/.symlinks/
profile
xcuserdata
Expand All @@ -27,6 +26,11 @@ Flutter/flutter_export_environment.sh
ServiceDefinitions.json
Runner/GeneratedPluginRegistrant.*

# CocoaPods (generated at build time by Flutter for non-SPM plugins)
Podfile
Podfile.lock
**/Pods/

# Exceptions to above rules.
!default.mode1v3
!default.mode2v3
Expand Down
1 change: 0 additions & 1 deletion src/app/ios/Flutter/Debug.xcconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"
1 change: 0 additions & 1 deletion src/app/ios/Flutter/Release.xcconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
71 changes: 0 additions & 71 deletions src/app/ios/Podfile

This file was deleted.

Loading