Skip to content

Commit

Permalink
ft: Load iOs associated domains configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
wizlif committed Mar 7, 2023
1 parent c2e7d12 commit 51dcd7f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,12 @@ jobs:
- name: Generate app icons
run: flutter pub run flutter_launcher_icons:main

- name: Prepare deeplink configuration file
run: |
echo "$DEEPLINK_XCCONFIG_CONTENTS" > ios/Flutter/Deeplink.xcconfig
env:
DEEPLINK_XCCONFIG_CONTENTS: ${{ secrets.IOS_DEEPLINK_CONFIG }}

- name: Install the Apple certificate and provisioning profile
env:
BUILD_CERTIFICATE_BASE64: ${{ secrets.IOS_CERT_P12 }}
Expand Down
1 change: 1 addition & 0 deletions ios/Flutter/Debug.xcconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"
#include "Deeplink.xcconfig"
1 change: 1 addition & 0 deletions ios/Flutter/Deeplink.xcconfig.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
APP_STORE_ASSOCIATED_DOMAIN=
1 change: 1 addition & 0 deletions ios/Flutter/Release.xcconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
#include "Deeplink.xcconfig"

// Only build for iPhone (1)
TARGETED_DEVICE_FAMILY = 1
4 changes: 4 additions & 0 deletions ios/Runner/Runner.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@
<dict>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:${APP_STORE_ASSOCIATED_DOMAIN}</string>
</array>
</dict>
</plist>

0 comments on commit 51dcd7f

Please sign in to comment.