Skip to content

Commit

Permalink
Add new mobilepay deep links depending on environment (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
marfavi authored Jun 27, 2023
1 parent cd069c0 commit a493510
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@
"lib/main_development.dart"
]
},
{
"name": "Development flavor (profile mode)",
"request": "launch",
"type": "dart",
"flutterMode": "profile",
"program": "lib/main_development.dart",
"args": [
"--flavor",
"development",
"--target",
"lib/main_development.dart"
]
},
{
"name": "Production flavor (debug mode)",
"request": "launch",
Expand Down
2 changes: 2 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,15 @@ android {
applicationId "dk.analogio.analog.dev"
versionNameSuffix "-dev"
resValue "string", "app_name", "[DEV] Analog"
resValue "string", "app_deep_link", "analogcoffeecard-dev"
}
production {
dimension "app"
applicationId "dk.analog.digitalclipcard"
applicationIdSuffix ""
versionNameSuffix "-prod"
resValue "string", "app_name", "Analog"
resValue "string", "app_deep_link", "analogcoffeecard"
}
}

Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="analogcoffeecard" android:host="mobilepay_purchase" />
<data android:scheme="@string/app_deep_link" android:host="mobilepay_purchase" />
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
Expand Down
5 changes: 5 additions & 0 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
buildSettings = {
APP_DEEP_LINK = "analogcoffeecard-dev";
APP_DISPLAY_NAME = "[DEV] Analog";
ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-development";
CLANG_ENABLE_MODULES = YES;
Expand Down Expand Up @@ -519,6 +520,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
APP_DEEP_LINK = "analogcoffeecard-dev";
APP_DISPLAY_NAME = "[DEV] Analog";
ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-development";
CLANG_ENABLE_MODULES = YES;
Expand Down Expand Up @@ -610,6 +612,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
APP_DEEP_LINK = "analogcoffeecard-dev";
APP_DISPLAY_NAME = "[DEV] Analog";
ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-development";
CLANG_ENABLE_MODULES = YES;
Expand Down Expand Up @@ -704,6 +707,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
APP_DEEP_LINK = "analogcoffeecard-dev";
APP_DISPLAY_NAME = Analog;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
Expand Down Expand Up @@ -797,6 +801,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
APP_DEEP_LINK = "analogcoffeecard";
APP_DISPLAY_NAME = Analog;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
Expand Down
2 changes: 1 addition & 1 deletion ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<string>mobilepay_purchase</string>
<key>CFBundleURLSchemes</key>
<array>
<string>analogcoffeecard</string>
<string>$(APP_DEEP_LINK)</string>
</array>
</dict>
</array>
Expand Down

0 comments on commit a493510

Please sign in to comment.