[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:
adityankannan-tw
2024-06-26 12:01:13 +05:30
committed by GitHub
parent 3b00b9d33d
commit e8535300b8
2 changed files with 12 additions and 6 deletions

View File

@@ -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",

View File

@@ -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}\"|"