You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor SDK to allow the creating of multiple Offerwall instances.
Deprecate old way of initialisation.
Remove Alamofire dependency
Add package to SPM
New Offerwall usage:
// Create the instance
letofferwall=BitLabs.OFFERWALL.create(token:"APP_TOKEN", uid:"UID")
// Add tags
offerwall.tags["is_premium"]=true
// Add additional option
offerwall.options["theme"]="dark"
// Add SurveyRewardHandler, triggered on every reward received from a survey
offerwall.surveyRewardHandler ={ reward in
// implementation
}
// Add OfferwallClosedHandler, triggered when the offerwall is closed
offerwall.offerwallClosedHandler =OnOfferwallClosedListener{ totalReward in
// implementation
}
// Request AdId
offerwall.requestTrackingAuthorization()
// launch the offerwall
offerwall.launch(parent:self)
New API usage
// Configure API
BitLabs.API.configure(token: token, uid: uid)BitLabs.API.checkSurveys{ result in
// implementation
}BitLabs.API.getSurveys{ result in
// implementation
}