Skip to content

Commit

Permalink
CHOICE-1015: version 2.1.0 release changes (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulBasit-InMobi authored Sep 17, 2024
2 parents 063f58d + b73a0e1 commit 6aa0e72
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ @implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Get InMobiCMP SDK version
NSLog(@"InMobiCMP SDK Version: %@", [[ChoiceCmp shared] sdkVersion]);
// Initialise InMobiCMP
[self startChoice];

Expand Down Expand Up @@ -131,4 +133,9 @@ - (void)userDidMoveToOtherState {
NSLog(@"%@", NSStringFromSelector(_cmd));
}

- (void)cmpUIStatusChangedWithInfo:(DisplayInfo * _Nonnull)info {
NSLog(@"%@", NSStringFromSelector(_cmd), info.gbcShown);
}


@end
2 changes: 1 addition & 1 deletion Objective-C/InMobiCMP Demo - iOS/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ target 'InMobiCMP Demo - iOS' do
use_frameworks!

# Pods for InMobiCMP Demo - iOS
pod 'InMobiCMP', '2.0.1'
pod 'InMobiCMP', '2.1.0'

end
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

// Get InMobiCMP SDK Version
print("InMobiCMP SDK Version: \(ChoiceCmp.shared.sdkVersion)")

// Initalise InMobi CMP
startChoice()

Expand Down Expand Up @@ -85,10 +88,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

extension AppDelegate: ChoiceCmpDelegate, CCPADelegate, GoogleBasicConsentDelegate {
func cmpDidLoad(info: InMobiCMP.PingResponse) {
print(#function)
print("\(#function), usRegulationApplies: \(info.usRegulationApplies)")
}

func cmpDidShow(info: InMobiCMP.PingResponse) {
func cmpUIStatusChanged(info: InMobiCMP.DisplayInfo) {
print(#function)
}

Expand Down
2 changes: 1 addition & 1 deletion Swift/InMobiCMP Demo - iOS/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ target 'InMobiCMP Demo - iOS' do
use_frameworks!

# Pods for InMobiCMP Demo - iOS
pod 'InMobiCMP', '2.0.1'
pod 'InMobiCMP', '2.1.0'

end
16 changes: 13 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,12 @@ The startChoice method sets up and starts the InMobi CMP with the defined colors
}
```


- Get the InMobiCMP SDK Version
```swift
var inMobiCMPVersion: String {
ChoiceCmp.shared.sdkVersion
}
```

- Delegates

Expand All @@ -191,10 +196,15 @@ Implement the necessary delegate methods to handle consent responses:
extension AppDelegate: ChoiceCmpDelegate, CCPADelegate, GoogleBasicConsentDelegate {
func cmpDidLoad(info: InMobiCMP.PingResponse) {
print(#function)
print("US Regulation Applies: \(info.usRegulationApplies)")
}

func cmpDidShow(info: InMobiCMP.PingResponse) {
print(#function)
func cmpUIStatusChanged(info: DisplayInfo) {
print("\(#function), Display Status: \(info.displayStatus)")
print("\(#function), Display Message: \(info.displayMessage)")
print("\(#function), Regulation Shown: \(info.regulationShown)")
print("\(#function), GBC Shown : \(info.gbcShown)")

}

func didReceiveIABVendorConsent(gdprData: InMobiCMP.GDPRData, updated: Bool) {
Expand Down

0 comments on commit 6aa0e72

Please sign in to comment.