Hey guys,
I’d like to switch my analytics into “dev” mode automatically depending on which provisioning profile is used to sign the build.
Any ideas? I’m using corona native and xcode
Cheers!
Hey guys,
I’d like to switch my analytics into “dev” mode automatically depending on which provisioning profile is used to sign the build.
Any ideas? I’m using corona native and xcode
Cheers!
I can’t think of Corona way to do this. There may be a native way.
Rob
Maybe you can check if debug.* library exists? Not sure if that will work consistently.
I can’t remember, but I think it is removed by default from device builds. However, you can force it to be kept:
----[[build = { neverStripDebugInfo = true, }, --]]
, then when you do production builds, comment that bit out.
Thus, a check like this ‘should’ work as a dev versus production test:
if( debug ) then print("DEV BUILD") else print("PROD BUILD") end
I can’t think of Corona way to do this. There may be a native way.
Rob
Maybe you can check if debug.* library exists? Not sure if that will work consistently.
I can’t remember, but I think it is removed by default from device builds. However, you can force it to be kept:
----[[build = { neverStripDebugInfo = true, }, --]]
, then when you do production builds, comment that bit out.
Thus, a check like this ‘should’ work as a dev versus production test:
if( debug ) then print("DEV BUILD") else print("PROD BUILD") end