Wish Compiler Directive #ApplicationName

Derek Johnson

Active Member
Licensed User
Longtime User
I'd like to see a new Compiler Directive #ApplicationName.

The specified name would be that which was installed on the connected device.

This would enable a single project to be able to install multiple different APKs on the same device in the development phase.

Obviously when you go to production you can install any APK into any production product in Google Play Store, but this is during the development phase.
 

DonManfred

Expert
Licensed User
Longtime User
B4X:
#Region  Project Attributes
#If Release
    #ApplicationLabel: RELEASE APK
#Else If SpecialBuild
    #ApplicationLabel: SpecialBuild APKl
#Else If Debug
    #ApplicationLabel: Debug APK
#End If
    #VersionCode: 1
    #VersionName:
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: unspecified
    #CanInstallToExternalStorage: False
    #BridgeLogger: true
    '#CustomBuildAction: 2, C:\Program Files\Java\jdk1.8.0_171\bin\java.exe, -jar D:\Basic4android3\compiletime.jar
#End Region

Use the Commandline builder to build a specific build based on the buildconfigurations.
 

Derek Johnson

Active Member
Licensed User
Longtime User
I just noticed that you can create different package names under Build Configurations. So I could create a distinct App based on this. This isn't quite the same as being able to conditionally create a different package name, but is very useful.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…