hookshy Well-Known Member Licensed User Longtime User Aug 22, 2014 #1 I wish that upon release of a build configuration the package name to be replaced all over the app .... there is not other mach with this format <com.android.example> that will cause problems in the code Now I must remove all the statements that contains the package name in the code to mach new build configuration ! pm.GetVersionName("hs.easy.romt") 'is mostly met in the code Thank you !!
I wish that upon release of a build configuration the package name to be replaced all over the app .... there is not other mach with this format <com.android.example> that will cause problems in the code Now I must remove all the statements that contains the package name in the code to mach new build configuration ! pm.GetVersionName("hs.easy.romt") 'is mostly met in the code Thank you !!
DonManfred Expert Licensed User Longtime User Aug 22, 2014 #2 Instead using statements where you put manually the packagename you can use this sub and put a call to this sub everywhere you are using fixed statements
Instead using statements where you put manually the packagename you can use this sub and put a call to this sub everywhere you are using fixed statements
Erel B4X founder Staff member Licensed User Longtime User Aug 22, 2014 #3 Code: Copy #If Build1 Dim PackageName As String = "a.b.c" #End If #If Build2 Dim PackageName As String = "c.b.a" #End If Last edited: Aug 24, 2014
Code: Copy #If Build1 Dim PackageName As String = "a.b.c" #End If #If Build2 Dim PackageName As String = "c.b.a" #End If
hookshy Well-Known Member Licensed User Longtime User Aug 22, 2014 #4 yes indeed nice practice and simple, thanks, realy strong function with build configuration