diff --git a/CleverTapSDK.xcodeproj/project.pbxproj b/CleverTapSDK.xcodeproj/project.pbxproj index 077c7132..b42cd393 100644 --- a/CleverTapSDK.xcodeproj/project.pbxproj +++ b/CleverTapSDK.xcodeproj/project.pbxproj @@ -660,13 +660,13 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 0701E9572372AD550034AAC2 /* AdUnit */ = { + 0701E9572372AD550034AAC2 /* DisplayUnit */ = { isa = PBXGroup; children = ( 0701E95F2372C0970034AAC2 /* models */, 0701E95E2372BC550034AAC2 /* controllers */, ); - path = AdUnit; + path = DisplayUnit; sourceTree = ""; }; 0701E95E2372BC550034AAC2 /* controllers */ = { @@ -1064,7 +1064,7 @@ D0C7BBBF207D82C0001345EF /* CleverTapSDK */ = { isa = PBXGroup; children = ( - 0701E9572372AD550034AAC2 /* AdUnit */, + 0701E9572372AD550034AAC2 /* DisplayUnit */, 07B874E122E982F400328982 /* ABTesting */, 07B94520219EA33800D4C542 /* Inbox */, 071EB476217F6427008F0FAB /* InApps */, diff --git a/CleverTapSDK/CleverTap+DisplayUnit.h b/CleverTapSDK/CleverTap+DisplayUnit.h index e40a2bba..75be74a7 100644 --- a/CleverTapSDK/CleverTap+DisplayUnit.h +++ b/CleverTapSDK/CleverTap+DisplayUnit.h @@ -33,7 +33,7 @@ The `CleverTapDisplayUnit` represents the display unit object. /*! * content defines the content of the display unit. */ -@property (nullable, nonatomic, copy, readonly) NSArray *content; +@property (nullable, nonatomic, copy, readonly) NSArray *contents; @end diff --git a/CleverTapSDK/CleverTap.m b/CleverTapSDK/CleverTap.m index 618e11c3..748c14b3 100644 --- a/CleverTapSDK/CleverTap.m +++ b/CleverTapSDK/CleverTap.m @@ -4431,7 +4431,7 @@ - (BOOL)didHandleDisplayUnitTestFromPushNotificaton:(NSDictionary*)notification } -#pragma mark Ad View Public +#pragma mark Display Unit Public - (NSArray*)getAllDisplayUnits { return self.displayUnitController.displayUnits; diff --git a/CleverTapSDK/AdUnit/controllers/CTDisplayUnitController.h b/CleverTapSDK/DisplayUnit/controllers/CTDisplayUnitController.h similarity index 100% rename from CleverTapSDK/AdUnit/controllers/CTDisplayUnitController.h rename to CleverTapSDK/DisplayUnit/controllers/CTDisplayUnitController.h diff --git a/CleverTapSDK/AdUnit/controllers/CTDisplayUnitController.m b/CleverTapSDK/DisplayUnit/controllers/CTDisplayUnitController.m similarity index 100% rename from CleverTapSDK/AdUnit/controllers/CTDisplayUnitController.m rename to CleverTapSDK/DisplayUnit/controllers/CTDisplayUnitController.m diff --git a/CleverTapSDK/AdUnit/models/CleverTapDisplayUnit.m b/CleverTapSDK/DisplayUnit/models/CleverTapDisplayUnit.m similarity index 97% rename from CleverTapSDK/AdUnit/models/CleverTapDisplayUnit.m rename to CleverTapSDK/DisplayUnit/models/CleverTapDisplayUnit.m index 5070b398..ffc40b82 100644 --- a/CleverTapSDK/AdUnit/models/CleverTapDisplayUnit.m +++ b/CleverTapSDK/DisplayUnit/models/CleverTapDisplayUnit.m @@ -37,7 +37,7 @@ - (instancetype)initWithJSON:(NSDictionary *)json { [contentList addObject:content]; } } - _content = contentList; + _contents = contentList; } @catch (NSException *e) { CleverTapLogStaticDebug(@"Error intitializing CleverTapDisplayUnit: %@", e.reason); diff --git a/CleverTapSDK/AdUnit/models/CleverTapDisplayUnitContent.m b/CleverTapSDK/DisplayUnit/models/CleverTapDisplayUnitContent.m similarity index 100% rename from CleverTapSDK/AdUnit/models/CleverTapDisplayUnitContent.m rename to CleverTapSDK/DisplayUnit/models/CleverTapDisplayUnitContent.m