mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-10 05:58:01 -05:00
[INJIMOB] dynamically change profile name based on app flavor (#1529)
Signed-off-by: adityankannan-tw <adityan410pm@gmail.com> Co-authored-by: adityankannan-tw <adityan410pm@gmail.com>
This commit is contained in:
@@ -491,7 +491,7 @@
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
MARKETING_VERSION = 0.11.0;
|
||||
MARKETING_VERSION = 0.13.0;
|
||||
OTHER_LDFLAGS = (
|
||||
"$(inherited)",
|
||||
"-ObjC",
|
||||
@@ -530,7 +530,7 @@
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
MARKETING_VERSION = 0.11.0;
|
||||
MARKETING_VERSION = 0.13.0;
|
||||
OTHER_LDFLAGS = (
|
||||
"$(inherited)",
|
||||
"-ObjC",
|
||||
|
||||
@@ -34,9 +34,9 @@ def generate_app_bundle_id()
|
||||
# io.mosip.inji is not available in iOS
|
||||
return "io.mosip.inji.wallet"
|
||||
when "collab"
|
||||
return "io.mosip.inji.collab"
|
||||
return "io.mosip.inji.mobile.collab"
|
||||
when "synergy"
|
||||
return "io.mosip.inji.synergy"
|
||||
return "io.mosip.inji.mobile.synergy"
|
||||
when "mec"
|
||||
return "io.mosip.inji.mec"
|
||||
end
|
||||
@@ -49,6 +49,12 @@ def map_flavour_tosuffix()
|
||||
return "wallet.mobileid"
|
||||
when "inji"
|
||||
return "wallet"
|
||||
when "collab"
|
||||
return "mobile.collab"
|
||||
when "synergy"
|
||||
return "mobile.synergy"
|
||||
when "mec"
|
||||
return "mec"
|
||||
end
|
||||
return flavor
|
||||
end
|
||||
@@ -169,8 +175,8 @@ platform :ios do
|
||||
plist_path: "Inji/Info.plist"
|
||||
)
|
||||
# replace bundle ID
|
||||
# s = "s/mobileid/#{map_flavour_tosuffix}/g"
|
||||
# sh("sed -i '' -e #{s} ../Inji.xcodeproj/project.pbxproj")
|
||||
s = "s/wallet.mobileid/#{map_flavour_tosuffix}/g"
|
||||
sh("sed -i '' -e #{s} ../Inji.xcodeproj/project.pbxproj")
|
||||
|
||||
# replace Product name
|
||||
p = "s|PRODUCT_NAME = Inji|PRODUCT_NAME = \"#{generate_app_name}\"|"
|
||||
|
||||
Reference in New Issue
Block a user