Android Question Build Configurations and Which build mode

Robert Valentino

Well-Known Member
Licensed User
Longtime User
Is there ANY way to tie the Build Mode (Release / Debug(rapid)) to the Build Configurations?

Because right now we do not have #else for our #if I need to have code like this:
B4X:
    #If _Release Then
	    Msgbox("Row:" &EventParameter.RowID &" Col:" &EventParameter.ColID, Who)
    #End If
	
	#If _Debug Then
	    Log("Row:" &EventParameter.RowID &" Col:" &EventParameter.ColID &" For:" &Who)
    #End If

But when I swap from Release to Debug mode it does not swap my Build Configuration setting

Is there a way of make them both swap at the same time?
I am using Debug and Release for my configuration names and have Debug set to the Debug configuration and Release set to the Release configuration but when I change modes in the IDE from Release to Debug(rapid) my configuration does not change?

I am sure I am doing something wrong.

Any help here?

BobVal
 

Robert Valentino

Well-Known Member
Licensed User
Longtime User


I do not see that, I thought I had to define a variable like above?

Maybe we don't I can just do #if Release instead of the #if _Release that I have been doing

Will give that a try.

Thanks

BobVal
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…