├── .gitignore ├── BannerSample ├── BannerSample.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── BannerSample.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── BannerSample │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── BannerSample.entitlements │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ ├── ViewController.h │ ├── ViewController.m │ └── main.m ├── BannerSwiftSample │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ └── ViewController.swift └── Podfile ├── CHANGELOG.md ├── InterstitialSample ├── InterstitialSample.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── InterstitialSample.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── InterstitialSample │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ ├── ViewController.h │ ├── ViewController.m │ └── main.m ├── InterstitialSwiftSample │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ └── ViewController.swift └── Podfile ├── LICENSE ├── NativeSample ├── NativeSample.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── NativeSample.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── NativeSample │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ ├── ViewController.h │ ├── ViewController.m │ └── main.m ├── NativeSampleSwift │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ ├── NativeSampleSwift.entitlements │ └── ViewController.swift └── Podfile └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata 19 | 20 | ## Other 21 | *.xccheckout 22 | *.moved-aside 23 | *.xcuserstate 24 | *.xcscmblueprint 25 | 26 | ## Obj-C/Swift specific 27 | *.hmap 28 | *.ipa 29 | 30 | # CocoaPods 31 | # 32 | # We recommend against adding the Pods directory to your .gitignore. However 33 | # you should judge for yourself, the pros and cons are mentioned at: 34 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 35 | # 36 | */Podfile.lock 37 | */Pods 38 | # Carthage 39 | # 40 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 41 | # Carthage/Checkouts 42 | 43 | Carthage/Build 44 | 45 | # fastlane 46 | # 47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 48 | # screenshots whenever they are needed. 49 | # For more information about the recommended setup visit: 50 | # https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md 51 | 52 | fastlane/report.xml 53 | fastlane/screenshots 54 | -------------------------------------------------------------------------------- /BannerSample/BannerSample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 3DB9E5431D83680100A4365A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 3DB9E5421D83680100A4365A /* main.m */; }; 11 | 3DB9E5461D83680100A4365A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 3DB9E5451D83680100A4365A /* AppDelegate.m */; }; 12 | 3DB9E5491D83680100A4365A /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3DB9E5481D83680100A4365A /* ViewController.m */; }; 13 | 3DB9E54C1D83680100A4365A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3DB9E54A1D83680100A4365A /* Main.storyboard */; }; 14 | 3DB9E54E1D83680100A4365A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3DB9E54D1D83680100A4365A /* Assets.xcassets */; }; 15 | 3DB9E5511D83680100A4365A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3DB9E54F1D83680100A4365A /* LaunchScreen.storyboard */; }; 16 | 3DB9E55F1D83681A00A4365A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3DB9E55E1D83681A00A4365A /* AppDelegate.swift */; }; 17 | 3DB9E5611D83681A00A4365A /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3DB9E5601D83681A00A4365A /* ViewController.swift */; }; 18 | 3DB9E5641D83681A00A4365A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3DB9E5621D83681A00A4365A /* Main.storyboard */; }; 19 | 3DB9E5661D83681A00A4365A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3DB9E5651D83681A00A4365A /* Assets.xcassets */; }; 20 | 3DB9E5691D83681A00A4365A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3DB9E5671D83681A00A4365A /* LaunchScreen.storyboard */; }; 21 | 3E867E7A72F2B4C483F95AE9 /* Pods_BannerSample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B9FAB36E3C310B2C0084511A /* Pods_BannerSample.framework */; }; 22 | ED00DF0230E529A26F5A1122 /* Pods_BannerSwiftSample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9E227908722441911B4F79B6 /* Pods_BannerSwiftSample.framework */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXFileReference section */ 26 | 3A1C30E531947AE71D9A4C8B /* Pods-BannerSwiftSample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BannerSwiftSample.release.xcconfig"; path = "Target Support Files/Pods-BannerSwiftSample/Pods-BannerSwiftSample.release.xcconfig"; sourceTree = ""; }; 27 | 3AB324243D6FB395DDAED777 /* Pods-BannerSwiftSample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BannerSwiftSample.debug.xcconfig"; path = "Target Support Files/Pods-BannerSwiftSample/Pods-BannerSwiftSample.debug.xcconfig"; sourceTree = ""; }; 28 | 3DB9E53E1D83680100A4365A /* BannerSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BannerSample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 29 | 3DB9E5421D83680100A4365A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 30 | 3DB9E5441D83680100A4365A /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 31 | 3DB9E5451D83680100A4365A /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 32 | 3DB9E5471D83680100A4365A /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 33 | 3DB9E5481D83680100A4365A /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 34 | 3DB9E54B1D83680100A4365A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 35 | 3DB9E54D1D83680100A4365A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 36 | 3DB9E5501D83680100A4365A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 37 | 3DB9E5521D83680100A4365A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 38 | 3DB9E55C1D83681900A4365A /* BannerSwiftSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BannerSwiftSample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 3DB9E55E1D83681A00A4365A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 40 | 3DB9E5601D83681A00A4365A /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 41 | 3DB9E5631D83681A00A4365A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | 3DB9E5651D83681A00A4365A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 43 | 3DB9E5681D83681A00A4365A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 44 | 3DB9E56A1D83681A00A4365A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | 3DB9E61A1D836A5D00A4365A /* InMobiSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = InMobiSDK.framework; path = ../InMobi/InMobiSDK.framework; sourceTree = ""; }; 46 | 3DB9E61D1D836A7800A4365A /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; }; 47 | 3DB9E61F1D836A7D00A4365A /* libsqlite3.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libsqlite3.tbd; path = usr/lib/libsqlite3.tbd; sourceTree = SDKROOT; }; 48 | 82EC8E68CD4B78569EF33AC6 /* Pods-BannerSample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BannerSample.release.xcconfig"; path = "Target Support Files/Pods-BannerSample/Pods-BannerSample.release.xcconfig"; sourceTree = ""; }; 49 | 9E227908722441911B4F79B6 /* Pods_BannerSwiftSample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_BannerSwiftSample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | B9FAB36E3C310B2C0084511A /* Pods_BannerSample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_BannerSample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | D7C65B8F86A5ED61007DF8CD /* Pods-BannerSample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BannerSample.debug.xcconfig"; path = "Target Support Files/Pods-BannerSample/Pods-BannerSample.debug.xcconfig"; sourceTree = ""; }; 52 | E153DB252346061B0025003A /* BannerSample.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = BannerSample.entitlements; sourceTree = ""; }; 53 | E16A52862345EDF000264C35 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; }; 54 | /* End PBXFileReference section */ 55 | 56 | /* Begin PBXFrameworksBuildPhase section */ 57 | 3DB9E53B1D83680100A4365A /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | 3E867E7A72F2B4C483F95AE9 /* Pods_BannerSample.framework in Frameworks */, 62 | ); 63 | runOnlyForDeploymentPostprocessing = 0; 64 | }; 65 | 3DB9E5591D83681900A4365A /* Frameworks */ = { 66 | isa = PBXFrameworksBuildPhase; 67 | buildActionMask = 2147483647; 68 | files = ( 69 | ED00DF0230E529A26F5A1122 /* Pods_BannerSwiftSample.framework in Frameworks */, 70 | ); 71 | runOnlyForDeploymentPostprocessing = 0; 72 | }; 73 | /* End PBXFrameworksBuildPhase section */ 74 | 75 | /* Begin PBXGroup section */ 76 | 3DB9E5351D83680100A4365A = { 77 | isa = PBXGroup; 78 | children = ( 79 | 3DB9E5401D83680100A4365A /* BannerSample */, 80 | 3DB9E55D1D83681A00A4365A /* BannerSwiftSample */, 81 | 3DB9E53F1D83680100A4365A /* Products */, 82 | 3DB9E6191D836A5C00A4365A /* Frameworks */, 83 | 4603822AF7DE37119F0EDCD8 /* Pods */, 84 | ); 85 | sourceTree = ""; 86 | }; 87 | 3DB9E53F1D83680100A4365A /* Products */ = { 88 | isa = PBXGroup; 89 | children = ( 90 | 3DB9E53E1D83680100A4365A /* BannerSample.app */, 91 | 3DB9E55C1D83681900A4365A /* BannerSwiftSample.app */, 92 | ); 93 | name = Products; 94 | sourceTree = ""; 95 | }; 96 | 3DB9E5401D83680100A4365A /* BannerSample */ = { 97 | isa = PBXGroup; 98 | children = ( 99 | E153DB252346061B0025003A /* BannerSample.entitlements */, 100 | 3DB9E5441D83680100A4365A /* AppDelegate.h */, 101 | 3DB9E5451D83680100A4365A /* AppDelegate.m */, 102 | 3DB9E5471D83680100A4365A /* ViewController.h */, 103 | 3DB9E5481D83680100A4365A /* ViewController.m */, 104 | 3DB9E54A1D83680100A4365A /* Main.storyboard */, 105 | 3DB9E54D1D83680100A4365A /* Assets.xcassets */, 106 | 3DB9E54F1D83680100A4365A /* LaunchScreen.storyboard */, 107 | 3DB9E5521D83680100A4365A /* Info.plist */, 108 | 3DB9E5411D83680100A4365A /* Supporting Files */, 109 | ); 110 | path = BannerSample; 111 | sourceTree = ""; 112 | }; 113 | 3DB9E5411D83680100A4365A /* Supporting Files */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | 3DB9E5421D83680100A4365A /* main.m */, 117 | ); 118 | name = "Supporting Files"; 119 | sourceTree = ""; 120 | }; 121 | 3DB9E55D1D83681A00A4365A /* BannerSwiftSample */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | 3DB9E55E1D83681A00A4365A /* AppDelegate.swift */, 125 | 3DB9E5601D83681A00A4365A /* ViewController.swift */, 126 | 3DB9E5621D83681A00A4365A /* Main.storyboard */, 127 | 3DB9E5651D83681A00A4365A /* Assets.xcassets */, 128 | 3DB9E5671D83681A00A4365A /* LaunchScreen.storyboard */, 129 | 3DB9E56A1D83681A00A4365A /* Info.plist */, 130 | ); 131 | path = BannerSwiftSample; 132 | sourceTree = ""; 133 | }; 134 | 3DB9E6191D836A5C00A4365A /* Frameworks */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | E16A52862345EDF000264C35 /* WebKit.framework */, 138 | 3DB9E61F1D836A7D00A4365A /* libsqlite3.tbd */, 139 | 3DB9E61D1D836A7800A4365A /* libz.tbd */, 140 | 3DB9E61A1D836A5D00A4365A /* InMobiSDK.framework */, 141 | B9FAB36E3C310B2C0084511A /* Pods_BannerSample.framework */, 142 | 9E227908722441911B4F79B6 /* Pods_BannerSwiftSample.framework */, 143 | ); 144 | name = Frameworks; 145 | sourceTree = ""; 146 | }; 147 | 4603822AF7DE37119F0EDCD8 /* Pods */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | D7C65B8F86A5ED61007DF8CD /* Pods-BannerSample.debug.xcconfig */, 151 | 82EC8E68CD4B78569EF33AC6 /* Pods-BannerSample.release.xcconfig */, 152 | 3AB324243D6FB395DDAED777 /* Pods-BannerSwiftSample.debug.xcconfig */, 153 | 3A1C30E531947AE71D9A4C8B /* Pods-BannerSwiftSample.release.xcconfig */, 154 | ); 155 | path = Pods; 156 | sourceTree = ""; 157 | }; 158 | /* End PBXGroup section */ 159 | 160 | /* Begin PBXNativeTarget section */ 161 | 3DB9E53D1D83680100A4365A /* BannerSample */ = { 162 | isa = PBXNativeTarget; 163 | buildConfigurationList = 3DB9E5551D83680100A4365A /* Build configuration list for PBXNativeTarget "BannerSample" */; 164 | buildPhases = ( 165 | B1B53165298A6CFD2A0B1F26 /* [CP] Check Pods Manifest.lock */, 166 | 3DB9E53A1D83680100A4365A /* Sources */, 167 | 3DB9E53B1D83680100A4365A /* Frameworks */, 168 | 3DB9E53C1D83680100A4365A /* Resources */, 169 | ); 170 | buildRules = ( 171 | ); 172 | dependencies = ( 173 | ); 174 | name = BannerSample; 175 | productName = BannerSample; 176 | productReference = 3DB9E53E1D83680100A4365A /* BannerSample.app */; 177 | productType = "com.apple.product-type.application"; 178 | }; 179 | 3DB9E55B1D83681900A4365A /* BannerSwiftSample */ = { 180 | isa = PBXNativeTarget; 181 | buildConfigurationList = 3DB9E56B1D83681A00A4365A /* Build configuration list for PBXNativeTarget "BannerSwiftSample" */; 182 | buildPhases = ( 183 | 13957AE6CC7A2141938E1A85 /* [CP] Check Pods Manifest.lock */, 184 | 3DB9E5581D83681900A4365A /* Sources */, 185 | 3DB9E5591D83681900A4365A /* Frameworks */, 186 | 3DB9E55A1D83681900A4365A /* Resources */, 187 | ); 188 | buildRules = ( 189 | ); 190 | dependencies = ( 191 | ); 192 | name = BannerSwiftSample; 193 | productName = BannerSwiftSample; 194 | productReference = 3DB9E55C1D83681900A4365A /* BannerSwiftSample.app */; 195 | productType = "com.apple.product-type.application"; 196 | }; 197 | /* End PBXNativeTarget section */ 198 | 199 | /* Begin PBXProject section */ 200 | 3DB9E5361D83680100A4365A /* Project object */ = { 201 | isa = PBXProject; 202 | attributes = { 203 | LastSwiftUpdateCheck = 0800; 204 | LastUpgradeCheck = 1100; 205 | ORGANIZATIONNAME = InMobi; 206 | TargetAttributes = { 207 | 3DB9E53D1D83680100A4365A = { 208 | CreatedOnToolsVersion = 8.0; 209 | ProvisioningStyle = Automatic; 210 | }; 211 | 3DB9E55B1D83681900A4365A = { 212 | CreatedOnToolsVersion = 8.0; 213 | DevelopmentTeam = 867HB69W94; 214 | ProvisioningStyle = Automatic; 215 | }; 216 | }; 217 | }; 218 | buildConfigurationList = 3DB9E5391D83680100A4365A /* Build configuration list for PBXProject "BannerSample" */; 219 | compatibilityVersion = "Xcode 9.3"; 220 | developmentRegion = en; 221 | hasScannedForEncodings = 0; 222 | knownRegions = ( 223 | en, 224 | Base, 225 | ); 226 | mainGroup = 3DB9E5351D83680100A4365A; 227 | productRefGroup = 3DB9E53F1D83680100A4365A /* Products */; 228 | projectDirPath = ""; 229 | projectRoot = ""; 230 | targets = ( 231 | 3DB9E53D1D83680100A4365A /* BannerSample */, 232 | 3DB9E55B1D83681900A4365A /* BannerSwiftSample */, 233 | ); 234 | }; 235 | /* End PBXProject section */ 236 | 237 | /* Begin PBXResourcesBuildPhase section */ 238 | 3DB9E53C1D83680100A4365A /* Resources */ = { 239 | isa = PBXResourcesBuildPhase; 240 | buildActionMask = 2147483647; 241 | files = ( 242 | 3DB9E5511D83680100A4365A /* LaunchScreen.storyboard in Resources */, 243 | 3DB9E54E1D83680100A4365A /* Assets.xcassets in Resources */, 244 | 3DB9E54C1D83680100A4365A /* Main.storyboard in Resources */, 245 | ); 246 | runOnlyForDeploymentPostprocessing = 0; 247 | }; 248 | 3DB9E55A1D83681900A4365A /* Resources */ = { 249 | isa = PBXResourcesBuildPhase; 250 | buildActionMask = 2147483647; 251 | files = ( 252 | 3DB9E5691D83681A00A4365A /* LaunchScreen.storyboard in Resources */, 253 | 3DB9E5661D83681A00A4365A /* Assets.xcassets in Resources */, 254 | 3DB9E5641D83681A00A4365A /* Main.storyboard in Resources */, 255 | ); 256 | runOnlyForDeploymentPostprocessing = 0; 257 | }; 258 | /* End PBXResourcesBuildPhase section */ 259 | 260 | /* Begin PBXShellScriptBuildPhase section */ 261 | 13957AE6CC7A2141938E1A85 /* [CP] Check Pods Manifest.lock */ = { 262 | isa = PBXShellScriptBuildPhase; 263 | buildActionMask = 2147483647; 264 | files = ( 265 | ); 266 | inputFileListPaths = ( 267 | ); 268 | inputPaths = ( 269 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 270 | "${PODS_ROOT}/Manifest.lock", 271 | ); 272 | name = "[CP] Check Pods Manifest.lock"; 273 | outputFileListPaths = ( 274 | ); 275 | outputPaths = ( 276 | "$(DERIVED_FILE_DIR)/Pods-BannerSwiftSample-checkManifestLockResult.txt", 277 | ); 278 | runOnlyForDeploymentPostprocessing = 0; 279 | shellPath = /bin/sh; 280 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 281 | showEnvVarsInLog = 0; 282 | }; 283 | B1B53165298A6CFD2A0B1F26 /* [CP] Check Pods Manifest.lock */ = { 284 | isa = PBXShellScriptBuildPhase; 285 | buildActionMask = 2147483647; 286 | files = ( 287 | ); 288 | inputFileListPaths = ( 289 | ); 290 | inputPaths = ( 291 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 292 | "${PODS_ROOT}/Manifest.lock", 293 | ); 294 | name = "[CP] Check Pods Manifest.lock"; 295 | outputFileListPaths = ( 296 | ); 297 | outputPaths = ( 298 | "$(DERIVED_FILE_DIR)/Pods-BannerSample-checkManifestLockResult.txt", 299 | ); 300 | runOnlyForDeploymentPostprocessing = 0; 301 | shellPath = /bin/sh; 302 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 303 | showEnvVarsInLog = 0; 304 | }; 305 | /* End PBXShellScriptBuildPhase section */ 306 | 307 | /* Begin PBXSourcesBuildPhase section */ 308 | 3DB9E53A1D83680100A4365A /* Sources */ = { 309 | isa = PBXSourcesBuildPhase; 310 | buildActionMask = 2147483647; 311 | files = ( 312 | 3DB9E5491D83680100A4365A /* ViewController.m in Sources */, 313 | 3DB9E5461D83680100A4365A /* AppDelegate.m in Sources */, 314 | 3DB9E5431D83680100A4365A /* main.m in Sources */, 315 | ); 316 | runOnlyForDeploymentPostprocessing = 0; 317 | }; 318 | 3DB9E5581D83681900A4365A /* Sources */ = { 319 | isa = PBXSourcesBuildPhase; 320 | buildActionMask = 2147483647; 321 | files = ( 322 | 3DB9E5611D83681A00A4365A /* ViewController.swift in Sources */, 323 | 3DB9E55F1D83681A00A4365A /* AppDelegate.swift in Sources */, 324 | ); 325 | runOnlyForDeploymentPostprocessing = 0; 326 | }; 327 | /* End PBXSourcesBuildPhase section */ 328 | 329 | /* Begin PBXVariantGroup section */ 330 | 3DB9E54A1D83680100A4365A /* Main.storyboard */ = { 331 | isa = PBXVariantGroup; 332 | children = ( 333 | 3DB9E54B1D83680100A4365A /* Base */, 334 | ); 335 | name = Main.storyboard; 336 | sourceTree = ""; 337 | }; 338 | 3DB9E54F1D83680100A4365A /* LaunchScreen.storyboard */ = { 339 | isa = PBXVariantGroup; 340 | children = ( 341 | 3DB9E5501D83680100A4365A /* Base */, 342 | ); 343 | name = LaunchScreen.storyboard; 344 | sourceTree = ""; 345 | }; 346 | 3DB9E5621D83681A00A4365A /* Main.storyboard */ = { 347 | isa = PBXVariantGroup; 348 | children = ( 349 | 3DB9E5631D83681A00A4365A /* Base */, 350 | ); 351 | name = Main.storyboard; 352 | sourceTree = ""; 353 | }; 354 | 3DB9E5671D83681A00A4365A /* LaunchScreen.storyboard */ = { 355 | isa = PBXVariantGroup; 356 | children = ( 357 | 3DB9E5681D83681A00A4365A /* Base */, 358 | ); 359 | name = LaunchScreen.storyboard; 360 | sourceTree = ""; 361 | }; 362 | /* End PBXVariantGroup section */ 363 | 364 | /* Begin XCBuildConfiguration section */ 365 | 3DB9E5531D83680100A4365A /* Debug */ = { 366 | isa = XCBuildConfiguration; 367 | buildSettings = { 368 | ALWAYS_SEARCH_USER_PATHS = NO; 369 | CLANG_ANALYZER_NONNULL = YES; 370 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 371 | CLANG_CXX_LIBRARY = "libc++"; 372 | CLANG_ENABLE_MODULES = YES; 373 | CLANG_ENABLE_OBJC_ARC = YES; 374 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 375 | CLANG_WARN_BOOL_CONVERSION = YES; 376 | CLANG_WARN_COMMA = YES; 377 | CLANG_WARN_CONSTANT_CONVERSION = YES; 378 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 379 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 380 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 381 | CLANG_WARN_EMPTY_BODY = YES; 382 | CLANG_WARN_ENUM_CONVERSION = YES; 383 | CLANG_WARN_INFINITE_RECURSION = YES; 384 | CLANG_WARN_INT_CONVERSION = YES; 385 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 386 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 387 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 388 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 389 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 390 | CLANG_WARN_STRICT_PROTOTYPES = YES; 391 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 392 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 393 | CLANG_WARN_UNREACHABLE_CODE = YES; 394 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 395 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 396 | COPY_PHASE_STRIP = NO; 397 | DEBUG_INFORMATION_FORMAT = dwarf; 398 | ENABLE_STRICT_OBJC_MSGSEND = YES; 399 | ENABLE_TESTABILITY = YES; 400 | FRAMEWORK_SEARCH_PATHS = ""; 401 | GCC_C_LANGUAGE_STANDARD = gnu99; 402 | GCC_DYNAMIC_NO_PIC = NO; 403 | GCC_NO_COMMON_BLOCKS = YES; 404 | GCC_OPTIMIZATION_LEVEL = 0; 405 | GCC_PREPROCESSOR_DEFINITIONS = ( 406 | "DEBUG=1", 407 | "$(inherited)", 408 | ); 409 | "GCC_PREPROCESSOR_DEFINITIONS[arch=*]" = ( 410 | "DEBUG=1", 411 | "$(inherited)", 412 | ); 413 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 414 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 415 | GCC_WARN_UNDECLARED_SELECTOR = YES; 416 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 417 | GCC_WARN_UNUSED_FUNCTION = YES; 418 | GCC_WARN_UNUSED_VARIABLE = YES; 419 | HEADER_SEARCH_PATHS = ""; 420 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 421 | MTL_ENABLE_DEBUG_INFO = YES; 422 | ONLY_ACTIVE_ARCH = YES; 423 | OTHER_LDFLAGS = "-ObjC"; 424 | SDKROOT = iphoneos; 425 | TARGETED_DEVICE_FAMILY = "1,2"; 426 | }; 427 | name = Debug; 428 | }; 429 | 3DB9E5541D83680100A4365A /* Release */ = { 430 | isa = XCBuildConfiguration; 431 | buildSettings = { 432 | ALWAYS_SEARCH_USER_PATHS = NO; 433 | CLANG_ANALYZER_NONNULL = YES; 434 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 435 | CLANG_CXX_LIBRARY = "libc++"; 436 | CLANG_ENABLE_MODULES = YES; 437 | CLANG_ENABLE_OBJC_ARC = YES; 438 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 439 | CLANG_WARN_BOOL_CONVERSION = YES; 440 | CLANG_WARN_COMMA = YES; 441 | CLANG_WARN_CONSTANT_CONVERSION = YES; 442 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 443 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 444 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 445 | CLANG_WARN_EMPTY_BODY = YES; 446 | CLANG_WARN_ENUM_CONVERSION = YES; 447 | CLANG_WARN_INFINITE_RECURSION = YES; 448 | CLANG_WARN_INT_CONVERSION = YES; 449 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 450 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 451 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 452 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 453 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 454 | CLANG_WARN_STRICT_PROTOTYPES = YES; 455 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 456 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 457 | CLANG_WARN_UNREACHABLE_CODE = YES; 458 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 459 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 460 | COPY_PHASE_STRIP = NO; 461 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 462 | ENABLE_NS_ASSERTIONS = NO; 463 | ENABLE_STRICT_OBJC_MSGSEND = YES; 464 | FRAMEWORK_SEARCH_PATHS = ""; 465 | GCC_C_LANGUAGE_STANDARD = gnu99; 466 | GCC_NO_COMMON_BLOCKS = YES; 467 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 468 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 469 | GCC_WARN_UNDECLARED_SELECTOR = YES; 470 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 471 | GCC_WARN_UNUSED_FUNCTION = YES; 472 | GCC_WARN_UNUSED_VARIABLE = YES; 473 | HEADER_SEARCH_PATHS = ""; 474 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 475 | MTL_ENABLE_DEBUG_INFO = NO; 476 | OTHER_LDFLAGS = "-ObjC"; 477 | SDKROOT = iphoneos; 478 | SWIFT_COMPILATION_MODE = wholemodule; 479 | TARGETED_DEVICE_FAMILY = "1,2"; 480 | VALIDATE_PRODUCT = YES; 481 | }; 482 | name = Release; 483 | }; 484 | 3DB9E5561D83680100A4365A /* Debug */ = { 485 | isa = XCBuildConfiguration; 486 | baseConfigurationReference = D7C65B8F86A5ED61007DF8CD /* Pods-BannerSample.debug.xcconfig */; 487 | buildSettings = { 488 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 489 | CODE_SIGN_ENTITLEMENTS = BannerSample/BannerSample.entitlements; 490 | DEVELOPMENT_TEAM = WZMMZ9FP6W; 491 | FRAMEWORK_SEARCH_PATHS = "$(inherited)"; 492 | INFOPLIST_FILE = BannerSample/Info.plist; 493 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 494 | LD_RUNPATH_SEARCH_PATHS = ( 495 | "$(inherited)", 496 | "@executable_path/Frameworks", 497 | ); 498 | PRODUCT_BUNDLE_IDENTIFIER = com.inmobi.BannerSample11; 499 | PRODUCT_NAME = "$(TARGET_NAME)"; 500 | }; 501 | name = Debug; 502 | }; 503 | 3DB9E5571D83680100A4365A /* Release */ = { 504 | isa = XCBuildConfiguration; 505 | baseConfigurationReference = 82EC8E68CD4B78569EF33AC6 /* Pods-BannerSample.release.xcconfig */; 506 | buildSettings = { 507 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 508 | CODE_SIGN_ENTITLEMENTS = BannerSample/BannerSample.entitlements; 509 | DEVELOPMENT_TEAM = WZMMZ9FP6W; 510 | FRAMEWORK_SEARCH_PATHS = "$(inherited)"; 511 | INFOPLIST_FILE = BannerSample/Info.plist; 512 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 513 | LD_RUNPATH_SEARCH_PATHS = ( 514 | "$(inherited)", 515 | "@executable_path/Frameworks", 516 | ); 517 | PRODUCT_BUNDLE_IDENTIFIER = com.inmobi.BannerSample11; 518 | PRODUCT_NAME = "$(TARGET_NAME)"; 519 | }; 520 | name = Release; 521 | }; 522 | 3DB9E56C1D83681A00A4365A /* Debug */ = { 523 | isa = XCBuildConfiguration; 524 | baseConfigurationReference = 3AB324243D6FB395DDAED777 /* Pods-BannerSwiftSample.debug.xcconfig */; 525 | buildSettings = { 526 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 527 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 528 | CODE_SIGN_STYLE = Automatic; 529 | DEVELOPMENT_TEAM = 867HB69W94; 530 | FRAMEWORK_SEARCH_PATHS = "$(inherited)"; 531 | INFOPLIST_FILE = BannerSwiftSample/Info.plist; 532 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 533 | LD_RUNPATH_SEARCH_PATHS = ( 534 | "$(inherited)", 535 | "@executable_path/Frameworks", 536 | ); 537 | PRODUCT_BUNDLE_IDENTIFIER = com.inmobi.BannerSwiftSample11; 538 | PRODUCT_NAME = "$(TARGET_NAME)"; 539 | PROVISIONING_PROFILE_SPECIFIER = ""; 540 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 541 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 542 | SWIFT_VERSION = 5.0; 543 | }; 544 | name = Debug; 545 | }; 546 | 3DB9E56D1D83681A00A4365A /* Release */ = { 547 | isa = XCBuildConfiguration; 548 | baseConfigurationReference = 3A1C30E531947AE71D9A4C8B /* Pods-BannerSwiftSample.release.xcconfig */; 549 | buildSettings = { 550 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 551 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 552 | CODE_SIGN_STYLE = Automatic; 553 | DEVELOPMENT_TEAM = 867HB69W94; 554 | FRAMEWORK_SEARCH_PATHS = "$(inherited)"; 555 | INFOPLIST_FILE = BannerSwiftSample/Info.plist; 556 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 557 | LD_RUNPATH_SEARCH_PATHS = ( 558 | "$(inherited)", 559 | "@executable_path/Frameworks", 560 | ); 561 | PRODUCT_BUNDLE_IDENTIFIER = com.inmobi.BannerSwiftSample11; 562 | PRODUCT_NAME = "$(TARGET_NAME)"; 563 | PROVISIONING_PROFILE_SPECIFIER = ""; 564 | SWIFT_COMPILATION_MODE = wholemodule; 565 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 566 | SWIFT_VERSION = 5.0; 567 | }; 568 | name = Release; 569 | }; 570 | /* End XCBuildConfiguration section */ 571 | 572 | /* Begin XCConfigurationList section */ 573 | 3DB9E5391D83680100A4365A /* Build configuration list for PBXProject "BannerSample" */ = { 574 | isa = XCConfigurationList; 575 | buildConfigurations = ( 576 | 3DB9E5531D83680100A4365A /* Debug */, 577 | 3DB9E5541D83680100A4365A /* Release */, 578 | ); 579 | defaultConfigurationIsVisible = 0; 580 | defaultConfigurationName = Release; 581 | }; 582 | 3DB9E5551D83680100A4365A /* Build configuration list for PBXNativeTarget "BannerSample" */ = { 583 | isa = XCConfigurationList; 584 | buildConfigurations = ( 585 | 3DB9E5561D83680100A4365A /* Debug */, 586 | 3DB9E5571D83680100A4365A /* Release */, 587 | ); 588 | defaultConfigurationIsVisible = 0; 589 | defaultConfigurationName = Release; 590 | }; 591 | 3DB9E56B1D83681A00A4365A /* Build configuration list for PBXNativeTarget "BannerSwiftSample" */ = { 592 | isa = XCConfigurationList; 593 | buildConfigurations = ( 594 | 3DB9E56C1D83681A00A4365A /* Debug */, 595 | 3DB9E56D1D83681A00A4365A /* Release */, 596 | ); 597 | defaultConfigurationIsVisible = 0; 598 | defaultConfigurationName = Release; 599 | }; 600 | /* End XCConfigurationList section */ 601 | }; 602 | rootObject = 3DB9E5361D83680100A4365A /* Project object */; 603 | } 604 | -------------------------------------------------------------------------------- /BannerSample/BannerSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /BannerSample/BannerSample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /BannerSample/BannerSample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /BannerSample/BannerSample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // BannerSample 4 | // 5 | // Copyright © 2016 InMobi. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | @interface AppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | 15 | @end 16 | 17 | -------------------------------------------------------------------------------- /BannerSample/BannerSample/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // BannerSample 4 | // 5 | // Copyright © 2016 InMobi. All rights reserved. 6 | // 7 | 8 | @import InMobiSDK; 9 | 10 | #ifndef INMOBI_ACCOUNT_ID 11 | #define INMOBI_ACCOUNT_ID @"4028cb8b2c3a0b45012c406824e800ba" 12 | #define US_PRIVACY_STRING @"" 13 | #endif 14 | 15 | #import "AppDelegate.h" 16 | 17 | @interface AppDelegate () 18 | 19 | @end 20 | 21 | @implementation AppDelegate 22 | 23 | 24 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 25 | // Override point for customization after application launch. 26 | /* 27 | * Initialize the InMobi SDK immediately after the app launches. 28 | * 29 | * For EU Region use the following init api to pass user consent for data collection, for GDPR Complaince. 30 | */ 31 | NSMutableDictionary *consentdict=[[NSMutableDictionary alloc]init]; 32 | [consentdict setObject:@"true" forKey:IMCommonConstants.IM_GDPR_CONSENT_AVAILABLE]; 33 | void (^completionBlock)(NSError*) = ^( NSError* _Nullable error) { 34 | if (error) { 35 | NSLog(@"SDK Initialization Error - %@", error.description); 36 | } 37 | else { 38 | NSLog(@"IM Mediation SDK successfully initialized"); 39 | } 40 | }; 41 | [IMSdk initWithAccountID:INMOBI_ACCOUNT_ID consentDictionary:consentdict andCompletionHandler:completionBlock]; 42 | 43 | 44 | /* 45 | * Enable logging for better debuggability. Please turn off the logs before submitting your App to the AppStore 46 | */ 47 | [IMSdk setLogLevel:IMSDKLogLevelDebug]; 48 | 49 | // Use the US Privacy Laws APIs to comply with privacy regulations 50 | [IMPrivacyCompliance setDoNotSell:YES]; 51 | [IMPrivacyCompliance setUSPrivacyString:US_PRIVACY_STRING]; 52 | 53 | return YES; 54 | } 55 | 56 | 57 | - (void)applicationWillResignActive:(UIApplication *)application { 58 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 59 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 60 | } 61 | 62 | 63 | - (void)applicationDidEnterBackground:(UIApplication *)application { 64 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 65 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 66 | } 67 | 68 | 69 | - (void)applicationWillEnterForeground:(UIApplication *)application { 70 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 71 | } 72 | 73 | 74 | - (void)applicationDidBecomeActive:(UIApplication *)application { 75 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 76 | } 77 | 78 | 79 | - (void)applicationWillTerminate:(UIApplication *)application { 80 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 81 | } 82 | 83 | 84 | @end 85 | -------------------------------------------------------------------------------- /BannerSample/BannerSample/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /BannerSample/BannerSample/BannerSample.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.developer.networking.wifi-info 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /BannerSample/BannerSample/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /BannerSample/BannerSample/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /BannerSample/BannerSample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | NSAppTransportSecurity 24 | 25 | NSAllowsArbitraryLoads 26 | 27 | 28 | UILaunchStoryboardName 29 | LaunchScreen 30 | UIMainStoryboardFile 31 | Main 32 | UIRequiredDeviceCapabilities 33 | 34 | armv7 35 | 36 | UISupportedInterfaceOrientations 37 | 38 | UIInterfaceOrientationPortrait 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UISupportedInterfaceOrientations~ipad 43 | 44 | UIInterfaceOrientationPortrait 45 | UIInterfaceOrientationPortraitUpsideDown 46 | UIInterfaceOrientationLandscapeLeft 47 | UIInterfaceOrientationLandscapeRight 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /BannerSample/BannerSample/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // BannerSample 4 | // 5 | // Copyright © 2016 InMobi. All rights reserved. 6 | // 7 | 8 | @import InMobiSDK; 9 | 10 | #import 11 | 12 | @interface ViewController : UIViewController 13 | 14 | @property (nonatomic, weak) IBOutlet IMBanner* bannerIB; 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /BannerSample/BannerSample/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // BannerSample 4 | // 5 | // Copyright © 2016 InMobi. All rights reserved. 6 | // 7 | 8 | #ifndef INMOBI_BANNER_PLACEMENT 9 | #define INMOBI_BANNER_PLACEMENT 1672335615808 10 | #endif 11 | 12 | #import "ViewController.h" 13 | 14 | @interface ViewController () 15 | 16 | @property (nonatomic, strong) IMBanner* banner; 17 | 18 | @end 19 | 20 | @implementation ViewController 21 | 22 | - (void)viewDidLoad { 23 | [super viewDidLoad]; 24 | // Do any additional setup after loading the view, typically from a nib. 25 | 26 | /* 27 | * Code to integrate an InMobi banner programmatically. 28 | * Provide a frame to your banner according to your requirements. 29 | */ 30 | 31 | self.banner = [[IMBanner alloc] initWithFrame:CGRectMake(0, 400, 320, 50) placementId:INMOBI_BANNER_PLACEMENT]; 32 | 33 | //Optional: set a delegate to be notified if the banner is loaded/failed etc. 34 | self.banner.delegate = self; 35 | 36 | [self.banner load]; 37 | 38 | [self.view addSubview:self.banner]; 39 | 40 | /* 41 | * Code to integrate an InMobi banner via Interface Builder 42 | */ 43 | 44 | self.bannerIB.placementId = INMOBI_BANNER_PLACEMENT; 45 | [self.bannerIB load]; 46 | 47 | } 48 | 49 | - (void)didReceiveMemoryWarning { 50 | [super didReceiveMemoryWarning]; 51 | // Dispose of any resources that can be recreated. 52 | } 53 | 54 | #pragma mark Banner callbacks 55 | 56 | /** 57 | * Notifies the delegate that the banner has finished loading 58 | */ 59 | -(void)bannerDidFinishLoading:(IMBanner*)banner { 60 | NSLog(@"InMobi Banner finished loading"); 61 | } 62 | /** 63 | * Notifies the delegate that the banner has failed to load with some error. 64 | */ 65 | -(void)banner:(IMBanner*)banner didFailToLoadWithError:(IMRequestStatus*)error { 66 | NSLog(@"InMobi Banner failed to load with error %@", error); 67 | } 68 | /** 69 | * Notifies the delegate that the banner was interacted with. 70 | */ 71 | -(void)banner:(IMBanner*)banner didInteractWithParams:(NSDictionary*)params { 72 | NSLog(@"InMobi Banner did interact with params : %@", params); 73 | } 74 | /** 75 | * Notifies the delegate that the user would be taken out of the application context. 76 | */ 77 | -(void)userWillLeaveApplicationFromBanner:(IMBanner*)banner { 78 | NSLog(@"User will leave application from InMobi Banner"); 79 | } 80 | /** 81 | * Notifies the delegate that the banner would be presenting a full screen content. 82 | */ 83 | -(void)bannerWillPresentScreen:(IMBanner*)banner { 84 | NSLog(@"InMobi Banner will present a screen"); 85 | } 86 | /** 87 | * Notifies the delegate that the banner has finished presenting screen. 88 | */ 89 | -(void)bannerDidPresentScreen:(IMBanner*)banner { 90 | NSLog(@"InMobi Banner finished presenting a screen"); 91 | } 92 | /** 93 | * Notifies the delegate that the banner will start dismissing the presented screen. 94 | */ 95 | -(void)bannerWillDismissScreen:(IMBanner*)banner { 96 | NSLog(@"InMobi Banner will dismiss a presented screen"); 97 | } 98 | /** 99 | * Notifies the delegate that the banner has dismissed the presented screen. 100 | */ 101 | -(void)bannerDidDismissScreen:(IMBanner*)banner { 102 | NSLog(@"InMobi Banner dismissed a presented screen"); 103 | } 104 | /** 105 | * Notifies the delegate that the user has completed the action to be incentivised with. 106 | */ 107 | -(void)banner:(IMBanner*)banner rewardActionCompletedWithRewards:(NSDictionary*)rewards { 108 | NSLog(@"InMobi Banner rewarded action completed. Rewards : %@", rewards); 109 | } 110 | 111 | /** 112 | * Notifies the delegate that the banner ad impressed. 113 | */ 114 | -(void)bannerAdImpressed:(IMBanner *)banner { 115 | NSLog(@"InMobi Banner Ad Impressed"); 116 | } 117 | 118 | @end 119 | -------------------------------------------------------------------------------- /BannerSample/BannerSample/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // BannerSample 4 | // 5 | // Copyright © 2016 InMobi. All rights reserved. 6 | // 7 | 8 | #import 9 | #import "AppDelegate.h" 10 | 11 | int main(int argc, char * argv[]) { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /BannerSample/BannerSwiftSample/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // BannerSwiftSample 4 | // 5 | // Copyright © 2016 InMobi. All rights reserved. 6 | // 7 | 8 | import InMobiSDK 9 | let INMOBI_ACCOUNT_ID: String = "4028cb8b2c3a0b45012c406824e800ba" 10 | 11 | import UIKit 12 | 13 | @UIApplicationMain 14 | class AppDelegate: UIResponder, UIApplicationDelegate { 15 | 16 | var window: UIWindow? 17 | 18 | 19 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 20 | /* 21 | * Enable logging for better debuggability. Please turn off the logs before submitting your App to the AppStore 22 | */ 23 | IMSdk.setLogLevel(IMSDKLogLevel.debug) 24 | /* 25 | * Initialize the InMobi SDK immediately after the app launches. 26 | * 27 | * For EU Region use the following init api to pass user consent for data collection, for GDPR Complaince. 28 | */ 29 | let conscentDict = [IMCommonConstants.IM_GDPR_CONSENT_AVAILABLE : "true"] 30 | IMSdk.initWithAccountID(INMOBI_ACCOUNT_ID, 31 | consentDictionary: conscentDict, 32 | andCompletionHandler: { (error) in 33 | if let err = error { 34 | print("\(err.localizedDescription)") 35 | } 36 | }) 37 | 38 | // Use the US Privacy Laws APIs to comply with privacy regulations 39 | let US_PRIVACY_STRING = "" 40 | IMPrivacyCompliance.setDoNotSell(true) 41 | IMPrivacyCompliance.setUSPrivacyString(US_PRIVACY_STRING) 42 | 43 | return true 44 | } 45 | 46 | func applicationWillResignActive(_ application: UIApplication) { 47 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 48 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 49 | } 50 | 51 | func applicationDidEnterBackground(_ application: UIApplication) { 52 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 53 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 54 | } 55 | 56 | func applicationWillEnterForeground(_ application: UIApplication) { 57 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 58 | } 59 | 60 | func applicationDidBecomeActive(_ application: UIApplication) { 61 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 62 | } 63 | 64 | func applicationWillTerminate(_ application: UIApplication) { 65 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 66 | } 67 | 68 | 69 | } 70 | 71 | -------------------------------------------------------------------------------- /BannerSample/BannerSwiftSample/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /BannerSample/BannerSwiftSample/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /BannerSample/BannerSwiftSample/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /BannerSample/BannerSwiftSample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | NSAppTransportSecurity 24 | 25 | NSAllowsArbitraryLoads 26 | 27 | 28 | UILaunchStoryboardName 29 | LaunchScreen 30 | UIMainStoryboardFile 31 | Main 32 | UIRequiredDeviceCapabilities 33 | 34 | armv7 35 | 36 | UISupportedInterfaceOrientations 37 | 38 | UIInterfaceOrientationPortrait 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UISupportedInterfaceOrientations~ipad 43 | 44 | UIInterfaceOrientationPortrait 45 | UIInterfaceOrientationPortraitUpsideDown 46 | UIInterfaceOrientationLandscapeLeft 47 | UIInterfaceOrientationLandscapeRight 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /BannerSample/BannerSwiftSample/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // BannerSwiftSample 4 | // 5 | // Copyright © 2016 InMobi. All rights reserved. 6 | // 7 | import InMobiSDK 8 | 9 | let INMOBI_BANNER_PLACEMENT: Int64 = 1672335615808 10 | 11 | import UIKit 12 | 13 | class ViewController: UIViewController, IMBannerDelegate { 14 | 15 | @IBOutlet var bannerIB :IMBanner? 16 | var banner: IMBanner? 17 | 18 | override func viewDidLoad() { 19 | super.viewDidLoad() 20 | // Do any additional setup after loading the view, typically from a nib. 21 | 22 | /* 23 | * Code to integrate an InMobi banner programmatically. 24 | * Provide a frame to your banner according to your requirements. 25 | */ 26 | banner = IMBanner(frame: CGRect(x:0, y:400, width:320, height:50), 27 | placementId: INMOBI_BANNER_PLACEMENT); 28 | banner!.delegate = self; 29 | banner!.load() 30 | self.view.addSubview(self.banner!); 31 | 32 | /* 33 | * Code to integrate an InMobi banner via Interface Builder 34 | */ 35 | 36 | bannerIB?.placementId = INMOBI_BANNER_PLACEMENT; 37 | bannerIB?.load(); 38 | 39 | } 40 | 41 | override func didReceiveMemoryWarning() { 42 | super.didReceiveMemoryWarning() 43 | // Dispose of any resources that can be recreated. 44 | } 45 | 46 | 47 | /** 48 | * Notifies the delegate that the banner has finished loading 49 | */ 50 | func bannerDidFinishLoading(_ banner: IMBanner) { 51 | print("InMobi Banner finished loading"); 52 | } 53 | 54 | /** 55 | * Notifies the delegate that the banner has failed to load with some error. 56 | */ 57 | func banner(_ banner: IMBanner, didFailToLoadWithError error: IMRequestStatus) { 58 | print("InMobi Banner failed to load with error : \(error.localizedDescription)"); 59 | } 60 | 61 | /** 62 | * Notifies the delegate that the banner was interacted with. 63 | */ 64 | func banner(_ banner: IMBanner, didInteractWithParams params: [String : Any]?) { 65 | print("InMobi Banner did interact with params : \(params as AnyObject)"); 66 | } 67 | 68 | /** 69 | * Notifies the delegate that the user would be taken out of the application context. 70 | */ 71 | func userWillLeaveApplicationFromBanner(_ banner: IMBanner) { 72 | print("InMobi Banner will leave application"); 73 | } 74 | 75 | /** 76 | * Notifies the delegate that the banner would be presenting a full screen content. 77 | */ 78 | func bannerWillPresentScreen(_ banner: IMBanner) { 79 | print("InMobi Banner will present a screen"); 80 | } 81 | 82 | /** 83 | * Notifies the delegate that the banner has finished presenting screen. 84 | */ 85 | func bannerDidPresentScreen(_ banner: IMBanner) { 86 | print("InMobi Banner presented a screen"); 87 | } 88 | 89 | /** 90 | * Notifies the delegate that the banner will start dismissing the presented screen. 91 | */ 92 | func bannerWillDismissScreen(_ banner: IMBanner) { 93 | print("InMobi Banner will dismiss a presented screen"); 94 | } 95 | 96 | /** 97 | * Notifies the delegate that the banner has dismissed the presented screen. 98 | */ 99 | func bannerDidDismissScreen(_ banner: IMBanner) { 100 | print("InMobi Banner dismissed a presented screen"); 101 | } 102 | 103 | /** 104 | * Notifies the delegate that the user has completed the action to be incentivised with. 105 | */ 106 | func banner(_ banner: IMBanner, rewardActionCompletedWithRewards rewards: [String : Any]) { 107 | print("InMobi Banner completed a rewarded action. Rewards : \(rewards as AnyObject)"); 108 | } 109 | 110 | /** 111 | * Notifies the delegate that the banner ad impressed. 112 | */ 113 | func bannerAdImpressed(_ banner: IMBanner) { 114 | print("InMobi Banner Ad Impressed"); 115 | } 116 | } 117 | 118 | -------------------------------------------------------------------------------- /BannerSample/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | # platform :ios, '11.0' 3 | 4 | target 'BannerSample' do 5 | # Comment the next line if you don't want to use dynamic frameworks 6 | use_frameworks! 7 | 8 | # Pods for BannerSample 9 | pod 'InMobiSDK' 10 | 11 | end 12 | 13 | target 'BannerSwiftSample' do 14 | # Comment the next line if you don't want to use dynamic frameworks 15 | use_frameworks! 16 | 17 | # Pods for BannerSwiftSample 18 | pod 'InMobiSDK' 19 | 20 | end 21 | -------------------------------------------------------------------------------- /InterstitialSample/InterstitialSample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 3DB9E57C1D83687900A4365A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 3DB9E57B1D83687900A4365A /* main.m */; }; 11 | 3DB9E57F1D83687900A4365A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 3DB9E57E1D83687900A4365A /* AppDelegate.m */; }; 12 | 3DB9E5821D83687900A4365A /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3DB9E5811D83687900A4365A /* ViewController.m */; }; 13 | 3DB9E5851D83687900A4365A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3DB9E5831D83687900A4365A /* Main.storyboard */; }; 14 | 3DB9E5871D83687900A4365A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3DB9E5861D83687900A4365A /* Assets.xcassets */; }; 15 | 3DB9E58A1D83687900A4365A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3DB9E5881D83687900A4365A /* LaunchScreen.storyboard */; }; 16 | 3DB9E5981D83688B00A4365A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3DB9E5971D83688B00A4365A /* AppDelegate.swift */; }; 17 | 3DB9E59A1D83688B00A4365A /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3DB9E5991D83688B00A4365A /* ViewController.swift */; }; 18 | 3DB9E59D1D83688B00A4365A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3DB9E59B1D83688B00A4365A /* Main.storyboard */; }; 19 | 3DB9E59F1D83688B00A4365A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3DB9E59E1D83688B00A4365A /* Assets.xcassets */; }; 20 | 3DB9E5A21D83688B00A4365A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3DB9E5A01D83688B00A4365A /* LaunchScreen.storyboard */; }; 21 | D528640F1201BF060F3300EB /* Pods_InterstitialSample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4A87D337B2FCC7345AF36A68 /* Pods_InterstitialSample.framework */; }; 22 | F340B17917A779D447F2BF87 /* Pods_InterstitialSwiftSample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B793C93127CC548906F7A49 /* Pods_InterstitialSwiftSample.framework */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXFileReference section */ 26 | 0B793C93127CC548906F7A49 /* Pods_InterstitialSwiftSample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_InterstitialSwiftSample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 27 | 259BF4EEC80AA20350789ECE /* Pods-InterstitialSample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-InterstitialSample.debug.xcconfig"; path = "Target Support Files/Pods-InterstitialSample/Pods-InterstitialSample.debug.xcconfig"; sourceTree = ""; }; 28 | 2E6C0FADA6EFAB1A3DB3ECFD /* Pods-InterstitialSwiftSample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-InterstitialSwiftSample.debug.xcconfig"; path = "Target Support Files/Pods-InterstitialSwiftSample/Pods-InterstitialSwiftSample.debug.xcconfig"; sourceTree = ""; }; 29 | 3DB9E5771D83687900A4365A /* InterstitialSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = InterstitialSample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 30 | 3DB9E57B1D83687900A4365A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 31 | 3DB9E57D1D83687900A4365A /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 32 | 3DB9E57E1D83687900A4365A /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 33 | 3DB9E5801D83687900A4365A /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 34 | 3DB9E5811D83687900A4365A /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 35 | 3DB9E5841D83687900A4365A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 36 | 3DB9E5861D83687900A4365A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 37 | 3DB9E5891D83687900A4365A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 38 | 3DB9E58B1D83687900A4365A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 39 | 3DB9E5951D83688B00A4365A /* InterstitialSwiftSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = InterstitialSwiftSample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | 3DB9E5971D83688B00A4365A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 41 | 3DB9E5991D83688B00A4365A /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 42 | 3DB9E59C1D83688B00A4365A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 43 | 3DB9E59E1D83688B00A4365A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 44 | 3DB9E5A11D83688B00A4365A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 45 | 3DB9E5A31D83688B00A4365A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 46 | 3DB9E6251D837B3D00A4365A /* InMobiSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = InMobiSDK.framework; path = ../InMobi/InMobiSDK.framework; sourceTree = ""; }; 47 | 3DB9E6271D837B4200A4365A /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; }; 48 | 3DB9E6291D837B4700A4365A /* libsqlite3.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libsqlite3.tbd; path = usr/lib/libsqlite3.tbd; sourceTree = SDKROOT; }; 49 | 4A87D337B2FCC7345AF36A68 /* Pods_InterstitialSample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_InterstitialSample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 831486BA006D06BC6786D106 /* Pods-InterstitialSwiftSample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-InterstitialSwiftSample.release.xcconfig"; path = "Target Support Files/Pods-InterstitialSwiftSample/Pods-InterstitialSwiftSample.release.xcconfig"; sourceTree = ""; }; 51 | D38D4CE56C123F1F9B6474F4 /* Pods-InterstitialSample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-InterstitialSample.release.xcconfig"; path = "Target Support Files/Pods-InterstitialSample/Pods-InterstitialSample.release.xcconfig"; sourceTree = ""; }; 52 | E16A52892345EF5200264C35 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; }; 53 | /* End PBXFileReference section */ 54 | 55 | /* Begin PBXFrameworksBuildPhase section */ 56 | 3DB9E5741D83687900A4365A /* Frameworks */ = { 57 | isa = PBXFrameworksBuildPhase; 58 | buildActionMask = 2147483647; 59 | files = ( 60 | D528640F1201BF060F3300EB /* Pods_InterstitialSample.framework in Frameworks */, 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | 3DB9E5921D83688B00A4365A /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | F340B17917A779D447F2BF87 /* Pods_InterstitialSwiftSample.framework in Frameworks */, 69 | ); 70 | runOnlyForDeploymentPostprocessing = 0; 71 | }; 72 | /* End PBXFrameworksBuildPhase section */ 73 | 74 | /* Begin PBXGroup section */ 75 | 2062AAB100B1F5B4CE867BDC /* Pods */ = { 76 | isa = PBXGroup; 77 | children = ( 78 | 259BF4EEC80AA20350789ECE /* Pods-InterstitialSample.debug.xcconfig */, 79 | D38D4CE56C123F1F9B6474F4 /* Pods-InterstitialSample.release.xcconfig */, 80 | 2E6C0FADA6EFAB1A3DB3ECFD /* Pods-InterstitialSwiftSample.debug.xcconfig */, 81 | 831486BA006D06BC6786D106 /* Pods-InterstitialSwiftSample.release.xcconfig */, 82 | ); 83 | path = Pods; 84 | sourceTree = ""; 85 | }; 86 | 3DB9E56E1D83687900A4365A = { 87 | isa = PBXGroup; 88 | children = ( 89 | 3DB9E5791D83687900A4365A /* InterstitialSample */, 90 | 3DB9E5961D83688B00A4365A /* InterstitialSwiftSample */, 91 | 3DB9E5781D83687900A4365A /* Products */, 92 | 3DB9E6241D837B3B00A4365A /* Frameworks */, 93 | 2062AAB100B1F5B4CE867BDC /* Pods */, 94 | ); 95 | sourceTree = ""; 96 | }; 97 | 3DB9E5781D83687900A4365A /* Products */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | 3DB9E5771D83687900A4365A /* InterstitialSample.app */, 101 | 3DB9E5951D83688B00A4365A /* InterstitialSwiftSample.app */, 102 | ); 103 | name = Products; 104 | sourceTree = ""; 105 | }; 106 | 3DB9E5791D83687900A4365A /* InterstitialSample */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | 3DB9E57D1D83687900A4365A /* AppDelegate.h */, 110 | 3DB9E57E1D83687900A4365A /* AppDelegate.m */, 111 | 3DB9E5801D83687900A4365A /* ViewController.h */, 112 | 3DB9E5811D83687900A4365A /* ViewController.m */, 113 | 3DB9E5831D83687900A4365A /* Main.storyboard */, 114 | 3DB9E5861D83687900A4365A /* Assets.xcassets */, 115 | 3DB9E5881D83687900A4365A /* LaunchScreen.storyboard */, 116 | 3DB9E58B1D83687900A4365A /* Info.plist */, 117 | 3DB9E57A1D83687900A4365A /* Supporting Files */, 118 | ); 119 | path = InterstitialSample; 120 | sourceTree = ""; 121 | }; 122 | 3DB9E57A1D83687900A4365A /* Supporting Files */ = { 123 | isa = PBXGroup; 124 | children = ( 125 | 3DB9E57B1D83687900A4365A /* main.m */, 126 | ); 127 | name = "Supporting Files"; 128 | sourceTree = ""; 129 | }; 130 | 3DB9E5961D83688B00A4365A /* InterstitialSwiftSample */ = { 131 | isa = PBXGroup; 132 | children = ( 133 | 3DB9E5971D83688B00A4365A /* AppDelegate.swift */, 134 | 3DB9E5991D83688B00A4365A /* ViewController.swift */, 135 | 3DB9E59B1D83688B00A4365A /* Main.storyboard */, 136 | 3DB9E59E1D83688B00A4365A /* Assets.xcassets */, 137 | 3DB9E5A01D83688B00A4365A /* LaunchScreen.storyboard */, 138 | 3DB9E5A31D83688B00A4365A /* Info.plist */, 139 | ); 140 | path = InterstitialSwiftSample; 141 | sourceTree = ""; 142 | }; 143 | 3DB9E6241D837B3B00A4365A /* Frameworks */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | E16A52892345EF5200264C35 /* WebKit.framework */, 147 | 3DB9E6291D837B4700A4365A /* libsqlite3.tbd */, 148 | 3DB9E6271D837B4200A4365A /* libz.tbd */, 149 | 3DB9E6251D837B3D00A4365A /* InMobiSDK.framework */, 150 | 4A87D337B2FCC7345AF36A68 /* Pods_InterstitialSample.framework */, 151 | 0B793C93127CC548906F7A49 /* Pods_InterstitialSwiftSample.framework */, 152 | ); 153 | name = Frameworks; 154 | sourceTree = ""; 155 | }; 156 | /* End PBXGroup section */ 157 | 158 | /* Begin PBXNativeTarget section */ 159 | 3DB9E5761D83687900A4365A /* InterstitialSample */ = { 160 | isa = PBXNativeTarget; 161 | buildConfigurationList = 3DB9E58E1D83687900A4365A /* Build configuration list for PBXNativeTarget "InterstitialSample" */; 162 | buildPhases = ( 163 | 087444E39C972D9C063656FD /* [CP] Check Pods Manifest.lock */, 164 | 3DB9E5731D83687900A4365A /* Sources */, 165 | 3DB9E5741D83687900A4365A /* Frameworks */, 166 | 3DB9E5751D83687900A4365A /* Resources */, 167 | ); 168 | buildRules = ( 169 | ); 170 | dependencies = ( 171 | ); 172 | name = InterstitialSample; 173 | productName = InterstitialSample; 174 | productReference = 3DB9E5771D83687900A4365A /* InterstitialSample.app */; 175 | productType = "com.apple.product-type.application"; 176 | }; 177 | 3DB9E5941D83688B00A4365A /* InterstitialSwiftSample */ = { 178 | isa = PBXNativeTarget; 179 | buildConfigurationList = 3DB9E5A41D83688B00A4365A /* Build configuration list for PBXNativeTarget "InterstitialSwiftSample" */; 180 | buildPhases = ( 181 | DAE3BC6C9051DCC3CBBB9954 /* [CP] Check Pods Manifest.lock */, 182 | 3DB9E5911D83688B00A4365A /* Sources */, 183 | 3DB9E5921D83688B00A4365A /* Frameworks */, 184 | 3DB9E5931D83688B00A4365A /* Resources */, 185 | ); 186 | buildRules = ( 187 | ); 188 | dependencies = ( 189 | ); 190 | name = InterstitialSwiftSample; 191 | productName = InterstitialSwiftSample; 192 | productReference = 3DB9E5951D83688B00A4365A /* InterstitialSwiftSample.app */; 193 | productType = "com.apple.product-type.application"; 194 | }; 195 | /* End PBXNativeTarget section */ 196 | 197 | /* Begin PBXProject section */ 198 | 3DB9E56F1D83687900A4365A /* Project object */ = { 199 | isa = PBXProject; 200 | attributes = { 201 | LastSwiftUpdateCheck = 0800; 202 | LastUpgradeCheck = 1100; 203 | ORGANIZATIONNAME = InMobi; 204 | TargetAttributes = { 205 | 3DB9E5761D83687900A4365A = { 206 | CreatedOnToolsVersion = 8.0; 207 | ProvisioningStyle = Automatic; 208 | }; 209 | 3DB9E5941D83688B00A4365A = { 210 | CreatedOnToolsVersion = 8.0; 211 | ProvisioningStyle = Automatic; 212 | }; 213 | }; 214 | }; 215 | buildConfigurationList = 3DB9E5721D83687900A4365A /* Build configuration list for PBXProject "InterstitialSample" */; 216 | compatibilityVersion = "Xcode 9.3"; 217 | developmentRegion = en; 218 | hasScannedForEncodings = 0; 219 | knownRegions = ( 220 | en, 221 | Base, 222 | ); 223 | mainGroup = 3DB9E56E1D83687900A4365A; 224 | productRefGroup = 3DB9E5781D83687900A4365A /* Products */; 225 | projectDirPath = ""; 226 | projectRoot = ""; 227 | targets = ( 228 | 3DB9E5761D83687900A4365A /* InterstitialSample */, 229 | 3DB9E5941D83688B00A4365A /* InterstitialSwiftSample */, 230 | ); 231 | }; 232 | /* End PBXProject section */ 233 | 234 | /* Begin PBXResourcesBuildPhase section */ 235 | 3DB9E5751D83687900A4365A /* Resources */ = { 236 | isa = PBXResourcesBuildPhase; 237 | buildActionMask = 2147483647; 238 | files = ( 239 | 3DB9E58A1D83687900A4365A /* LaunchScreen.storyboard in Resources */, 240 | 3DB9E5871D83687900A4365A /* Assets.xcassets in Resources */, 241 | 3DB9E5851D83687900A4365A /* Main.storyboard in Resources */, 242 | ); 243 | runOnlyForDeploymentPostprocessing = 0; 244 | }; 245 | 3DB9E5931D83688B00A4365A /* Resources */ = { 246 | isa = PBXResourcesBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | 3DB9E5A21D83688B00A4365A /* LaunchScreen.storyboard in Resources */, 250 | 3DB9E59F1D83688B00A4365A /* Assets.xcassets in Resources */, 251 | 3DB9E59D1D83688B00A4365A /* Main.storyboard in Resources */, 252 | ); 253 | runOnlyForDeploymentPostprocessing = 0; 254 | }; 255 | /* End PBXResourcesBuildPhase section */ 256 | 257 | /* Begin PBXShellScriptBuildPhase section */ 258 | 087444E39C972D9C063656FD /* [CP] Check Pods Manifest.lock */ = { 259 | isa = PBXShellScriptBuildPhase; 260 | buildActionMask = 2147483647; 261 | files = ( 262 | ); 263 | inputFileListPaths = ( 264 | ); 265 | inputPaths = ( 266 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 267 | "${PODS_ROOT}/Manifest.lock", 268 | ); 269 | name = "[CP] Check Pods Manifest.lock"; 270 | outputFileListPaths = ( 271 | ); 272 | outputPaths = ( 273 | "$(DERIVED_FILE_DIR)/Pods-InterstitialSample-checkManifestLockResult.txt", 274 | ); 275 | runOnlyForDeploymentPostprocessing = 0; 276 | shellPath = /bin/sh; 277 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 278 | showEnvVarsInLog = 0; 279 | }; 280 | DAE3BC6C9051DCC3CBBB9954 /* [CP] Check Pods Manifest.lock */ = { 281 | isa = PBXShellScriptBuildPhase; 282 | buildActionMask = 2147483647; 283 | files = ( 284 | ); 285 | inputFileListPaths = ( 286 | ); 287 | inputPaths = ( 288 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 289 | "${PODS_ROOT}/Manifest.lock", 290 | ); 291 | name = "[CP] Check Pods Manifest.lock"; 292 | outputFileListPaths = ( 293 | ); 294 | outputPaths = ( 295 | "$(DERIVED_FILE_DIR)/Pods-InterstitialSwiftSample-checkManifestLockResult.txt", 296 | ); 297 | runOnlyForDeploymentPostprocessing = 0; 298 | shellPath = /bin/sh; 299 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 300 | showEnvVarsInLog = 0; 301 | }; 302 | /* End PBXShellScriptBuildPhase section */ 303 | 304 | /* Begin PBXSourcesBuildPhase section */ 305 | 3DB9E5731D83687900A4365A /* Sources */ = { 306 | isa = PBXSourcesBuildPhase; 307 | buildActionMask = 2147483647; 308 | files = ( 309 | 3DB9E5821D83687900A4365A /* ViewController.m in Sources */, 310 | 3DB9E57F1D83687900A4365A /* AppDelegate.m in Sources */, 311 | 3DB9E57C1D83687900A4365A /* main.m in Sources */, 312 | ); 313 | runOnlyForDeploymentPostprocessing = 0; 314 | }; 315 | 3DB9E5911D83688B00A4365A /* Sources */ = { 316 | isa = PBXSourcesBuildPhase; 317 | buildActionMask = 2147483647; 318 | files = ( 319 | 3DB9E59A1D83688B00A4365A /* ViewController.swift in Sources */, 320 | 3DB9E5981D83688B00A4365A /* AppDelegate.swift in Sources */, 321 | ); 322 | runOnlyForDeploymentPostprocessing = 0; 323 | }; 324 | /* End PBXSourcesBuildPhase section */ 325 | 326 | /* Begin PBXVariantGroup section */ 327 | 3DB9E5831D83687900A4365A /* Main.storyboard */ = { 328 | isa = PBXVariantGroup; 329 | children = ( 330 | 3DB9E5841D83687900A4365A /* Base */, 331 | ); 332 | name = Main.storyboard; 333 | sourceTree = ""; 334 | }; 335 | 3DB9E5881D83687900A4365A /* LaunchScreen.storyboard */ = { 336 | isa = PBXVariantGroup; 337 | children = ( 338 | 3DB9E5891D83687900A4365A /* Base */, 339 | ); 340 | name = LaunchScreen.storyboard; 341 | sourceTree = ""; 342 | }; 343 | 3DB9E59B1D83688B00A4365A /* Main.storyboard */ = { 344 | isa = PBXVariantGroup; 345 | children = ( 346 | 3DB9E59C1D83688B00A4365A /* Base */, 347 | ); 348 | name = Main.storyboard; 349 | sourceTree = ""; 350 | }; 351 | 3DB9E5A01D83688B00A4365A /* LaunchScreen.storyboard */ = { 352 | isa = PBXVariantGroup; 353 | children = ( 354 | 3DB9E5A11D83688B00A4365A /* Base */, 355 | ); 356 | name = LaunchScreen.storyboard; 357 | sourceTree = ""; 358 | }; 359 | /* End PBXVariantGroup section */ 360 | 361 | /* Begin XCBuildConfiguration section */ 362 | 3DB9E58C1D83687900A4365A /* Debug */ = { 363 | isa = XCBuildConfiguration; 364 | buildSettings = { 365 | ALWAYS_SEARCH_USER_PATHS = NO; 366 | CLANG_ANALYZER_NONNULL = YES; 367 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 368 | CLANG_CXX_LIBRARY = "libc++"; 369 | CLANG_ENABLE_MODULES = YES; 370 | CLANG_ENABLE_OBJC_ARC = YES; 371 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 372 | CLANG_WARN_BOOL_CONVERSION = YES; 373 | CLANG_WARN_COMMA = YES; 374 | CLANG_WARN_CONSTANT_CONVERSION = YES; 375 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 376 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 377 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 378 | CLANG_WARN_EMPTY_BODY = YES; 379 | CLANG_WARN_ENUM_CONVERSION = YES; 380 | CLANG_WARN_INFINITE_RECURSION = YES; 381 | CLANG_WARN_INT_CONVERSION = YES; 382 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 383 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 384 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 385 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 386 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 387 | CLANG_WARN_STRICT_PROTOTYPES = YES; 388 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 389 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 390 | CLANG_WARN_UNREACHABLE_CODE = YES; 391 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 392 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 393 | COPY_PHASE_STRIP = NO; 394 | DEBUG_INFORMATION_FORMAT = dwarf; 395 | ENABLE_STRICT_OBJC_MSGSEND = YES; 396 | ENABLE_TESTABILITY = YES; 397 | FRAMEWORK_SEARCH_PATHS = ""; 398 | GCC_C_LANGUAGE_STANDARD = gnu99; 399 | GCC_DYNAMIC_NO_PIC = NO; 400 | GCC_NO_COMMON_BLOCKS = YES; 401 | GCC_OPTIMIZATION_LEVEL = 0; 402 | GCC_PREPROCESSOR_DEFINITIONS = ( 403 | "DEBUG=1", 404 | "$(inherited)", 405 | ); 406 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 407 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 408 | GCC_WARN_UNDECLARED_SELECTOR = YES; 409 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 410 | GCC_WARN_UNUSED_FUNCTION = YES; 411 | GCC_WARN_UNUSED_VARIABLE = YES; 412 | HEADER_SEARCH_PATHS = ""; 413 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 414 | MTL_ENABLE_DEBUG_INFO = YES; 415 | ONLY_ACTIVE_ARCH = YES; 416 | OTHER_LDFLAGS = "$(inherited)"; 417 | SDKROOT = iphoneos; 418 | TARGETED_DEVICE_FAMILY = "1,2"; 419 | }; 420 | name = Debug; 421 | }; 422 | 3DB9E58D1D83687900A4365A /* Release */ = { 423 | isa = XCBuildConfiguration; 424 | buildSettings = { 425 | ALWAYS_SEARCH_USER_PATHS = NO; 426 | CLANG_ANALYZER_NONNULL = YES; 427 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 428 | CLANG_CXX_LIBRARY = "libc++"; 429 | CLANG_ENABLE_MODULES = YES; 430 | CLANG_ENABLE_OBJC_ARC = YES; 431 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 432 | CLANG_WARN_BOOL_CONVERSION = YES; 433 | CLANG_WARN_COMMA = YES; 434 | CLANG_WARN_CONSTANT_CONVERSION = YES; 435 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 436 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 437 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 438 | CLANG_WARN_EMPTY_BODY = YES; 439 | CLANG_WARN_ENUM_CONVERSION = YES; 440 | CLANG_WARN_INFINITE_RECURSION = YES; 441 | CLANG_WARN_INT_CONVERSION = YES; 442 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 443 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 444 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 445 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 446 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 447 | CLANG_WARN_STRICT_PROTOTYPES = YES; 448 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 449 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 450 | CLANG_WARN_UNREACHABLE_CODE = YES; 451 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 452 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 453 | COPY_PHASE_STRIP = NO; 454 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 455 | ENABLE_NS_ASSERTIONS = NO; 456 | ENABLE_STRICT_OBJC_MSGSEND = YES; 457 | FRAMEWORK_SEARCH_PATHS = ""; 458 | GCC_C_LANGUAGE_STANDARD = gnu99; 459 | GCC_NO_COMMON_BLOCKS = YES; 460 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 461 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 462 | GCC_WARN_UNDECLARED_SELECTOR = YES; 463 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 464 | GCC_WARN_UNUSED_FUNCTION = YES; 465 | GCC_WARN_UNUSED_VARIABLE = YES; 466 | HEADER_SEARCH_PATHS = ""; 467 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 468 | MTL_ENABLE_DEBUG_INFO = NO; 469 | OTHER_LDFLAGS = "$(inherited)"; 470 | SDKROOT = iphoneos; 471 | SWIFT_COMPILATION_MODE = wholemodule; 472 | TARGETED_DEVICE_FAMILY = "1,2"; 473 | VALIDATE_PRODUCT = YES; 474 | }; 475 | name = Release; 476 | }; 477 | 3DB9E58F1D83687900A4365A /* Debug */ = { 478 | isa = XCBuildConfiguration; 479 | baseConfigurationReference = 259BF4EEC80AA20350789ECE /* Pods-InterstitialSample.debug.xcconfig */; 480 | buildSettings = { 481 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 482 | DEVELOPMENT_TEAM = WZMMZ9FP6W; 483 | FRAMEWORK_SEARCH_PATHS = "$(inherited)"; 484 | HEADER_SEARCH_PATHS = ""; 485 | INFOPLIST_FILE = InterstitialSample/Info.plist; 486 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 487 | LD_RUNPATH_SEARCH_PATHS = ( 488 | "$(inherited)", 489 | "@executable_path/Frameworks", 490 | ); 491 | OTHER_LDFLAGS = "$(inherited)"; 492 | PRODUCT_BUNDLE_IDENTIFIER = com.inmobi.InterstitialSample; 493 | PRODUCT_NAME = "$(TARGET_NAME)"; 494 | }; 495 | name = Debug; 496 | }; 497 | 3DB9E5901D83687900A4365A /* Release */ = { 498 | isa = XCBuildConfiguration; 499 | baseConfigurationReference = D38D4CE56C123F1F9B6474F4 /* Pods-InterstitialSample.release.xcconfig */; 500 | buildSettings = { 501 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 502 | DEVELOPMENT_TEAM = WZMMZ9FP6W; 503 | FRAMEWORK_SEARCH_PATHS = "$(inherited)"; 504 | HEADER_SEARCH_PATHS = ""; 505 | INFOPLIST_FILE = InterstitialSample/Info.plist; 506 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 507 | LD_RUNPATH_SEARCH_PATHS = ( 508 | "$(inherited)", 509 | "@executable_path/Frameworks", 510 | ); 511 | OTHER_LDFLAGS = "$(inherited)"; 512 | PRODUCT_BUNDLE_IDENTIFIER = com.inmobi.InterstitialSample; 513 | PRODUCT_NAME = "$(TARGET_NAME)"; 514 | }; 515 | name = Release; 516 | }; 517 | 3DB9E5A51D83688B00A4365A /* Debug */ = { 518 | isa = XCBuildConfiguration; 519 | baseConfigurationReference = 2E6C0FADA6EFAB1A3DB3ECFD /* Pods-InterstitialSwiftSample.debug.xcconfig */; 520 | buildSettings = { 521 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 522 | INFOPLIST_FILE = InterstitialSwiftSample/Info.plist; 523 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 524 | LD_RUNPATH_SEARCH_PATHS = ( 525 | "$(inherited)", 526 | "@executable_path/Frameworks", 527 | ); 528 | OTHER_LDFLAGS = "$(inherited)"; 529 | PRODUCT_BUNDLE_IDENTIFIER = com.inmobi.InterstitialSwiftSample; 530 | PRODUCT_NAME = "$(TARGET_NAME)"; 531 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 532 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 533 | SWIFT_VERSION = 5.0; 534 | }; 535 | name = Debug; 536 | }; 537 | 3DB9E5A61D83688B00A4365A /* Release */ = { 538 | isa = XCBuildConfiguration; 539 | baseConfigurationReference = 831486BA006D06BC6786D106 /* Pods-InterstitialSwiftSample.release.xcconfig */; 540 | buildSettings = { 541 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 542 | INFOPLIST_FILE = InterstitialSwiftSample/Info.plist; 543 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 544 | LD_RUNPATH_SEARCH_PATHS = ( 545 | "$(inherited)", 546 | "@executable_path/Frameworks", 547 | ); 548 | OTHER_LDFLAGS = "$(inherited)"; 549 | PRODUCT_BUNDLE_IDENTIFIER = com.inmobi.InterstitialSwiftSample; 550 | PRODUCT_NAME = "$(TARGET_NAME)"; 551 | SWIFT_COMPILATION_MODE = wholemodule; 552 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 553 | SWIFT_VERSION = 5.0; 554 | }; 555 | name = Release; 556 | }; 557 | /* End XCBuildConfiguration section */ 558 | 559 | /* Begin XCConfigurationList section */ 560 | 3DB9E5721D83687900A4365A /* Build configuration list for PBXProject "InterstitialSample" */ = { 561 | isa = XCConfigurationList; 562 | buildConfigurations = ( 563 | 3DB9E58C1D83687900A4365A /* Debug */, 564 | 3DB9E58D1D83687900A4365A /* Release */, 565 | ); 566 | defaultConfigurationIsVisible = 0; 567 | defaultConfigurationName = Release; 568 | }; 569 | 3DB9E58E1D83687900A4365A /* Build configuration list for PBXNativeTarget "InterstitialSample" */ = { 570 | isa = XCConfigurationList; 571 | buildConfigurations = ( 572 | 3DB9E58F1D83687900A4365A /* Debug */, 573 | 3DB9E5901D83687900A4365A /* Release */, 574 | ); 575 | defaultConfigurationIsVisible = 0; 576 | defaultConfigurationName = Release; 577 | }; 578 | 3DB9E5A41D83688B00A4365A /* Build configuration list for PBXNativeTarget "InterstitialSwiftSample" */ = { 579 | isa = XCConfigurationList; 580 | buildConfigurations = ( 581 | 3DB9E5A51D83688B00A4365A /* Debug */, 582 | 3DB9E5A61D83688B00A4365A /* Release */, 583 | ); 584 | defaultConfigurationIsVisible = 0; 585 | defaultConfigurationName = Release; 586 | }; 587 | /* End XCConfigurationList section */ 588 | }; 589 | rootObject = 3DB9E56F1D83687900A4365A /* Project object */; 590 | } 591 | -------------------------------------------------------------------------------- /InterstitialSample/InterstitialSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /InterstitialSample/InterstitialSample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /InterstitialSample/InterstitialSample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /InterstitialSample/InterstitialSample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /InterstitialSample/InterstitialSample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // InterstitialSample 4 | // 5 | // Copyright © 2016 InMobi. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | @interface AppDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow *window; 13 | 14 | 15 | @end 16 | 17 | -------------------------------------------------------------------------------- /InterstitialSample/InterstitialSample/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // InterstitialSample 4 | // 5 | // Copyright © 2016 InMobi. All rights reserved. 6 | // 7 | 8 | @import InMobiSDK; 9 | 10 | /** 11 | * This is a sample Account ID. Please do not use this ID in production. 12 | */ 13 | 14 | #ifndef INMOBI_ACCOUNT_ID 15 | #define INMOBI_ACCOUNT_ID @"4028cb8b2c3a0b45012c406824e800ba" 16 | #define US_PRIVACY_STRING @"" 17 | #endif 18 | 19 | #import "AppDelegate.h" 20 | 21 | @interface AppDelegate () 22 | 23 | @end 24 | 25 | @implementation AppDelegate 26 | 27 | 28 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 29 | // Override point for customization after application launch. 30 | /* 31 | * Initialize the InMobi SDK immediately after the app launches. 32 | * 33 | * For EU Region use the following init api to pass user consent for data collection, for GDPR Complaince. 34 | */ 35 | NSMutableDictionary *consentdict=[[NSMutableDictionary alloc]init]; 36 | [consentdict setObject:@"true" forKey:IMCommonConstants.IM_GDPR_CONSENT_AVAILABLE]; 37 | void (^completionBlock)(NSError*) = ^( NSError* _Nullable error) { 38 | if (error) { 39 | NSLog(@"SDK Initialization Error - %@", error.description); 40 | } 41 | else { 42 | NSLog(@"IM Mediation SDK successfully initialized"); 43 | } 44 | }; 45 | [IMSdk initWithAccountID:INMOBI_ACCOUNT_ID consentDictionary:consentdict andCompletionHandler:completionBlock]; 46 | 47 | /* 48 | * Enable logging for better debuggability. Please turn off the logs before submitting your App to the AppStore 49 | */ 50 | [IMSdk setLogLevel:IMSDKLogLevelDebug]; 51 | 52 | // Use the US Privacy Laws APIs to comply with privacy regulations 53 | [IMPrivacyCompliance setDoNotSell:YES]; 54 | [IMPrivacyCompliance setUSPrivacyString:US_PRIVACY_STRING]; 55 | 56 | return YES; 57 | } 58 | 59 | 60 | - (void)applicationWillResignActive:(UIApplication *)application { 61 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 62 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 63 | } 64 | 65 | 66 | - (void)applicationDidEnterBackground:(UIApplication *)application { 67 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 68 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 69 | } 70 | 71 | 72 | - (void)applicationWillEnterForeground:(UIApplication *)application { 73 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 74 | } 75 | 76 | 77 | - (void)applicationDidBecomeActive:(UIApplication *)application { 78 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 79 | } 80 | 81 | 82 | - (void)applicationWillTerminate:(UIApplication *)application { 83 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 84 | } 85 | 86 | 87 | @end 88 | -------------------------------------------------------------------------------- /InterstitialSample/InterstitialSample/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /InterstitialSample/InterstitialSample/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /InterstitialSample/InterstitialSample/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /InterstitialSample/InterstitialSample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | NSAppTransportSecurity 24 | 25 | NSAllowsArbitraryLoads 26 | 27 | 28 | UILaunchStoryboardName 29 | LaunchScreen 30 | UIMainStoryboardFile 31 | Main 32 | UIRequiredDeviceCapabilities 33 | 34 | armv7 35 | 36 | UISupportedInterfaceOrientations 37 | 38 | UIInterfaceOrientationPortrait 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UISupportedInterfaceOrientations~ipad 43 | 44 | UIInterfaceOrientationPortrait 45 | UIInterfaceOrientationPortraitUpsideDown 46 | UIInterfaceOrientationLandscapeLeft 47 | UIInterfaceOrientationLandscapeRight 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /InterstitialSample/InterstitialSample/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // InterstitialSample 4 | // 5 | // Copyright © 2016 InMobi. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | @interface ViewController : UIViewController 11 | 12 | 13 | @end 14 | 15 | -------------------------------------------------------------------------------- /InterstitialSample/InterstitialSample/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // InterstitialSample 4 | // 5 | // Copyright © 2016 InMobi. All rights reserved. 6 | // 7 | 8 | @import InMobiSDK; 9 | 10 | #ifndef INMOBI_INTERSTITIAL_PLACEMENT 11 | #define INMOBI_INTERSTITIAL_PLACEMENT 1672200162238 12 | #endif 13 | 14 | #import "ViewController.h" 15 | 16 | @interface ViewController () 17 | @property (nonatomic, strong) IMInterstitial* interstitial; 18 | @end 19 | 20 | @implementation ViewController 21 | 22 | - (void)viewDidLoad { 23 | [super viewDidLoad]; 24 | // Do any additional setup after loading the view, typically from a nib. 25 | 26 | self.interstitial = [[IMInterstitial alloc] initWithPlacementId:INMOBI_INTERSTITIAL_PLACEMENT delegate:self]; 27 | [self.interstitial load]; 28 | } 29 | 30 | 31 | - (void)didReceiveMemoryWarning { 32 | [super didReceiveMemoryWarning]; 33 | // Dispose of any resources that can be recreated. 34 | } 35 | 36 | /** 37 | * Notifies the delegate that the ad server has returned an ad. Assets are not yet available. 38 | * Please use interstitialDidFinishLoading: to receive a callback when assets are also available. 39 | */ 40 | -(void)interstitialDidReceiveAd:(IMInterstitial *)interstitial { 41 | NSLog(@"*****InMobi Interstitial received an ad"); 42 | } 43 | /** 44 | * Notifies the delegate that the interstitial has finished loading and can be shown instantly. 45 | */ 46 | -(void)interstitialDidFinishLoading:(IMInterstitial*)interstitial { 47 | NSLog(@"*****InMobi Interstitial finished loading"); 48 | if (interstitial.isReady) { 49 | [interstitial showFrom:self]; 50 | } 51 | } 52 | /** 53 | * Notifies the delegate that the interstitial has failed to load with some error. 54 | */ 55 | -(void)interstitial:(IMInterstitial*)interstitial didFailToLoadWithError:(IMRequestStatus*)error { 56 | NSLog(@"*****InMobi Interstitial failed to load with error : %@", error); 57 | } 58 | /** 59 | * Notifies the delegate that the interstitial would be presented. 60 | */ 61 | -(void)interstitialWillPresent:(IMInterstitial*)interstitial { 62 | NSLog(@"*****InMobi Interstitial will be presented"); 63 | } 64 | /** 65 | * Notifies the delegate that the interstitial has been presented. 66 | */ 67 | -(void)interstitialDidPresent:(IMInterstitial *)interstitial { 68 | NSLog(@"*****InMobi Interstitial has been presented"); 69 | } 70 | /** 71 | * Notifies the delegate that the interstitial has failed to present with some error. 72 | */ 73 | -(void)interstitial:(IMInterstitial*)interstitial didFailToPresentWithError:(IMRequestStatus*)error { 74 | NSLog(@"*****InMobi Interstitial has failed to present with error : %@", error); 75 | } 76 | /** 77 | * Notifies the delegate that the interstitial will be dismissed. 78 | */ 79 | -(void)interstitialWillDismiss:(IMInterstitial*)interstitial { 80 | NSLog(@"*****InMobi Interstitial will be dismissed"); 81 | } 82 | /** 83 | * Notifies the delegate that the interstitial has been dismissed. 84 | */ 85 | -(void)interstitialDidDismiss:(IMInterstitial*)interstitial { 86 | NSLog(@"*****InMobi Interstitial has been dismissed"); 87 | } 88 | /** 89 | * Notifies the delegate that the interstitial has been interacted with. 90 | */ 91 | -(void)interstitial:(IMInterstitial*)interstitial didInteractWithParams:(NSDictionary*)params { 92 | NSLog(@"*****InMobi Interstitial did interact with params : %@", params); 93 | } 94 | /** 95 | * Notifies the delegate that the user has performed the action to be incentivised with. 96 | */ 97 | -(void)interstitial:(IMInterstitial*)interstitial rewardActionCompletedWithRewards:(NSDictionary*)rewards { 98 | NSLog(@"*****InMobi Interstitial completed rewarded action. Rewards : %@", rewards); 99 | } 100 | /** 101 | * Notifies the delegate that the user will leave application context. 102 | */ 103 | -(void)userWillLeaveApplicationFromInterstitial:(IMInterstitial*)interstitial { 104 | NSLog(@"*****User will leave the application from InMobi Interstitial"); 105 | } 106 | /** 107 | * Notifies the delegate that the interstitial ad Impressed. 108 | */ 109 | -(void)interstitialAdImpressed:(IMInterstitial *)interstitial { 110 | NSLog(@"*****InMobi Interstitial ad Impressed"); 111 | } 112 | 113 | @end 114 | -------------------------------------------------------------------------------- /InterstitialSample/InterstitialSample/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // InterstitialSample 4 | // 5 | // Copyright © 2016 InMobi. All rights reserved. 6 | // 7 | 8 | #import 9 | #import "AppDelegate.h" 10 | 11 | int main(int argc, char * argv[]) { 12 | @autoreleasepool { 13 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /InterstitialSample/InterstitialSwiftSample/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // InterstitialSwiftSample 4 | // 5 | // Copyright © 2016 InMobi. All rights reserved. 6 | // 7 | 8 | import InMobiSDK 9 | let INMOBI_ACCOUNT_ID: String = "4028cb8b2c3a0b45012c406824e800ba" 10 | 11 | import UIKit 12 | 13 | @UIApplicationMain 14 | class AppDelegate: UIResponder, UIApplicationDelegate { 15 | 16 | var window: UIWindow? 17 | 18 | 19 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 20 | // Override point for customization after application launch. 21 | /* 22 | * Initialize the InMobi SDK immediately after the app launches. 23 | * 24 | *For EU Region use the following init api to pass user consent for data collection, for GDPR Complaince. 25 | */ 26 | let conscentDict = [IMCommonConstants.IM_GDPR_CONSENT_AVAILABLE : "true"] 27 | IMSdk.initWithAccountID(INMOBI_ACCOUNT_ID, consentDictionary: conscentDict, andCompletionHandler: { (error) in 28 | if let err = error { 29 | print("\(err.localizedDescription)") 30 | } 31 | }) 32 | /* 33 | * Enable logging for better debuggability. Please turn off the logs before submitting your App to the AppStore 34 | */ 35 | IMSdk.setLogLevel(IMSDKLogLevel.debug) 36 | 37 | // Use the US Privacy Laws APIs to comply with privacy regulations 38 | let US_PRIVACY_STRING = "" 39 | IMPrivacyCompliance.setDoNotSell(true) 40 | IMPrivacyCompliance.setUSPrivacyString(US_PRIVACY_STRING) 41 | 42 | return true 43 | } 44 | 45 | func applicationWillResignActive(_ application: UIApplication) { 46 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 47 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 48 | } 49 | 50 | func applicationDidEnterBackground(_ application: UIApplication) { 51 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 52 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 53 | } 54 | 55 | func applicationWillEnterForeground(_ application: UIApplication) { 56 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 57 | } 58 | 59 | func applicationDidBecomeActive(_ application: UIApplication) { 60 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 61 | } 62 | 63 | func applicationWillTerminate(_ application: UIApplication) { 64 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 65 | } 66 | 67 | 68 | } 69 | 70 | -------------------------------------------------------------------------------- /InterstitialSample/InterstitialSwiftSample/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /InterstitialSample/InterstitialSwiftSample/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /InterstitialSample/InterstitialSwiftSample/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /InterstitialSample/InterstitialSwiftSample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | NSAppTransportSecurity 24 | 25 | NSAllowsArbitraryLoads 26 | 27 | 28 | UILaunchStoryboardName 29 | LaunchScreen 30 | UIMainStoryboardFile 31 | Main 32 | UIRequiredDeviceCapabilities 33 | 34 | armv7 35 | 36 | UISupportedInterfaceOrientations 37 | 38 | UIInterfaceOrientationPortrait 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UISupportedInterfaceOrientations~ipad 43 | 44 | UIInterfaceOrientationPortrait 45 | UIInterfaceOrientationPortraitUpsideDown 46 | UIInterfaceOrientationLandscapeLeft 47 | UIInterfaceOrientationLandscapeRight 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /InterstitialSample/InterstitialSwiftSample/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // InterstitialSwiftSample 4 | // 5 | // Copyright © 2016 InMobi. All rights reserved. 6 | // 7 | 8 | import InMobiSDK 9 | 10 | let INMOBI_INTERSTITIAL_PLACEMENT: Int64 = 1672200162238 11 | 12 | import UIKit 13 | 14 | class ViewController: UIViewController, IMInterstitialDelegate { 15 | 16 | var interstitial: IMInterstitial? 17 | 18 | override func viewDidLoad() { 19 | super.viewDidLoad() 20 | // Do any additional setup after loading the view, typically from a nib. 21 | interstitial = IMInterstitial(placementId: INMOBI_INTERSTITIAL_PLACEMENT, delegate: self) 22 | interstitial!.load() 23 | } 24 | 25 | override func didReceiveMemoryWarning() { 26 | super.didReceiveMemoryWarning() 27 | // Dispose of any resources that can be recreated. 28 | } 29 | 30 | func interstitialDidReceiveAd(_ interstitial: IMInterstitial) { 31 | print("InMobi Interstitial received and ad"); 32 | } 33 | 34 | /** 35 | * Notifies the delegate that the interstitial has finished loading and can be shown instantly. 36 | */ 37 | func interstitialDidFinishLoading(_ interstitial: IMInterstitial) { 38 | print("InMobi Interstitial finished loading an ad"); 39 | 40 | if interstitial.isReady() { 41 | interstitial.show(from: self) 42 | } 43 | } 44 | 45 | /** 46 | * Notifies the delegate that the interstitial has failed to load with some error. 47 | */ 48 | func interstitial(_ interstitial: IMInterstitial, didFailToLoadWithError error: IMRequestStatus) { 49 | print("InMobi Interstitial failed to load an ad with error \(error.localizedDescription)"); 50 | } 51 | 52 | /** 53 | * Notifies the delegate that the interstitial would be presented. 54 | */ 55 | func interstitialWillPresent(_ interstitial: IMInterstitial) { 56 | print("InMobi Interstitial will be presented"); 57 | } 58 | 59 | /** 60 | * Notifies the delegate that the interstitial has been presented. 61 | */ 62 | func interstitialDidPresent(_ interstitial: IMInterstitial) { 63 | print("InMobi Interstitial has been presented"); 64 | } 65 | 66 | /** 67 | * Notifies the delegate that the interstitial has failed to present with some error. 68 | */ 69 | func interstitial(_ interstitial: IMInterstitial, didFailToPresentWithError error: IMRequestStatus) { 70 | print("InMobi Interstitial failed to present with error : \(error.localizedDescription)"); 71 | } 72 | 73 | /** 74 | * Notifies the delegate that the interstitial will be dismissed. 75 | */ 76 | func interstitialWillDismiss(_ interstitial: IMInterstitial) { 77 | print("InMobi Interstitial will be dismissed"); 78 | } 79 | 80 | /** 81 | * Notifies the delegate that the interstitial has been dismissed. 82 | */ 83 | func interstitialDidDismiss(_ interstitial: IMInterstitial) { 84 | print("InMobi Interstitial has been dismissed"); 85 | } 86 | 87 | /** 88 | * Notifies the delegate that the interstitial has been interacted with. 89 | */ 90 | func interstitial(_ interstitial: IMInterstitial, didInteractWithParams params: [String : Any]?) { 91 | print("InMobi Interstitial did interact with params : \(params as AnyObject)"); 92 | } 93 | 94 | /** 95 | * Notifies the delegate that the user has performed the action to be incentivised with. 96 | */ 97 | func interstitial(_ interstitial: IMInterstitial, rewardActionCompletedWithRewards rewards: [String : Any]) { 98 | print("InMobi Interstitial completed rewarded action : \(rewards as AnyObject)"); 99 | } 100 | 101 | /** 102 | * Notifies the delegate that the user will leave application context. 103 | */ 104 | func userWillLeaveApplicationFromInterstitial(_ interstitial: IMInterstitial) { 105 | print("User will leave application from InMobi Interstitial"); 106 | } 107 | 108 | /** 109 | * Notifies the delegate that the interstitial ad Impressed. 110 | */ 111 | func interstitialAdImpressed(_ interstitial: IMInterstitial) { 112 | print("InMobi Interstitial ad Impressed"); 113 | } 114 | 115 | 116 | } 117 | 118 | -------------------------------------------------------------------------------- /InterstitialSample/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | # platform :ios, 11.0' 3 | 4 | target 'InterstitialSample' do 5 | # Comment the next line if you don't want to use dynamic frameworks 6 | use_frameworks! 7 | 8 | # Pods for InterstitialSample 9 | pod 'InMobiSDK' 10 | 11 | end 12 | 13 | target 'InterstitialSwiftSample' do 14 | # Comment the next line if you don't want to use dynamic frameworks 15 | use_frameworks! 16 | 17 | # Pods for InterstitialSwiftSample 18 | pod 'InMobiSDK' 19 | 20 | end 21 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | Copyright (c) 2016 InMobi 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 5 | 6 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 7 | 8 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /NativeSample/NativeSample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 6A98F2ACBC3B1C08F4E81730 /* Pods_NativeSample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 29C870120E7C6E88B45931C3 /* Pods_NativeSample.framework */; }; 11 | BE23065C1F3C6CFC005BE1B5 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = BE23065B1F3C6CFC005BE1B5 /* main.m */; }; 12 | BE23065F1F3C6CFC005BE1B5 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = BE23065E1F3C6CFC005BE1B5 /* AppDelegate.m */; }; 13 | BE2306621F3C6CFC005BE1B5 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BE2306611F3C6CFC005BE1B5 /* ViewController.m */; }; 14 | BE2306651F3C6CFC005BE1B5 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BE2306631F3C6CFC005BE1B5 /* Main.storyboard */; }; 15 | BE2306671F3C6CFC005BE1B5 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BE2306661F3C6CFC005BE1B5 /* Assets.xcassets */; }; 16 | BE23066A1F3C6CFC005BE1B5 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BE2306681F3C6CFC005BE1B5 /* LaunchScreen.storyboard */; }; 17 | BE2306781F3C6D1E005BE1B5 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE2306771F3C6D1E005BE1B5 /* AppDelegate.swift */; }; 18 | BE23067A1F3C6D1E005BE1B5 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE2306791F3C6D1E005BE1B5 /* ViewController.swift */; }; 19 | BE23067D1F3C6D1E005BE1B5 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BE23067B1F3C6D1E005BE1B5 /* Main.storyboard */; }; 20 | BE23067F1F3C6D1E005BE1B5 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BE23067E1F3C6D1E005BE1B5 /* Assets.xcassets */; }; 21 | BE2306821F3C6D1E005BE1B5 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BE2306801F3C6D1E005BE1B5 /* LaunchScreen.storyboard */; }; 22 | CA5F0F80807B8C393D98637B /* Pods_NativeSampleSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 364A2EBE94A7AB4C0B6D64D5 /* Pods_NativeSampleSwift.framework */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXFileReference section */ 26 | 122A0561C6F6AA38258C2117 /* Pods-NativeSample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NativeSample.debug.xcconfig"; path = "Target Support Files/Pods-NativeSample/Pods-NativeSample.debug.xcconfig"; sourceTree = ""; }; 27 | 2489BB1B6BCBD4F4F37F294C /* Pods-NativeSampleSwift.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NativeSampleSwift.debug.xcconfig"; path = "Target Support Files/Pods-NativeSampleSwift/Pods-NativeSampleSwift.debug.xcconfig"; sourceTree = ""; }; 28 | 29C870120E7C6E88B45931C3 /* Pods_NativeSample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_NativeSample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 29 | 364A2EBE94A7AB4C0B6D64D5 /* Pods_NativeSampleSwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_NativeSampleSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 30 | A9864CCC0A3B6BD80A281632 /* Pods-NativeSampleSwift.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NativeSampleSwift.release.xcconfig"; path = "Target Support Files/Pods-NativeSampleSwift/Pods-NativeSampleSwift.release.xcconfig"; sourceTree = ""; }; 31 | BE2306571F3C6CFC005BE1B5 /* NativeSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NativeSample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | BE23065B1F3C6CFC005BE1B5 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 33 | BE23065D1F3C6CFC005BE1B5 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 34 | BE23065E1F3C6CFC005BE1B5 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 35 | BE2306601F3C6CFC005BE1B5 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 36 | BE2306611F3C6CFC005BE1B5 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 37 | BE2306641F3C6CFC005BE1B5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 38 | BE2306661F3C6CFC005BE1B5 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 39 | BE2306691F3C6CFC005BE1B5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 40 | BE23066B1F3C6CFC005BE1B5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 41 | BE2306751F3C6D1E005BE1B5 /* NativeSampleSwift.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NativeSampleSwift.app; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | BE2306771F3C6D1E005BE1B5 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 43 | BE2306791F3C6D1E005BE1B5 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 44 | BE23067C1F3C6D1E005BE1B5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 45 | BE23067E1F3C6D1E005BE1B5 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 46 | BE2306811F3C6D1E005BE1B5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 47 | BE4397771F45BD19001A9E26 /* InMobiSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = InMobiSDK.framework; path = ../InMobi/InMobiSDK.framework; sourceTree = ""; }; 48 | BE9A7C721F41866800FD738B /* libsqlite3.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libsqlite3.tbd; path = usr/lib/libsqlite3.tbd; sourceTree = SDKROOT; }; 49 | BE9A7C751F41869000FD738B /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; }; 50 | BEB202311F727F9800C0E151 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 51 | BED13C4D1F6FD34700E32B8D /* InMobiSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = InMobiSDK.framework; path = ../../../Desktop/InMobi_iOS_SDK_7.0.0/InMobiSDK.framework; sourceTree = ""; }; 52 | C3F0854C5ED8B5AD8543AF5B /* Pods-NativeSample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NativeSample.release.xcconfig"; path = "Target Support Files/Pods-NativeSample/Pods-NativeSample.release.xcconfig"; sourceTree = ""; }; 53 | E16A528F2345F08E00264C35 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; }; 54 | E16A52922345F0F800264C35 /* NativeSampleSwift.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = NativeSampleSwift.entitlements; sourceTree = ""; }; 55 | /* End PBXFileReference section */ 56 | 57 | /* Begin PBXFrameworksBuildPhase section */ 58 | BE2306541F3C6CFC005BE1B5 /* Frameworks */ = { 59 | isa = PBXFrameworksBuildPhase; 60 | buildActionMask = 2147483647; 61 | files = ( 62 | 6A98F2ACBC3B1C08F4E81730 /* Pods_NativeSample.framework in Frameworks */, 63 | ); 64 | runOnlyForDeploymentPostprocessing = 0; 65 | }; 66 | BE2306721F3C6D1E005BE1B5 /* Frameworks */ = { 67 | isa = PBXFrameworksBuildPhase; 68 | buildActionMask = 2147483647; 69 | files = ( 70 | CA5F0F80807B8C393D98637B /* Pods_NativeSampleSwift.framework in Frameworks */, 71 | ); 72 | runOnlyForDeploymentPostprocessing = 0; 73 | }; 74 | /* End PBXFrameworksBuildPhase section */ 75 | 76 | /* Begin PBXGroup section */ 77 | A3EC6E79877564B915EF4C87 /* Pods */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | 122A0561C6F6AA38258C2117 /* Pods-NativeSample.debug.xcconfig */, 81 | C3F0854C5ED8B5AD8543AF5B /* Pods-NativeSample.release.xcconfig */, 82 | 2489BB1B6BCBD4F4F37F294C /* Pods-NativeSampleSwift.debug.xcconfig */, 83 | A9864CCC0A3B6BD80A281632 /* Pods-NativeSampleSwift.release.xcconfig */, 84 | ); 85 | path = Pods; 86 | sourceTree = ""; 87 | }; 88 | BE23064E1F3C6CFB005BE1B5 = { 89 | isa = PBXGroup; 90 | children = ( 91 | BE2306591F3C6CFC005BE1B5 /* NativeSample */, 92 | BE2306761F3C6D1E005BE1B5 /* NativeSampleSwift */, 93 | BE2306581F3C6CFC005BE1B5 /* Products */, 94 | BE2306871F3C6DE3005BE1B5 /* Frameworks */, 95 | A3EC6E79877564B915EF4C87 /* Pods */, 96 | ); 97 | sourceTree = ""; 98 | }; 99 | BE2306581F3C6CFC005BE1B5 /* Products */ = { 100 | isa = PBXGroup; 101 | children = ( 102 | BE2306571F3C6CFC005BE1B5 /* NativeSample.app */, 103 | BE2306751F3C6D1E005BE1B5 /* NativeSampleSwift.app */, 104 | ); 105 | name = Products; 106 | sourceTree = ""; 107 | }; 108 | BE2306591F3C6CFC005BE1B5 /* NativeSample */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | BE23065D1F3C6CFC005BE1B5 /* AppDelegate.h */, 112 | BE23065E1F3C6CFC005BE1B5 /* AppDelegate.m */, 113 | BE2306601F3C6CFC005BE1B5 /* ViewController.h */, 114 | BE2306611F3C6CFC005BE1B5 /* ViewController.m */, 115 | BE2306631F3C6CFC005BE1B5 /* Main.storyboard */, 116 | BE2306661F3C6CFC005BE1B5 /* Assets.xcassets */, 117 | BE2306681F3C6CFC005BE1B5 /* LaunchScreen.storyboard */, 118 | BE23066B1F3C6CFC005BE1B5 /* Info.plist */, 119 | BE23065A1F3C6CFC005BE1B5 /* Supporting Files */, 120 | ); 121 | path = NativeSample; 122 | sourceTree = ""; 123 | }; 124 | BE23065A1F3C6CFC005BE1B5 /* Supporting Files */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | BE23065B1F3C6CFC005BE1B5 /* main.m */, 128 | ); 129 | name = "Supporting Files"; 130 | sourceTree = ""; 131 | }; 132 | BE2306761F3C6D1E005BE1B5 /* NativeSampleSwift */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | E16A52922345F0F800264C35 /* NativeSampleSwift.entitlements */, 136 | BE2306771F3C6D1E005BE1B5 /* AppDelegate.swift */, 137 | BE2306791F3C6D1E005BE1B5 /* ViewController.swift */, 138 | BE23067B1F3C6D1E005BE1B5 /* Main.storyboard */, 139 | BE23067E1F3C6D1E005BE1B5 /* Assets.xcassets */, 140 | BE2306801F3C6D1E005BE1B5 /* LaunchScreen.storyboard */, 141 | BEB202311F727F9800C0E151 /* Info.plist */, 142 | ); 143 | path = NativeSampleSwift; 144 | sourceTree = ""; 145 | }; 146 | BE2306871F3C6DE3005BE1B5 /* Frameworks */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | E16A528F2345F08E00264C35 /* WebKit.framework */, 150 | BE4397771F45BD19001A9E26 /* InMobiSDK.framework */, 151 | BED13C4D1F6FD34700E32B8D /* InMobiSDK.framework */, 152 | BE9A7C751F41869000FD738B /* libz.tbd */, 153 | BE9A7C721F41866800FD738B /* libsqlite3.tbd */, 154 | 29C870120E7C6E88B45931C3 /* Pods_NativeSample.framework */, 155 | 364A2EBE94A7AB4C0B6D64D5 /* Pods_NativeSampleSwift.framework */, 156 | ); 157 | name = Frameworks; 158 | sourceTree = ""; 159 | }; 160 | /* End PBXGroup section */ 161 | 162 | /* Begin PBXNativeTarget section */ 163 | BE2306561F3C6CFC005BE1B5 /* NativeSample */ = { 164 | isa = PBXNativeTarget; 165 | buildConfigurationList = BE23066E1F3C6CFC005BE1B5 /* Build configuration list for PBXNativeTarget "NativeSample" */; 166 | buildPhases = ( 167 | 564ACFFAF675E7FA41CA9971 /* [CP] Check Pods Manifest.lock */, 168 | BE2306531F3C6CFC005BE1B5 /* Sources */, 169 | BE2306541F3C6CFC005BE1B5 /* Frameworks */, 170 | BE2306551F3C6CFC005BE1B5 /* Resources */, 171 | ); 172 | buildRules = ( 173 | ); 174 | dependencies = ( 175 | ); 176 | name = NativeSample; 177 | productName = NativeRebootSample; 178 | productReference = BE2306571F3C6CFC005BE1B5 /* NativeSample.app */; 179 | productType = "com.apple.product-type.application"; 180 | }; 181 | BE2306741F3C6D1E005BE1B5 /* NativeSampleSwift */ = { 182 | isa = PBXNativeTarget; 183 | buildConfigurationList = BE2306841F3C6D1E005BE1B5 /* Build configuration list for PBXNativeTarget "NativeSampleSwift" */; 184 | buildPhases = ( 185 | 5FB6A0D4162BCB286A45A622 /* [CP] Check Pods Manifest.lock */, 186 | BE2306711F3C6D1E005BE1B5 /* Sources */, 187 | BE2306721F3C6D1E005BE1B5 /* Frameworks */, 188 | BE2306731F3C6D1E005BE1B5 /* Resources */, 189 | ); 190 | buildRules = ( 191 | ); 192 | dependencies = ( 193 | ); 194 | name = NativeSampleSwift; 195 | productName = NativeRebootSampleSwift; 196 | productReference = BE2306751F3C6D1E005BE1B5 /* NativeSampleSwift.app */; 197 | productType = "com.apple.product-type.application"; 198 | }; 199 | /* End PBXNativeTarget section */ 200 | 201 | /* Begin PBXProject section */ 202 | BE23064F1F3C6CFB005BE1B5 /* Project object */ = { 203 | isa = PBXProject; 204 | attributes = { 205 | LastSwiftUpdateCheck = 0830; 206 | LastUpgradeCheck = 1100; 207 | ORGANIZATIONNAME = Inmobi; 208 | TargetAttributes = { 209 | BE2306561F3C6CFC005BE1B5 = { 210 | CreatedOnToolsVersion = 8.3.3; 211 | DevelopmentTeam = WZMMZ9FP6W; 212 | ProvisioningStyle = Automatic; 213 | }; 214 | BE2306741F3C6D1E005BE1B5 = { 215 | CreatedOnToolsVersion = 8.3.3; 216 | DevelopmentTeam = WZMMZ9FP6W; 217 | ProvisioningStyle = Automatic; 218 | }; 219 | }; 220 | }; 221 | buildConfigurationList = BE2306521F3C6CFB005BE1B5 /* Build configuration list for PBXProject "NativeSample" */; 222 | compatibilityVersion = "Xcode 9.3"; 223 | developmentRegion = en; 224 | hasScannedForEncodings = 0; 225 | knownRegions = ( 226 | en, 227 | Base, 228 | ); 229 | mainGroup = BE23064E1F3C6CFB005BE1B5; 230 | productRefGroup = BE2306581F3C6CFC005BE1B5 /* Products */; 231 | projectDirPath = ""; 232 | projectRoot = ""; 233 | targets = ( 234 | BE2306561F3C6CFC005BE1B5 /* NativeSample */, 235 | BE2306741F3C6D1E005BE1B5 /* NativeSampleSwift */, 236 | ); 237 | }; 238 | /* End PBXProject section */ 239 | 240 | /* Begin PBXResourcesBuildPhase section */ 241 | BE2306551F3C6CFC005BE1B5 /* Resources */ = { 242 | isa = PBXResourcesBuildPhase; 243 | buildActionMask = 2147483647; 244 | files = ( 245 | BE23066A1F3C6CFC005BE1B5 /* LaunchScreen.storyboard in Resources */, 246 | BE2306671F3C6CFC005BE1B5 /* Assets.xcassets in Resources */, 247 | BE2306651F3C6CFC005BE1B5 /* Main.storyboard in Resources */, 248 | ); 249 | runOnlyForDeploymentPostprocessing = 0; 250 | }; 251 | BE2306731F3C6D1E005BE1B5 /* Resources */ = { 252 | isa = PBXResourcesBuildPhase; 253 | buildActionMask = 2147483647; 254 | files = ( 255 | BE2306821F3C6D1E005BE1B5 /* LaunchScreen.storyboard in Resources */, 256 | BE23067F1F3C6D1E005BE1B5 /* Assets.xcassets in Resources */, 257 | BE23067D1F3C6D1E005BE1B5 /* Main.storyboard in Resources */, 258 | ); 259 | runOnlyForDeploymentPostprocessing = 0; 260 | }; 261 | /* End PBXResourcesBuildPhase section */ 262 | 263 | /* Begin PBXShellScriptBuildPhase section */ 264 | 564ACFFAF675E7FA41CA9971 /* [CP] Check Pods Manifest.lock */ = { 265 | isa = PBXShellScriptBuildPhase; 266 | buildActionMask = 2147483647; 267 | files = ( 268 | ); 269 | inputFileListPaths = ( 270 | ); 271 | inputPaths = ( 272 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 273 | "${PODS_ROOT}/Manifest.lock", 274 | ); 275 | name = "[CP] Check Pods Manifest.lock"; 276 | outputFileListPaths = ( 277 | ); 278 | outputPaths = ( 279 | "$(DERIVED_FILE_DIR)/Pods-NativeSample-checkManifestLockResult.txt", 280 | ); 281 | runOnlyForDeploymentPostprocessing = 0; 282 | shellPath = /bin/sh; 283 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 284 | showEnvVarsInLog = 0; 285 | }; 286 | 5FB6A0D4162BCB286A45A622 /* [CP] Check Pods Manifest.lock */ = { 287 | isa = PBXShellScriptBuildPhase; 288 | buildActionMask = 2147483647; 289 | files = ( 290 | ); 291 | inputFileListPaths = ( 292 | ); 293 | inputPaths = ( 294 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 295 | "${PODS_ROOT}/Manifest.lock", 296 | ); 297 | name = "[CP] Check Pods Manifest.lock"; 298 | outputFileListPaths = ( 299 | ); 300 | outputPaths = ( 301 | "$(DERIVED_FILE_DIR)/Pods-NativeSampleSwift-checkManifestLockResult.txt", 302 | ); 303 | runOnlyForDeploymentPostprocessing = 0; 304 | shellPath = /bin/sh; 305 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 306 | showEnvVarsInLog = 0; 307 | }; 308 | /* End PBXShellScriptBuildPhase section */ 309 | 310 | /* Begin PBXSourcesBuildPhase section */ 311 | BE2306531F3C6CFC005BE1B5 /* Sources */ = { 312 | isa = PBXSourcesBuildPhase; 313 | buildActionMask = 2147483647; 314 | files = ( 315 | BE2306621F3C6CFC005BE1B5 /* ViewController.m in Sources */, 316 | BE23065F1F3C6CFC005BE1B5 /* AppDelegate.m in Sources */, 317 | BE23065C1F3C6CFC005BE1B5 /* main.m in Sources */, 318 | ); 319 | runOnlyForDeploymentPostprocessing = 0; 320 | }; 321 | BE2306711F3C6D1E005BE1B5 /* Sources */ = { 322 | isa = PBXSourcesBuildPhase; 323 | buildActionMask = 2147483647; 324 | files = ( 325 | BE23067A1F3C6D1E005BE1B5 /* ViewController.swift in Sources */, 326 | BE2306781F3C6D1E005BE1B5 /* AppDelegate.swift in Sources */, 327 | ); 328 | runOnlyForDeploymentPostprocessing = 0; 329 | }; 330 | /* End PBXSourcesBuildPhase section */ 331 | 332 | /* Begin PBXVariantGroup section */ 333 | BE2306631F3C6CFC005BE1B5 /* Main.storyboard */ = { 334 | isa = PBXVariantGroup; 335 | children = ( 336 | BE2306641F3C6CFC005BE1B5 /* Base */, 337 | ); 338 | name = Main.storyboard; 339 | sourceTree = ""; 340 | }; 341 | BE2306681F3C6CFC005BE1B5 /* LaunchScreen.storyboard */ = { 342 | isa = PBXVariantGroup; 343 | children = ( 344 | BE2306691F3C6CFC005BE1B5 /* Base */, 345 | ); 346 | name = LaunchScreen.storyboard; 347 | sourceTree = ""; 348 | }; 349 | BE23067B1F3C6D1E005BE1B5 /* Main.storyboard */ = { 350 | isa = PBXVariantGroup; 351 | children = ( 352 | BE23067C1F3C6D1E005BE1B5 /* Base */, 353 | ); 354 | name = Main.storyboard; 355 | sourceTree = ""; 356 | }; 357 | BE2306801F3C6D1E005BE1B5 /* LaunchScreen.storyboard */ = { 358 | isa = PBXVariantGroup; 359 | children = ( 360 | BE2306811F3C6D1E005BE1B5 /* Base */, 361 | ); 362 | name = LaunchScreen.storyboard; 363 | sourceTree = ""; 364 | }; 365 | /* End PBXVariantGroup section */ 366 | 367 | /* Begin XCBuildConfiguration section */ 368 | BE23066C1F3C6CFC005BE1B5 /* Debug */ = { 369 | isa = XCBuildConfiguration; 370 | buildSettings = { 371 | ALWAYS_SEARCH_USER_PATHS = NO; 372 | CLANG_ANALYZER_NONNULL = YES; 373 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 374 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 375 | CLANG_CXX_LIBRARY = "libc++"; 376 | CLANG_ENABLE_MODULES = YES; 377 | CLANG_ENABLE_OBJC_ARC = YES; 378 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 379 | CLANG_WARN_BOOL_CONVERSION = YES; 380 | CLANG_WARN_COMMA = YES; 381 | CLANG_WARN_CONSTANT_CONVERSION = YES; 382 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 383 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 384 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 385 | CLANG_WARN_EMPTY_BODY = YES; 386 | CLANG_WARN_ENUM_CONVERSION = YES; 387 | CLANG_WARN_INFINITE_RECURSION = YES; 388 | CLANG_WARN_INT_CONVERSION = YES; 389 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 390 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 391 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 392 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 393 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 394 | CLANG_WARN_STRICT_PROTOTYPES = YES; 395 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 396 | CLANG_WARN_UNREACHABLE_CODE = YES; 397 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 398 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 399 | COPY_PHASE_STRIP = NO; 400 | DEBUG_INFORMATION_FORMAT = dwarf; 401 | ENABLE_STRICT_OBJC_MSGSEND = YES; 402 | ENABLE_TESTABILITY = YES; 403 | GCC_C_LANGUAGE_STANDARD = gnu99; 404 | GCC_DYNAMIC_NO_PIC = NO; 405 | GCC_NO_COMMON_BLOCKS = YES; 406 | GCC_OPTIMIZATION_LEVEL = 0; 407 | GCC_PREPROCESSOR_DEFINITIONS = ( 408 | "DEBUG=1", 409 | "$(inherited)", 410 | ); 411 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 412 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 413 | GCC_WARN_UNDECLARED_SELECTOR = YES; 414 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 415 | GCC_WARN_UNUSED_FUNCTION = YES; 416 | GCC_WARN_UNUSED_VARIABLE = YES; 417 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 418 | MTL_ENABLE_DEBUG_INFO = YES; 419 | ONLY_ACTIVE_ARCH = YES; 420 | SDKROOT = iphoneos; 421 | TARGETED_DEVICE_FAMILY = "1,2"; 422 | }; 423 | name = Debug; 424 | }; 425 | BE23066D1F3C6CFC005BE1B5 /* Release */ = { 426 | isa = XCBuildConfiguration; 427 | buildSettings = { 428 | ALWAYS_SEARCH_USER_PATHS = NO; 429 | CLANG_ANALYZER_NONNULL = YES; 430 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 431 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 432 | CLANG_CXX_LIBRARY = "libc++"; 433 | CLANG_ENABLE_MODULES = YES; 434 | CLANG_ENABLE_OBJC_ARC = YES; 435 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 436 | CLANG_WARN_BOOL_CONVERSION = YES; 437 | CLANG_WARN_COMMA = YES; 438 | CLANG_WARN_CONSTANT_CONVERSION = YES; 439 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 440 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 441 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 442 | CLANG_WARN_EMPTY_BODY = YES; 443 | CLANG_WARN_ENUM_CONVERSION = YES; 444 | CLANG_WARN_INFINITE_RECURSION = YES; 445 | CLANG_WARN_INT_CONVERSION = YES; 446 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 447 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 448 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 449 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 450 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 451 | CLANG_WARN_STRICT_PROTOTYPES = YES; 452 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 453 | CLANG_WARN_UNREACHABLE_CODE = YES; 454 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 455 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 456 | COPY_PHASE_STRIP = NO; 457 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 458 | ENABLE_NS_ASSERTIONS = NO; 459 | ENABLE_STRICT_OBJC_MSGSEND = YES; 460 | GCC_C_LANGUAGE_STANDARD = gnu99; 461 | GCC_NO_COMMON_BLOCKS = YES; 462 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 463 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 464 | GCC_WARN_UNDECLARED_SELECTOR = YES; 465 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 466 | GCC_WARN_UNUSED_FUNCTION = YES; 467 | GCC_WARN_UNUSED_VARIABLE = YES; 468 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 469 | MTL_ENABLE_DEBUG_INFO = NO; 470 | SDKROOT = iphoneos; 471 | SWIFT_COMPILATION_MODE = wholemodule; 472 | TARGETED_DEVICE_FAMILY = "1,2"; 473 | VALIDATE_PRODUCT = YES; 474 | }; 475 | name = Release; 476 | }; 477 | BE23066F1F3C6CFC005BE1B5 /* Debug */ = { 478 | isa = XCBuildConfiguration; 479 | baseConfigurationReference = 122A0561C6F6AA38258C2117 /* Pods-NativeSample.debug.xcconfig */; 480 | buildSettings = { 481 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 482 | DEVELOPMENT_TEAM = WZMMZ9FP6W; 483 | FRAMEWORK_SEARCH_PATHS = "$(inherited)"; 484 | INFOPLIST_FILE = "$(SRCROOT)/NativeSample/Info.plist"; 485 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 486 | LD_RUNPATH_SEARCH_PATHS = ( 487 | "$(inherited)", 488 | "@executable_path/Frameworks", 489 | ); 490 | ONLY_ACTIVE_ARCH = YES; 491 | OTHER_LDFLAGS = "$(inherited)"; 492 | PRODUCT_BUNDLE_IDENTIFIER = testOrg.NativeRebootSample; 493 | PRODUCT_NAME = "$(TARGET_NAME)"; 494 | }; 495 | name = Debug; 496 | }; 497 | BE2306701F3C6CFC005BE1B5 /* Release */ = { 498 | isa = XCBuildConfiguration; 499 | baseConfigurationReference = C3F0854C5ED8B5AD8543AF5B /* Pods-NativeSample.release.xcconfig */; 500 | buildSettings = { 501 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 502 | DEVELOPMENT_TEAM = WZMMZ9FP6W; 503 | FRAMEWORK_SEARCH_PATHS = "$(inherited)"; 504 | INFOPLIST_FILE = "$(SRCROOT)/NativeSample/Info.plist"; 505 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 506 | LD_RUNPATH_SEARCH_PATHS = ( 507 | "$(inherited)", 508 | "@executable_path/Frameworks", 509 | ); 510 | ONLY_ACTIVE_ARCH = YES; 511 | OTHER_LDFLAGS = "$(inherited)"; 512 | PRODUCT_BUNDLE_IDENTIFIER = testOrg.NativeRebootSample; 513 | PRODUCT_NAME = "$(TARGET_NAME)"; 514 | }; 515 | name = Release; 516 | }; 517 | BE2306851F3C6D1E005BE1B5 /* Debug */ = { 518 | isa = XCBuildConfiguration; 519 | baseConfigurationReference = 2489BB1B6BCBD4F4F37F294C /* Pods-NativeSampleSwift.debug.xcconfig */; 520 | buildSettings = { 521 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 522 | CODE_SIGN_ENTITLEMENTS = NativeSampleSwift/NativeSampleSwift.entitlements; 523 | DEVELOPMENT_TEAM = WZMMZ9FP6W; 524 | FRAMEWORK_SEARCH_PATHS = "$(inherited)"; 525 | INFOPLIST_FILE = "$(SRCROOT)/NativeSampleSwift/Info.plist"; 526 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 527 | LD_RUNPATH_SEARCH_PATHS = ( 528 | "$(inherited)", 529 | "@executable_path/Frameworks", 530 | ); 531 | ONLY_ACTIVE_ARCH = YES; 532 | OTHER_LDFLAGS = "$(inherited)"; 533 | PRODUCT_BUNDLE_IDENTIFIER = testOrg.NativeRebootSampleSwift; 534 | PRODUCT_NAME = "$(TARGET_NAME)"; 535 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 536 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 537 | SWIFT_VERSION = 5.0; 538 | }; 539 | name = Debug; 540 | }; 541 | BE2306861F3C6D1E005BE1B5 /* Release */ = { 542 | isa = XCBuildConfiguration; 543 | baseConfigurationReference = A9864CCC0A3B6BD80A281632 /* Pods-NativeSampleSwift.release.xcconfig */; 544 | buildSettings = { 545 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 546 | CODE_SIGN_ENTITLEMENTS = NativeSampleSwift/NativeSampleSwift.entitlements; 547 | DEVELOPMENT_TEAM = WZMMZ9FP6W; 548 | FRAMEWORK_SEARCH_PATHS = "$(inherited)"; 549 | INFOPLIST_FILE = "$(SRCROOT)/NativeSampleSwift/Info.plist"; 550 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 551 | LD_RUNPATH_SEARCH_PATHS = ( 552 | "$(inherited)", 553 | "@executable_path/Frameworks", 554 | ); 555 | ONLY_ACTIVE_ARCH = YES; 556 | OTHER_LDFLAGS = "$(inherited)"; 557 | PRODUCT_BUNDLE_IDENTIFIER = testOrg.NativeRebootSampleSwift; 558 | PRODUCT_NAME = "$(TARGET_NAME)"; 559 | SWIFT_COMPILATION_MODE = wholemodule; 560 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 561 | SWIFT_VERSION = 5.0; 562 | }; 563 | name = Release; 564 | }; 565 | /* End XCBuildConfiguration section */ 566 | 567 | /* Begin XCConfigurationList section */ 568 | BE2306521F3C6CFB005BE1B5 /* Build configuration list for PBXProject "NativeSample" */ = { 569 | isa = XCConfigurationList; 570 | buildConfigurations = ( 571 | BE23066C1F3C6CFC005BE1B5 /* Debug */, 572 | BE23066D1F3C6CFC005BE1B5 /* Release */, 573 | ); 574 | defaultConfigurationIsVisible = 0; 575 | defaultConfigurationName = Release; 576 | }; 577 | BE23066E1F3C6CFC005BE1B5 /* Build configuration list for PBXNativeTarget "NativeSample" */ = { 578 | isa = XCConfigurationList; 579 | buildConfigurations = ( 580 | BE23066F1F3C6CFC005BE1B5 /* Debug */, 581 | BE2306701F3C6CFC005BE1B5 /* Release */, 582 | ); 583 | defaultConfigurationIsVisible = 0; 584 | defaultConfigurationName = Release; 585 | }; 586 | BE2306841F3C6D1E005BE1B5 /* Build configuration list for PBXNativeTarget "NativeSampleSwift" */ = { 587 | isa = XCConfigurationList; 588 | buildConfigurations = ( 589 | BE2306851F3C6D1E005BE1B5 /* Debug */, 590 | BE2306861F3C6D1E005BE1B5 /* Release */, 591 | ); 592 | defaultConfigurationIsVisible = 0; 593 | defaultConfigurationName = Release; 594 | }; 595 | /* End XCConfigurationList section */ 596 | }; 597 | rootObject = BE23064F1F3C6CFB005BE1B5 /* Project object */; 598 | } 599 | -------------------------------------------------------------------------------- /NativeSample/NativeSample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /NativeSample/NativeSample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /NativeSample/NativeSample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /NativeSample/NativeSample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // NativeRebootSample 4 | // 5 | // Created by Utpal Kumar Jha on 10/08/17. 6 | // Copyright © 2017 Inmobi. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /NativeSample/NativeSample/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // NativeRebootSample 4 | // 5 | // Created by Utpal Kumar Jha on 10/08/17. 6 | // Copyright © 2017 Inmobi. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | @import InMobiSDK; 11 | 12 | #define INMOBI_ACCOUNT_ID @"4028cb8b2c3a0b45012c406824e800ba" 13 | #define US_PRIVACY_STRING @"" 14 | 15 | @interface AppDelegate () 16 | 17 | @end 18 | 19 | @implementation AppDelegate 20 | 21 | 22 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 23 | // Override point for customization after application launch. 24 | /* 25 | * Initialize the InMobi SDK immediately after the app launches. 26 | * 27 | * For EU Region use the following init api to pass user consent for data collection, for GDPR Complaince. 28 | */ 29 | NSMutableDictionary *consentdict=[[NSMutableDictionary alloc]init]; 30 | [consentdict setObject:@"true" forKey:IMCommonConstants.IM_GDPR_CONSENT_AVAILABLE]; 31 | void (^completionBlock)(NSError*) = ^( NSError* _Nullable error) { 32 | if (error) { 33 | NSLog(@"SDK Initialization Error - %@", error.description); 34 | } 35 | else { 36 | NSLog(@"IM Mediation SDK successfully initialized"); 37 | } 38 | }; 39 | [IMSdk initWithAccountID:INMOBI_ACCOUNT_ID consentDictionary:consentdict andCompletionHandler:completionBlock]; 40 | 41 | /* 42 | * Enable logging for better debuggability. Please turn off the logs before submitting your App to the AppStore 43 | */ 44 | [IMSdk setLogLevel:IMSDKLogLevelDebug]; 45 | 46 | // Use the US Privacy Laws APIs to comply with privacy regulations 47 | [IMPrivacyCompliance setDoNotSell:YES]; 48 | [IMPrivacyCompliance setUSPrivacyString:US_PRIVACY_STRING]; 49 | 50 | return YES; 51 | } 52 | 53 | 54 | - (void)applicationWillResignActive:(UIApplication *)application { 55 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 56 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 57 | } 58 | 59 | 60 | - (void)applicationDidEnterBackground:(UIApplication *)application { 61 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 62 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 63 | } 64 | 65 | 66 | - (void)applicationWillEnterForeground:(UIApplication *)application { 67 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 68 | } 69 | 70 | 71 | - (void)applicationDidBecomeActive:(UIApplication *)application { 72 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 73 | } 74 | 75 | 76 | - (void)applicationWillTerminate:(UIApplication *)application { 77 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 78 | } 79 | 80 | 81 | @end 82 | -------------------------------------------------------------------------------- /NativeSample/NativeSample/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /NativeSample/NativeSample/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /NativeSample/NativeSample/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /NativeSample/NativeSample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSAppTransportSecurity 6 | 7 | NSAllowsArbitraryLoads 8 | 9 | 10 | CFBundleDevelopmentRegion 11 | en 12 | CFBundleExecutable 13 | $(EXECUTABLE_NAME) 14 | CFBundleIdentifier 15 | $(PRODUCT_BUNDLE_IDENTIFIER) 16 | CFBundleInfoDictionaryVersion 17 | 6.0 18 | CFBundleName 19 | $(PRODUCT_NAME) 20 | CFBundlePackageType 21 | APPL 22 | CFBundleShortVersionString 23 | 1.0 24 | CFBundleVersion 25 | 1 26 | LSRequiresIPhoneOS 27 | 28 | UILaunchStoryboardName 29 | LaunchScreen 30 | UIMainStoryboardFile 31 | Main 32 | UIRequiredDeviceCapabilities 33 | 34 | armv7 35 | 36 | UISupportedInterfaceOrientations 37 | 38 | UIInterfaceOrientationPortrait 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UISupportedInterfaceOrientations~ipad 43 | 44 | UIInterfaceOrientationPortrait 45 | UIInterfaceOrientationPortraitUpsideDown 46 | UIInterfaceOrientationLandscapeLeft 47 | UIInterfaceOrientationLandscapeRight 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /NativeSample/NativeSample/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // NativeRebootSample 4 | // 5 | // Created by Utpal Kumar Jha on 10/08/17. 6 | // Copyright © 2017 Inmobi. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /NativeSample/NativeSample/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // NativeRebootSample 4 | // 5 | // Created by Utpal Kumar Jha on 10/08/17. 6 | // Copyright © 2017 Inmobi. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | @import InMobiSDK; 11 | 12 | 13 | #ifndef INMOBI_ACCOUNT_ID 14 | #define INMOBI_NATIVE_PLACEMENT 1681413960173 15 | #endif 16 | @interface ViewController () 17 | 18 | @property (nonatomic,strong) IMNative* native; 19 | @property (weak, nonatomic) IBOutlet UILabel *AdTitle; 20 | @property (weak, nonatomic) IBOutlet UIView *contentView; 21 | @property (weak, nonatomic) IBOutlet UIImageView *adIconImage; 22 | @property (weak, nonatomic) IBOutlet UILabel *descriptionLabel; 23 | 24 | 25 | @end 26 | 27 | @implementation ViewController 28 | 29 | - (void)viewDidLoad { 30 | [super viewDidLoad]; 31 | self.native = [[IMNative alloc] initWithPlacementId:INMOBI_NATIVE_PLACEMENT]; 32 | self.native.delegate = self; 33 | [self.native load]; 34 | // Do any additional setup after loading the view, typically from a nib. 35 | } 36 | 37 | 38 | - (void)didReceiveMemoryWarning { 39 | [super didReceiveMemoryWarning]; 40 | // Dispose of any resources that can be recreated. 41 | } 42 | 43 | -(void)nativeDidFinishLoading:(IMNative*)native{ 44 | NSLog(@"InMobi Native finished loading"); 45 | [self.contentView addSubview:[native primaryViewOfWidth:self.contentView.frame.size.width]]; 46 | self.AdTitle.text = native.adTitle; 47 | self.adIconImage.image = native.adIcon; 48 | } 49 | /** 50 | * Notifies the delegate that the native ad has failed to load with error. 51 | */ 52 | -(void)native:(IMNative*)native didFailToLoadWithError:(IMRequestStatus*)error{ 53 | NSLog(@"InMobi Native failed to load with error : %@",error); 54 | } 55 | /** 56 | * Notifies the delegate that the native ad would be presenting a full screen content. 57 | */ 58 | -(void)nativeWillPresentScreen:(IMNative*)native{ 59 | NSLog(@"InMobi Native will present a screen"); 60 | } 61 | /** 62 | * Notifies the delegate that the native ad has presented a full screen content. 63 | */ 64 | -(void)nativeDidPresentScreen:(IMNative*)native{ 65 | NSLog(@"InMobi Native Did present a screen"); 66 | } 67 | /** 68 | * Notifies the delegate that the native ad would be dismissing the presented full screen content. 69 | */ 70 | -(void)nativeWillDismissScreen:(IMNative*)native{ 71 | NSLog(@"InMobi Native Will Dismiss a screen"); 72 | } 73 | /** 74 | * Notifies the delegate that the native ad has dismissed the presented full screen content. 75 | */ 76 | -(void)nativeDidDismissScreen:(IMNative*)native{ 77 | NSLog(@"InMobi Native Did Dismiss a screen"); 78 | } 79 | /** 80 | * Notifies the delegate that the user will be taken outside the application context. 81 | */ 82 | -(void)userWillLeaveApplicationFromNative:(IMNative*)native{ 83 | NSLog(@"User Will leave the application from Inmobi Native"); 84 | } 85 | /** 86 | * Notifies the delegate that the native ad impression has been tracked 87 | */ 88 | -(void)nativeAdImpressed:(IMNative*)native{ 89 | NSLog(@"InMobi Native has tracked an impression"); 90 | } 91 | /** 92 | * Notifies the delegate that the user has performed the action to be incentivised with. 93 | */ 94 | -(void)native:(IMNative*)native rewardActionCompletedWithRewards:(NSDictionary*)rewards{ 95 | NSLog(@"Reward Action Completed With Rewards : %@",rewards); 96 | } 97 | /** 98 | * Notifies the delegate that the native ad has been interacted with. 99 | */ 100 | -(void)native:(IMNative*)native didInteractWithParams:(NSDictionary*)params{ 101 | NSLog(@"InMobi Native did Interact With Params : %@",params); 102 | } 103 | /** 104 | * Notifies the delegate that the native ad has finished playing media. 105 | */ 106 | -(void)nativeDidFinishPlayingMedia:(IMNative*)native{ 107 | NSLog(@"InMobi Native Did Finish Playing Media"); 108 | } 109 | /** 110 | * Notifies the delegate that the media audio state has been changed - mute/unmute. 111 | * @param audioStateMuted is YES when audio is turned off and NO when audio is turned on. 112 | */ 113 | -(void)native:(IMNative *)native adAudioStateChanged:(BOOL)audioStateMuted{ 114 | if (audioStateMuted) { 115 | NSLog(@"Inline video-ad audio state changed to mute"); 116 | } else { 117 | NSLog(@"Inline video-ad audio state changed to unmute"); 118 | } 119 | //This is called when inline video audio state changes. 120 | } 121 | 122 | @end 123 | -------------------------------------------------------------------------------- /NativeSample/NativeSample/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // NativeRebootSample 4 | // 5 | // Created by Utpal Kumar Jha on 10/08/17. 6 | // Copyright © 2017 Inmobi. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /NativeSample/NativeSampleSwift/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // NativeRebootSampleSwift 4 | // 5 | // Created by Utpal Kumar Jha on 10/08/17. 6 | // Copyright © 2017 Inmobi. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import InMobiSDK 11 | let INMOBI_ACCOUNT_ID: String = "4028cb8b2c3a0b45012c406824e800ba" 12 | 13 | @UIApplicationMain 14 | class AppDelegate: UIResponder, UIApplicationDelegate { 15 | 16 | var window: UIWindow? 17 | 18 | 19 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]?) -> Bool { 20 | // Override point for customization after application launch. 21 | /* 22 | * Initialize the InMobi SDK immediately after the app launches. 23 | * 24 | * For EU Region use the following init api to pass user consent for data collection, for GDPR Complaince. 25 | */ 26 | let conscentDict = [IMCommonConstants.IM_GDPR_CONSENT_AVAILABLE : "true"] 27 | IMSdk.initWithAccountID(INMOBI_ACCOUNT_ID, consentDictionary: conscentDict, andCompletionHandler: { (error) in 28 | if let err = error { 29 | print("\(err.localizedDescription)") 30 | } 31 | }) 32 | /* 33 | * Enable logging for better debuggability. Please turn off the logs before submitting your App to the AppStore 34 | */ 35 | IMSdk.setLogLevel(IMSDKLogLevel.debug); 36 | 37 | // Use the US Privacy Laws APIs to comply with privacy regulations 38 | let US_PRIVACY_STRING = "" 39 | IMPrivacyCompliance.setDoNotSell(true) 40 | IMPrivacyCompliance.setUSPrivacyString(US_PRIVACY_STRING) 41 | 42 | return true 43 | } 44 | 45 | func applicationWillResignActive(_ application: UIApplication) { 46 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 47 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 48 | } 49 | 50 | func applicationDidEnterBackground(_ application: UIApplication) { 51 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 52 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 53 | } 54 | 55 | func applicationWillEnterForeground(_ application: UIApplication) { 56 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 57 | } 58 | 59 | func applicationDidBecomeActive(_ application: UIApplication) { 60 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 61 | } 62 | 63 | func applicationWillTerminate(_ application: UIApplication) { 64 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 65 | } 66 | 67 | 68 | } 69 | 70 | -------------------------------------------------------------------------------- /NativeSample/NativeSampleSwift/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /NativeSample/NativeSampleSwift/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /NativeSample/NativeSampleSwift/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /NativeSample/NativeSampleSwift/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSAppTransportSecurity 6 | 7 | NSAllowsArbitraryLoads 8 | 9 | 10 | CFBundleDevelopmentRegion 11 | en 12 | CFBundleExecutable 13 | $(EXECUTABLE_NAME) 14 | CFBundleIdentifier 15 | $(PRODUCT_BUNDLE_IDENTIFIER) 16 | CFBundleInfoDictionaryVersion 17 | 6.0 18 | CFBundleName 19 | $(PRODUCT_NAME) 20 | CFBundlePackageType 21 | APPL 22 | CFBundleShortVersionString 23 | 1.0 24 | CFBundleVersion 25 | 1 26 | LSRequiresIPhoneOS 27 | 28 | UILaunchStoryboardName 29 | LaunchScreen 30 | UIMainStoryboardFile 31 | Main 32 | UIRequiredDeviceCapabilities 33 | 34 | armv7 35 | 36 | UISupportedInterfaceOrientations 37 | 38 | UIInterfaceOrientationPortrait 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UISupportedInterfaceOrientations~ipad 43 | 44 | UIInterfaceOrientationPortrait 45 | UIInterfaceOrientationPortraitUpsideDown 46 | UIInterfaceOrientationLandscapeLeft 47 | UIInterfaceOrientationLandscapeRight 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /NativeSample/NativeSampleSwift/NativeSampleSwift.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.developer.networking.wifi-info 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /NativeSample/NativeSampleSwift/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // NativeRebootSampleSwift 4 | // 5 | // Created by Utpal Kumar Jha on 10/08/17. 6 | // Copyright © 2017 Inmobi. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import InMobiSDK 11 | 12 | let INMOBI_NATIVE_PLACEMENT: Int64 = 1681413960173 13 | 14 | class ViewController: UIViewController,IMNativeDelegate { 15 | 16 | var native: IMNative? 17 | 18 | @IBOutlet weak var AdTitle: UILabel! 19 | 20 | @IBOutlet weak var AdIcon: UIImageView! 21 | 22 | @IBOutlet weak var contentView: UIView! 23 | override func viewDidLoad() { 24 | super.viewDidLoad() 25 | native = IMNative(placementId: INMOBI_NATIVE_PLACEMENT); 26 | native?.delegate = self; 27 | native?.load() 28 | } 29 | 30 | override func didReceiveMemoryWarning() { 31 | super.didReceiveMemoryWarning() 32 | // Dispose of any resources that can be recreated. 33 | } 34 | 35 | func nativeDidFinishLoading(_ native: IMNative) { 36 | print("InMobi Native Did finished loading"); 37 | if let aView = native.primaryView(ofWidth: self.contentView.frame.size.width) { 38 | self.contentView.addSubview(aView) 39 | } 40 | self.AdTitle.text = native.adTitle; 41 | self.AdIcon.image = native.adIcon; 42 | // Additonal information needs to be supplied here 43 | } 44 | 45 | func nativeWillPresentScreen(_ native: IMNative) { 46 | print("InMobi Native Will Present Screen"); 47 | } 48 | 49 | func nativeWillDismissScreen(_ native: IMNative) { 50 | print("InMobi Native Will Dismiss Screen"); 51 | } 52 | 53 | func nativeDidDismissScreen(_ native: IMNative) { 54 | print("InMobi Native Did Dismiss Screen"); 55 | } 56 | 57 | func nativeAdImpressed(_ native: IMNative) { 58 | print("InMobi Native Has Tracked an impression"); 59 | } 60 | 61 | func nativeDidPresentScreen(_ native: IMNative) { 62 | print("InMobi Native Did Present Screen"); 63 | } 64 | 65 | func userWillLeaveApplicationFromNative(_ native: IMNative) { 66 | print("User Will Leave Application"); 67 | } 68 | 69 | func nativeDidFinishPlayingMedia(_ native: IMNative) { 70 | print("InMobi Native Did Finish Playing Media"); 71 | } 72 | 73 | func native(_ native: IMNative, didFailToLoadWithError error: IMRequestStatus) { 74 | print("InMobi Native failed to load with error : \(error.localizedDescription)"); 75 | } 76 | 77 | public func native(_ native: IMNative!, rewardActionCompletedWithRewards rewards: [AnyHashable : Any]!){ 78 | print("Reward Action Completed With Rewards : \(rewards as AnyObject)"); 79 | } 80 | 81 | func native(_ native: IMNative, didInteractWithParams params: [String : Any]?) { 82 | print("InMobi Did Interact With Params : \(params as AnyObject)"); 83 | } 84 | 85 | public func userDidSkipPlayingMediaFromNative(_ native: IMNative) { 86 | print("User Did Skip Playing Media "); 87 | } 88 | 89 | func native(_ native: IMNative, adAudioStateChanged audioStateMuted: Bool) { 90 | if (audioStateMuted) { 91 | print("Inline video-ad audio state changed to mute"); 92 | } else { 93 | print("Inline video-ad audio state changed to unmute"); 94 | } 95 | //This is called when inline video audio state changes. 96 | } 97 | } 98 | 99 | -------------------------------------------------------------------------------- /NativeSample/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | # platform :ios, '11.0' 3 | 4 | target 'NativeSample' do 5 | # Comment the next line if you don't want to use dynamic frameworks 6 | use_frameworks! 7 | 8 | # Pods for NativeSample 9 | pod 'InMobiSDK' 10 | 11 | end 12 | 13 | target 'NativeSampleSwift' do 14 | # Comment the next line if you don't want to use dynamic frameworks 15 | use_frameworks! 16 | 17 | # Pods for NativeSampleSwift 18 | pod 'InMobiSDK' 19 | 20 | end 21 | --------------------------------------------------------------------------------