diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..2be37c9cf5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,78 @@ +# Xcode +# +# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore + +## Build generated +build/ +DerivedData/ + +## Various settings +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata/ +xcworkspace/ +*.xcworkspacedata +DemoApp-ObjC/DemoApp-ObjC.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist + +## Other +*.moved-aside +*.xcuserstate +*.xcuserdatad +*.xcbkptlist +*.xcscheme + + +## Obj-C/Swift specific +*.hmap +*.ipa +*.dSYM.zip +*.dSYM +*.a + +# CocoaPods +# +# We recommend against adding the Pods directory to your .gitignore. However +# you should judge for yourself, the pros and cons are mentioned at: +# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control + +Pods/ + +# Carthage +# +# Add this line if you want to avoid checking in source code from Carthage dependencies. +# Carthage/Checkouts + +Carthage/Build + +# fastlane +# +# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the +# screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md + +fastlane/report.xml +fastlane/Preview.html +fastlane/screenshots +fastlane/test_output + +# Code Injection +# +# After new code Injection tools there's a generated folder /iOSInjectionProject +# https://github.com/johnno1962/injectionforxcode + +iOSInjectionProject/ + +# Idea +.idea + +# MacOS + +.DS_Store +*.lock diff --git a/DemoApp-ObjC/DemoApp-ObjC.xcodeproj/project.pbxproj b/DemoApp-ObjC/DemoApp-ObjC.xcodeproj/project.pbxproj new file mode 100644 index 0000000000..59d7309bb6 --- /dev/null +++ b/DemoApp-ObjC/DemoApp-ObjC.xcodeproj/project.pbxproj @@ -0,0 +1,395 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 51; + objects = { + +/* Begin PBXBuildFile section */ + 1D992FE6231FA1C400C472F8 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1D992FE4231FA1C400C472F8 /* Main.storyboard */; }; + 1D992FE8231FA1C500C472F8 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1D992FE7231FA1C500C472F8 /* Assets.xcassets */; }; + 1D992FEB231FA1C500C472F8 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1D992FE9231FA1C500C472F8 /* LaunchScreen.storyboard */; }; + 37C7E1EB2328904E002165B5 /* ALAutoLayoutBannerAdViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D0CB33523204D120076AAAA /* ALAutoLayoutBannerAdViewController.m */; }; + 37C7E1EC2328904E002165B5 /* ALFrameLayoutBannerAdViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 37C7E1E823285E94002165B5 /* ALFrameLayoutBannerAdViewController.m */; }; + 37C7E1ED2328904E002165B5 /* ALInterstitialAdViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D0CB32F23204CE70076AAAA /* ALInterstitialAdViewController.m */; }; + 37C7E1EE2328904E002165B5 /* ALRewardedAdViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D0CB33223204CF70076AAAA /* ALRewardedAdViewController.m */; }; + 37C7E1EF2328904E002165B5 /* ALInterfaceBuilderBannerAdViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 37C7E1E523285B4E002165B5 /* ALInterfaceBuilderBannerAdViewController.m */; }; + 37C7E1F223289286002165B5 /* AppLovinSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 37C7E1F123289286002165B5 /* AppLovinSDK.framework */; }; + 37C7E1F3232892CF002165B5 /* ALAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D992FDF231FA1C400C472F8 /* ALAppDelegate.m */; }; + 37C7E1F523297423002165B5 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D992FED231FA1C500C472F8 /* main.m */; }; + 37C7E1F62329742E002165B5 /* ALHomeViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D992FE2231FA1C400C472F8 /* ALHomeViewController.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 1D0CB32E23204CE70076AAAA /* ALInterstitialAdViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ALInterstitialAdViewController.h; sourceTree = ""; }; + 1D0CB32F23204CE70076AAAA /* ALInterstitialAdViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ALInterstitialAdViewController.m; sourceTree = ""; }; + 1D0CB33123204CF70076AAAA /* ALRewardedAdViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ALRewardedAdViewController.h; sourceTree = ""; }; + 1D0CB33223204CF70076AAAA /* ALRewardedAdViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ALRewardedAdViewController.m; sourceTree = ""; }; + 1D0CB33423204D120076AAAA /* ALAutoLayoutBannerAdViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ALAutoLayoutBannerAdViewController.h; sourceTree = ""; }; + 1D0CB33523204D120076AAAA /* ALAutoLayoutBannerAdViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ALAutoLayoutBannerAdViewController.m; sourceTree = ""; }; + 1D992FDB231FA1C300C472F8 /* DemoApp-ObjC.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "DemoApp-ObjC.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 1D992FDE231FA1C300C472F8 /* ALAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ALAppDelegate.h; sourceTree = ""; }; + 1D992FDF231FA1C400C472F8 /* ALAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ALAppDelegate.m; sourceTree = ""; }; + 1D992FE1231FA1C400C472F8 /* ALHomeViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ALHomeViewController.h; sourceTree = ""; }; + 1D992FE2231FA1C400C472F8 /* ALHomeViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ALHomeViewController.m; sourceTree = ""; }; + 1D992FE5231FA1C400C472F8 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 1D992FE7231FA1C500C472F8 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 1D992FEA231FA1C500C472F8 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 1D992FEC231FA1C500C472F8 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 1D992FED231FA1C500C472F8 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 37C7E1E523285B4E002165B5 /* ALInterfaceBuilderBannerAdViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ALInterfaceBuilderBannerAdViewController.m; sourceTree = ""; }; + 37C7E1E723285B6A002165B5 /* ALInterfaceBuilderBannerAdViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ALInterfaceBuilderBannerAdViewController.h; sourceTree = ""; }; + 37C7E1E823285E94002165B5 /* ALFrameLayoutBannerAdViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ALFrameLayoutBannerAdViewController.m; sourceTree = ""; }; + 37C7E1EA23285EDF002165B5 /* ALFrameLayoutBannerAdViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ALFrameLayoutBannerAdViewController.h; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 1D992FD8231FA1C300C472F8 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 1D0CB33823204EBD0076AAAA /* Ads */ = { + isa = PBXGroup; + children = ( + 1D0CB33423204D120076AAAA /* ALAutoLayoutBannerAdViewController.h */, + 1D0CB33523204D120076AAAA /* ALAutoLayoutBannerAdViewController.m */, + 37C7E1EA23285EDF002165B5 /* ALFrameLayoutBannerAdViewController.h */, + 37C7E1E823285E94002165B5 /* ALFrameLayoutBannerAdViewController.m */, + 1D0CB32E23204CE70076AAAA /* ALInterstitialAdViewController.h */, + 1D0CB32F23204CE70076AAAA /* ALInterstitialAdViewController.m */, + 1D0CB33123204CF70076AAAA /* ALRewardedAdViewController.h */, + 1D0CB33223204CF70076AAAA /* ALRewardedAdViewController.m */, + 37C7E1E723285B6A002165B5 /* ALInterfaceBuilderBannerAdViewController.h */, + 37C7E1E523285B4E002165B5 /* ALInterfaceBuilderBannerAdViewController.m */, + ); + path = Ads; + sourceTree = ""; + }; + 1D992FD2231FA1C300C472F8 = { + isa = PBXGroup; + children = ( + 1D992FDD231FA1C300C472F8 /* DemoApp-ObjC */, + 1D992FDC231FA1C300C472F8 /* Products */, + ); + sourceTree = ""; + }; + 1D992FDC231FA1C300C472F8 /* Products */ = { + isa = PBXGroup; + children = ( + 1D992FDB231FA1C300C472F8 /* DemoApp-ObjC.app */, + ); + name = Products; + sourceTree = ""; + }; + 1D992FDD231FA1C300C472F8 /* DemoApp-ObjC */ = { + isa = PBXGroup; + children = ( + 1D0CB33823204EBD0076AAAA /* Ads */, + 1D992FDE231FA1C300C472F8 /* ALAppDelegate.h */, + 1D992FDF231FA1C400C472F8 /* ALAppDelegate.m */, + 1D992FE1231FA1C400C472F8 /* ALHomeViewController.h */, + 1D992FE2231FA1C400C472F8 /* ALHomeViewController.m */, + 1D993015231FA39000C472F8 /* Supporting Files */, + ); + path = "DemoApp-ObjC"; + sourceTree = ""; + }; + 1D993015231FA39000C472F8 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 1D992FED231FA1C500C472F8 /* main.m */, + 1D992FEC231FA1C500C472F8 /* Info.plist */, + 1D992FE7231FA1C500C472F8 /* Assets.xcassets */, + 1D992FE9231FA1C500C472F8 /* LaunchScreen.storyboard */, + 1D992FE4231FA1C400C472F8 /* Main.storyboard */, + ); + path = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 1D992FDA231FA1C300C472F8 /* DemoApp-ObjC */ = { + isa = PBXNativeTarget; + buildConfigurationList = 1D992FF1231FA1C500C472F8 /* Build configuration list for PBXNativeTarget "DemoApp-ObjC" */; + buildPhases = ( + 1D992FD7231FA1C300C472F8 /* Sources */, + 1D992FD8231FA1C300C472F8 /* Frameworks */, + 1D992FD9231FA1C300C472F8 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "DemoApp-ObjC"; + productName = "DemoApp-ObjC"; + productReference = 1D992FDB231FA1C300C472F8 /* DemoApp-ObjC.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 1D992FD3231FA1C300C472F8 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1030; + ORGANIZATIONNAME = "AppLovin Corporation"; + TargetAttributes = { + 1D992FDA231FA1C300C472F8 = { + CreatedOnToolsVersion = 10.3; + }; + }; + }; + buildConfigurationList = 1D992FD6231FA1C300C472F8 /* Build configuration list for PBXProject "DemoApp-ObjC" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 1D992FD2231FA1C300C472F8; + productRefGroup = 1D992FDC231FA1C300C472F8 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 1D992FDA231FA1C300C472F8 /* DemoApp-ObjC */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 1D992FD9231FA1C300C472F8 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 1D992FEB231FA1C500C472F8 /* LaunchScreen.storyboard in Resources */, + 1D992FE8231FA1C500C472F8 /* Assets.xcassets in Resources */, + 1D992FE6231FA1C400C472F8 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 1D992FD7231FA1C300C472F8 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 37C7E1F62329742E002165B5 /* ALHomeViewController.m in Sources */, + 37C7E1F523297423002165B5 /* main.m in Sources */, + 37C7E1F3232892CF002165B5 /* ALAppDelegate.m in Sources */, + 37C7E1EB2328904E002165B5 /* ALAutoLayoutBannerAdViewController.m in Sources */, + 37C7E1EC2328904E002165B5 /* ALFrameLayoutBannerAdViewController.m in Sources */, + 37C7E1ED2328904E002165B5 /* ALInterstitialAdViewController.m in Sources */, + 37C7E1EE2328904E002165B5 /* ALRewardedAdViewController.m in Sources */, + 37C7E1EF2328904E002165B5 /* ALInterfaceBuilderBannerAdViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 1D992FE4231FA1C400C472F8 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 1D992FE5231FA1C400C472F8 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 1D992FE9231FA1C500C472F8 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 1D992FEA231FA1C500C472F8 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 1D992FEF231FA1C500C472F8 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.4; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + OTHER_LDFLAGS = "-ObjC"; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 1D992FF0231FA1C500C472F8 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.4; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + OTHER_LDFLAGS = "-ObjC"; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 1D992FF2231FA1C500C472F8 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = LUDVB6Z3BS; + INFOPLIST_FILE = "$(SRCROOT)/DemoApp-ObjC/Supporting Files/Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.applovin.enterprise.apps.demoapp; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 1D992FF3231FA1C500C472F8 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = LUDVB6Z3BS; + INFOPLIST_FILE = "$(SRCROOT)/DemoApp-ObjC/Supporting Files/Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.applovin.enterprise.apps.demoapp; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 1D992FD6231FA1C300C472F8 /* Build configuration list for PBXProject "DemoApp-ObjC" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1D992FEF231FA1C500C472F8 /* Debug */, + 1D992FF0231FA1C500C472F8 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 1D992FF1231FA1C500C472F8 /* Build configuration list for PBXNativeTarget "DemoApp-ObjC" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1D992FF2231FA1C500C472F8 /* Debug */, + 1D992FF3231FA1C500C472F8 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 1D992FD3231FA1C300C472F8 /* Project object */; +} diff --git a/DemoApp-ObjC/DemoApp-ObjC/ALAppDelegate.h b/DemoApp-ObjC/DemoApp-ObjC/ALAppDelegate.h new file mode 100644 index 0000000000..236bc842e8 --- /dev/null +++ b/DemoApp-ObjC/DemoApp-ObjC/ALAppDelegate.h @@ -0,0 +1,15 @@ +// +// ALAppDelegate.h +// DemoApp-ObjC +// +// Created by Thomas So on 9/4/19. +// Copyright © 2019 AppLovin Corporation. All rights reserved. +// + +#import + +@interface ALAppDelegate : UIResponder + +@property (nonatomic, strong) UIWindow *window; + +@end diff --git a/DemoApp-ObjC/DemoApp-ObjC/ALAppDelegate.m b/DemoApp-ObjC/DemoApp-ObjC/ALAppDelegate.m new file mode 100644 index 0000000000..0fe1bb01f9 --- /dev/null +++ b/DemoApp-ObjC/DemoApp-ObjC/ALAppDelegate.m @@ -0,0 +1,27 @@ +// +// ALAppDelegate.m +// DemoApp-ObjC +// +// Created by Thomas So on 9/4/19. +// Copyright © 2019 AppLovin Corporation. All rights reserved. +// + +#import "ALAppDelegate.h" +#import + +@implementation ALAppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ +#warning - Make sure to add your AppLovin SDK key in the Info.plist under the "AppLovinSdkKey" key + + // Initialize the AppLovin SDK + [ALSdk shared].mediationProvider = ALMediationProviderMAX; + [[ALSdk shared] initializeSdkWithCompletionHandler:^(ALSdkConfiguration *configuration) { + // AppLovin SDK is initialized, start loading ads now or later if ad gate is reached + }]; + + return YES; +} + +@end diff --git a/DemoApp-ObjC/DemoApp-ObjC/ALHomeViewController.h b/DemoApp-ObjC/DemoApp-ObjC/ALHomeViewController.h new file mode 100644 index 0000000000..9e2b05257e --- /dev/null +++ b/DemoApp-ObjC/DemoApp-ObjC/ALHomeViewController.h @@ -0,0 +1,13 @@ +// +// ALHomeViewController.h +// DemoApp-ObjC +// +// Created by Thomas So on 9/4/19. +// Copyright © 2019 AppLovin Corporation. All rights reserved. +// + +#import + +@interface ALHomeViewController : UIViewController + +@end diff --git a/DemoApp-ObjC/DemoApp-ObjC/ALHomeViewController.m b/DemoApp-ObjC/DemoApp-ObjC/ALHomeViewController.m new file mode 100644 index 0000000000..012d5e825a --- /dev/null +++ b/DemoApp-ObjC/DemoApp-ObjC/ALHomeViewController.m @@ -0,0 +1,23 @@ +// +// ALHomeViewController.m +// DemoApp-ObjC +// +// Created by Thomas So on 9/4/19. +// Copyright © 2019 AppLovin Corporation. All rights reserved. +// + +#import "ALHomeViewController.h" + +@interface ALHomeViewController() + +@end + +@implementation ALHomeViewController + +- (void)viewDidLoad +{ + [super viewDidLoad]; + +} + +@end diff --git a/DemoApp-ObjC/DemoApp-ObjC/Ads/ALAutoLayoutBannerAdViewController.h b/DemoApp-ObjC/DemoApp-ObjC/Ads/ALAutoLayoutBannerAdViewController.h new file mode 100644 index 0000000000..48335ac540 --- /dev/null +++ b/DemoApp-ObjC/DemoApp-ObjC/Ads/ALAutoLayoutBannerAdViewController.h @@ -0,0 +1,17 @@ +// +// ALAutoLayoutBannerAdViewController.h +// DemoApp-ObjC +// +// Created by Thomas So on 9/4/19. +// Copyright © 2019 AppLovin Corporation. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface ALAutoLayoutBannerAdViewController : UIViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/DemoApp-ObjC/DemoApp-ObjC/Ads/ALAutoLayoutBannerAdViewController.m b/DemoApp-ObjC/DemoApp-ObjC/Ads/ALAutoLayoutBannerAdViewController.m new file mode 100644 index 0000000000..ba1dfe2930 --- /dev/null +++ b/DemoApp-ObjC/DemoApp-ObjC/Ads/ALAutoLayoutBannerAdViewController.m @@ -0,0 +1,80 @@ +// +// ALAutoLayoutBannerAdViewController.m +// DemoApp-ObjC +// +// Created by Thomas So on 9/4/19. +// Copyright © 2019 AppLovin Corporation. All rights reserved. +// + +#import "ALAutoLayoutBannerAdViewController.h" +#import + +@interface ALAutoLayoutBannerAdViewController() +@property (nonatomic, strong) MAAdView *adView; +@end + +@implementation ALAutoLayoutBannerAdViewController + +#pragma mark - View Lifecycle + +- (void)viewDidLoad +{ + [super viewDidLoad]; + + self.adView = [[MAAdView alloc] initWithAdUnitIdentifier: @"BANNER_AD_UNIT_ID"]; + self.adView.delegate = self; + self.adView.translatesAutoresizingMaskIntoConstraints = NO; + + // Set background or background color for banners to be fully functional + self.adView.backgroundColor = UIColor.blackColor; + + // Center the banner and anchor it to the top of the screen. + CGFloat height = (UIDevice.currentDevice.userInterfaceIdiom == UIUserInterfaceIdiomPad) ? 90 : 50; // Banner height on iPhone and iPad is 50 and 90, respectively + [self.view addConstraints: @[[self constraintWithAdView: self.adView andAttribute: NSLayoutAttributeLeading], + [self constraintWithAdView: self.adView andAttribute: NSLayoutAttributeTrailing], + [self constraintWithAdView: self.adView andAttribute: NSLayoutAttributeTop], + [NSLayoutConstraint constraintWithItem: self.adView + attribute: NSLayoutAttributeHeight + relatedBy: NSLayoutRelationEqual + toItem: nil + attribute: NSLayoutAttributeNotAnAttribute + multiplier: 1.0 + constant: height]]]; + [self.view addSubview: self.adView]; + + // Load the first ad + [self.adView loadAd]; +} + +- (NSLayoutConstraint *)constraintWithAdView:(MAAdView *)adView andAttribute:(NSLayoutAttribute)attribute +{ + return [NSLayoutConstraint constraintWithItem: self.adView + attribute: attribute + relatedBy: NSLayoutRelationEqual + toItem: self.view + attribute: attribute + multiplier: 1.0 + constant: 0.0]; +} + +#pragma mark - MAAdDelegate Protocol + +- (void)didLoadAd:(MAAd *)ad {} + +- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withErrorCode:(NSInteger)errorCode {} + +- (void)didDisplayAd:(MAAd *)ad {} + +- (void)didHideAd:(MAAd *)ad {} + +- (void)didClickAd:(MAAd *)ad {} + +- (void)didFailToDisplayAd:(MAAd *)ad withErrorCode:(NSInteger)errorCode {} + +#pragma mark - MAAdViewAdDelegate Protocol + +- (void)didExpandAd:(MAAd *)ad {} + +- (void)didCollapseAd:(MAAd *)ad {} + +@end diff --git a/DemoApp-ObjC/DemoApp-ObjC/Ads/ALFrameLayoutBannerAdViewController.h b/DemoApp-ObjC/DemoApp-ObjC/Ads/ALFrameLayoutBannerAdViewController.h new file mode 100644 index 0000000000..b2e58084bf --- /dev/null +++ b/DemoApp-ObjC/DemoApp-ObjC/Ads/ALFrameLayoutBannerAdViewController.h @@ -0,0 +1,17 @@ +// +// ALFrameLayoutBannerAdViewController.h +// DemoApp-ObjC +// +// Created by Andrew Tian on 9/10/19. +// Copyright © 2019 AppLovin Corporation. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface ALFrameLayoutBannerAdViewController : UIViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/DemoApp-ObjC/DemoApp-ObjC/Ads/ALFrameLayoutBannerAdViewController.m b/DemoApp-ObjC/DemoApp-ObjC/Ads/ALFrameLayoutBannerAdViewController.m new file mode 100644 index 0000000000..12cdd34e1e --- /dev/null +++ b/DemoApp-ObjC/DemoApp-ObjC/Ads/ALFrameLayoutBannerAdViewController.m @@ -0,0 +1,64 @@ +// +// ALFrameLayoutBannerAdViewController.m +// DemoApp-ObjC +// +// Created by Andrew Tian on 9/10/19. +// Copyright © 2019 AppLovin Corporation. All rights reserved. +// + +#import "ALFrameLayoutBannerAdViewController.h" +#import + +@interface ALFrameLayoutBannerAdViewController() +@property (nonatomic, strong) MAAdView *adView; +@end + +@implementation ALFrameLayoutBannerAdViewController + +#pragma mark - View Lifecycle + +- (void)viewDidLoad +{ + [super viewDidLoad]; + + self.adView = [[MAAdView alloc] initWithAdUnitIdentifier: @"YOUR_AD_UNIT_ID"]; + self.adView.delegate = self; + + // Calculate dimensions + CGFloat width = CGRectGetWidth(self.view.bounds); // Stretch to the width of the screen for banners to be fully functional + CGFloat height = (UIDevice.currentDevice.userInterfaceIdiom == UIUserInterfaceIdiomPad) ? 90 : 50; // Banner height on iPhone and iPad is 50 and 90, respectively + CGFloat x = 0; + CGFloat y = 0; + + self.adView.frame = CGRectMake(x, y, width, height); + + // Set background or background color for banners to be fully functional + self.adView.backgroundColor = UIColor.blackColor; + + [self.view addSubview: self.adView]; + + // Load the first ad + [self.adView loadAd]; +} + +#pragma mark - MAAdDelegate Protocol + +- (void)didLoadAd:(MAAd *)ad {} + +- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withErrorCode:(NSInteger)errorCode {} + +- (void)didDisplayAd:(MAAd *)ad {} + +- (void)didHideAd:(MAAd *)ad {} + +- (void)didClickAd:(MAAd *)ad {} + +- (void)didFailToDisplayAd:(MAAd *)ad withErrorCode:(NSInteger)errorCode {} + +#pragma mark - MAAdViewAdDelegate Protocol + +- (void)didExpandAd:(MAAd *)ad {} + +- (void)didCollapseAd:(MAAd *)ad {} + +@end diff --git a/DemoApp-ObjC/DemoApp-ObjC/Ads/ALInterfaceBuilderBannerAdViewController.h b/DemoApp-ObjC/DemoApp-ObjC/Ads/ALInterfaceBuilderBannerAdViewController.h new file mode 100644 index 0000000000..61133b4fc9 --- /dev/null +++ b/DemoApp-ObjC/DemoApp-ObjC/Ads/ALInterfaceBuilderBannerAdViewController.h @@ -0,0 +1,17 @@ +// +// ALInterfaceBuilderBannerAdViewController.h +// DemoApp-ObjC +// +// Created by Andrew Tian on 9/10/19. +// Copyright © 2019 AppLovin Corporation. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface ALInterfaceBuilderBannerAdViewController : UIViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/DemoApp-ObjC/DemoApp-ObjC/Ads/ALInterfaceBuilderBannerAdViewController.m b/DemoApp-ObjC/DemoApp-ObjC/Ads/ALInterfaceBuilderBannerAdViewController.m new file mode 100644 index 0000000000..d361933c6e --- /dev/null +++ b/DemoApp-ObjC/DemoApp-ObjC/Ads/ALInterfaceBuilderBannerAdViewController.m @@ -0,0 +1,53 @@ +// +// ALInterfaceBuilderBannerAdViewController.m +// DemoApp-ObjC +// +// Created by Andrew Tian on 9/10/19. +// Copyright © 2019 AppLovin Corporation. All rights reserved. +// + +#import "ALInterfaceBuilderBannerAdViewController.h" +#import + +@interface ALInterfaceBuilderBannerAdViewController() +@property (nonatomic, strong) IBOutlet MAAdView *adView; +@end + +@implementation ALInterfaceBuilderBannerAdViewController + +#pragma mark - View Lifecycle + +- (void)viewDidLoad +{ + [super viewDidLoad]; + + // NOTE: Must set Storyboard "User Defined Runtime Attributes" for banner ad view + // Key Path = ad_unit_id + // Type = String + // Value = YOUR_AD_UNIT_ID + + // Load the first ad + [self.adView loadAd]; +} + +#pragma mark - MAAdDelegate Protocol + +- (void)didLoadAd:(MAAd *)ad {} + +- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withErrorCode:(NSInteger)errorCode {} + +- (void)didDisplayAd:(MAAd *)ad {} + +- (void)didHideAd:(MAAd *)ad {} + +- (void)didClickAd:(MAAd *)ad {} + +- (void)didFailToDisplayAd:(MAAd *)ad withErrorCode:(NSInteger)errorCode {} + +#pragma mark - MAAdViewAdDelegate Protocol + +- (void)didExpandAd:(MAAd *)ad {} + +- (void)didCollapseAd:(MAAd *)ad {} + +@end diff --git a/DemoApp-ObjC/DemoApp-ObjC/Ads/ALInterstitialAdViewController.h b/DemoApp-ObjC/DemoApp-ObjC/Ads/ALInterstitialAdViewController.h new file mode 100644 index 0000000000..e95aa4bdef --- /dev/null +++ b/DemoApp-ObjC/DemoApp-ObjC/Ads/ALInterstitialAdViewController.h @@ -0,0 +1,17 @@ +// +// ALInterstitialAdViewController.h +// DemoApp-ObjC +// +// Created by Thomas So on 9/4/19. +// Copyright © 2019 AppLovin Corporation. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface ALInterstitialAdViewController : UIViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/DemoApp-ObjC/DemoApp-ObjC/Ads/ALInterstitialAdViewController.m b/DemoApp-ObjC/DemoApp-ObjC/Ads/ALInterstitialAdViewController.m new file mode 100644 index 0000000000..ae10e1bb86 --- /dev/null +++ b/DemoApp-ObjC/DemoApp-ObjC/Ads/ALInterstitialAdViewController.m @@ -0,0 +1,72 @@ +// +// ALInterstitialAdViewController.m +// DemoApp-ObjC +// +// Created by Thomas So on 9/4/19. +// Copyright © 2019 AppLovin Corporation. All rights reserved. +// + +#import "ALInterstitialAdViewController.h" +#import + +@interface ALInterstitialAdViewController() +@property (nonatomic, strong) MAInterstitialAd *interstitialAd; +@end + +@implementation ALInterstitialAdViewController + +#pragma mark - View Lifecycle + +- (void)viewDidLoad +{ + [super viewDidLoad]; + + self.interstitialAd = [[MAInterstitialAd alloc] initWithAdUnitIdentifier: @"YOUR_AD_UNIT_ID"]; + self.interstitialAd.delegate = self; + + // Load the first ad + [self.interstitialAd loadAd]; +} + +#pragma mark - IB Actions + +- (IBAction)showAd +{ + if ( [self.interstitialAd isReady] ) + { + [self.interstitialAd showAd]; + } +} + +#pragma mark - MAAdDelegate Protocol + +- (void)didLoadAd:(MAAd *)ad +{ + // Interstitial ad is ready to be shown. '[self.interstitialAd isReady]' will now return 'YES' +} + +- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withErrorCode:(NSInteger)errorCode +{ + // Interstitial ad failed to load. We recommend re-trying in 3 seconds. + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 3 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{ + [self.interstitialAd loadAd]; + }); +} + +- (void)didDisplayAd:(MAAd *)ad {} + +- (void)didClickAd:(MAAd *)ad {} + +- (void)didHideAd:(MAAd *)ad +{ + // Interstitial ad is hidden. Pre-load the next ad + [self.interstitialAd loadAd]; +} + +- (void)didFailToDisplayAd:(MAAd *)ad withErrorCode:(NSInteger)errorCode +{ + // Interstitial ad failed to display. We recommend loading the next ad + [self.interstitialAd loadAd]; +} + +@end diff --git a/DemoApp-ObjC/DemoApp-ObjC/Ads/ALRewardedAdViewController.h b/DemoApp-ObjC/DemoApp-ObjC/Ads/ALRewardedAdViewController.h new file mode 100644 index 0000000000..35349c60e4 --- /dev/null +++ b/DemoApp-ObjC/DemoApp-ObjC/Ads/ALRewardedAdViewController.h @@ -0,0 +1,17 @@ +// +// ALRewardedAdViewController.h +// DemoApp-ObjC +// +// Created by Thomas So on 9/4/19. +// Copyright © 2019 AppLovin Corporation. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface ALRewardedAdViewController : UIViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/DemoApp-ObjC/DemoApp-ObjC/Ads/ALRewardedAdViewController.m b/DemoApp-ObjC/DemoApp-ObjC/Ads/ALRewardedAdViewController.m new file mode 100644 index 0000000000..edd0c68659 --- /dev/null +++ b/DemoApp-ObjC/DemoApp-ObjC/Ads/ALRewardedAdViewController.m @@ -0,0 +1,83 @@ +// +// ALRewardedAdViewController.m +// DemoApp-ObjC +// +// Created by Thomas So on 9/4/19. +// Copyright © 2019 AppLovin Corporation. All rights reserved. +// + +#import "ALRewardedAdViewController.h" +#import + +@interface ALRewardedAdViewController() +@property (nonatomic, strong) MARewardedAd *rewardedAd; +@end + +@implementation ALRewardedAdViewController + +#pragma mark - View Lifecycle + +- (void)viewDidLoad +{ + [super viewDidLoad]; + + self.rewardedAd = [MARewardedAd sharedWithAdUnitIdentifier: @"YOUR_AD_UNIT_ID"]; + self.rewardedAd.delegate = self; + + // Load the first ad + [self.rewardedAd loadAd]; +} + +#pragma mark - IB Actions + +- (IBAction)showAd +{ + if ( [self.rewardedAd isReady] ) + { + [self.rewardedAd showAd]; + } +} + +#pragma mark - MAAdDelegate Protocol + +- (void)didLoadAd:(MAAd *)ad +{ + // Rewarded ad is ready to be shown. '[self.rewardedAd isReady]' will now return 'YES' +} + +- (void)didFailToLoadAdForAdUnitIdentifier:(NSString *)adUnitIdentifier withErrorCode:(NSInteger)errorCode +{ + // Rewarded ad failed to load. We recommend re-trying in 3 seconds. + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 3 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{ + [self.rewardedAd loadAd]; + }); +} + +- (void)didDisplayAd:(MAAd *)ad {} + +- (void)didClickAd:(MAAd *)ad {} + +- (void)didHideAd:(MAAd *)ad +{ + // Rewarded ad is hidden. Pre-load the next ad + [self.rewardedAd loadAd]; +} + +- (void)didFailToDisplayAd:(MAAd *)ad withErrorCode:(NSInteger)errorCode +{ + // Rewarded ad failed to display. We recommend loading the next ad + [self.rewardedAd loadAd]; +} + +#pragma mark - MARewardedAdDelegate Protocol + +- (void)didStartRewardedVideoForAd:(MAAd *)ad {} + +- (void)didCompleteRewardedVideoForAd:(MAAd *)ad {} + +- (void)didRewardUserForAd:(MAAd *)ad withReward:(MAReward *)reward +{ + // Rewarded ad was displayed and user should receive the reward +} + +@end diff --git a/DemoApp-ObjC/DemoApp-ObjC/Supporting Files/Assets.xcassets/AppIcon.appiconset/Contents.json b/DemoApp-ObjC/DemoApp-ObjC/Supporting Files/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000..d8db8d65fd --- /dev/null +++ b/DemoApp-ObjC/DemoApp-ObjC/Supporting Files/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/DemoApp-ObjC/DemoApp-ObjC/Supporting Files/Assets.xcassets/Contents.json b/DemoApp-ObjC/DemoApp-ObjC/Supporting Files/Assets.xcassets/Contents.json new file mode 100644 index 0000000000..da4a164c91 --- /dev/null +++ b/DemoApp-ObjC/DemoApp-ObjC/Supporting Files/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/DemoApp-ObjC/DemoApp-ObjC/Supporting Files/Base.lproj/LaunchScreen.storyboard b/DemoApp-ObjC/DemoApp-ObjC/Supporting Files/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000000..bfa3612941 --- /dev/null +++ b/DemoApp-ObjC/DemoApp-ObjC/Supporting Files/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/DemoApp-ObjC/DemoApp-ObjC/Supporting Files/Base.lproj/Main.storyboard b/DemoApp-ObjC/DemoApp-ObjC/Supporting Files/Base.lproj/Main.storyboard new file mode 100644 index 0000000000..56265b689d --- /dev/null +++ b/DemoApp-ObjC/DemoApp-ObjC/Supporting Files/Base.lproj/Main.storyboard @@ -0,0 +1,276 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/DemoApp-ObjC/DemoApp-ObjC/Supporting Files/Info.plist b/DemoApp-ObjC/DemoApp-ObjC/Supporting Files/Info.plist new file mode 100644 index 0000000000..944a91f5c8 --- /dev/null +++ b/DemoApp-ObjC/DemoApp-ObjC/Supporting Files/Info.plist @@ -0,0 +1,49 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + AppLovin + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0.0 + CFBundleVersion + 1000000 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + AppLovinSdkKey + SDK_KEY_HERE + + diff --git a/DemoApp-ObjC/DemoApp-ObjC/Supporting Files/main.m b/DemoApp-ObjC/DemoApp-ObjC/Supporting Files/main.m new file mode 100644 index 0000000000..5489ed7beb --- /dev/null +++ b/DemoApp-ObjC/DemoApp-ObjC/Supporting Files/main.m @@ -0,0 +1,16 @@ +// +// main.m +// DemoApp-ObjC +// +// Created by Thomas So on 9/4/19. +// Copyright © 2019 AppLovin Corporation. All rights reserved. +// + +#import +#import "ALAppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([ALAppDelegate class])); + } +} diff --git a/DemoApp-ObjC/Podfile b/DemoApp-ObjC/Podfile new file mode 100644 index 0000000000..6e2c794dd2 --- /dev/null +++ b/DemoApp-ObjC/Podfile @@ -0,0 +1,6 @@ +use_frameworks! +inhibit_all_warnings! + +target 'DemoApp-ObjC' do + pod 'AppLovinSDK' +end