Created as a C++ wrapper for TestFlight SDK v.1.2.4 with the aim to clear cut using Objective-C from C++ code.
I tested with cocos2d-x v.2.0.3 (which is adhered to cocos2d v.2.0) on iOS platform.
The test includes uploading build to TestFlight and play-through testing functionality of TestFlight.
Tested
setDeviceIdentifier()
takeOff()
TFLog()
vialog()
passCheckpoint()
Functions left to test
openFeedbackView()
submitFeedback()
Functions not yet implement
setOptions()
- Follow the instruction to integrate SDK via https://testflightapp.com/sdk/doc/1.2.4/ or more advanced via http://justatheory.com/computers/os/ios/integrate-testflight-sdk.html. I recommend the latter one.
- Use TestFlightWrapper class (both .mm and .h) instead of directly use from SDK. Just call some thing like the following in any place you want.
TestFlightWrapper::TestFlightWrapper::sharedWrapper()->passCheckpoint("Killed all enemies!!");
or
TestFlightWrapper::TestFlightWrapper::sharedWrapper()->log("User bypass the tutorial.");
TestFlightWrapper::TestFlightWrapper::sharedWrapper()->log("Go kill %d", enemiesArray->count());
haxpor