Skip to content

Production variable should have failsafe when app is live #52

@Apps4LifeLLC

Description

@Apps4LifeLLC

As it currently stands, if a dev forgets to set the production boolean to YES upon submitting for the AppStore issues can incur with receipt validation. (app will use Apple's sandbox verification server URL instead of their production verification server URL)

IAPHelper should utilize CLANG macros as a failsafe to automatically force that variable to YES if app is in release mode not debug mode.

#ifdef DEBUG
#define releaseBuild NO
#else
#define releaseBuild YES
#endif

Then in IAPHelper.m:

if (_production) {

Should now read:

if (_production || releaseBuild) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions