Commit 84d5202c by Dmitriy Stepanets

Added initial model

parent 2719e434
......@@ -12,7 +12,7 @@
<key>OneWeatherNotificationServiceExtension.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>57</integer>
<integer>55</integer>
</dict>
<key>PG (Playground) 1.xcscheme</key>
<dict>
......
......@@ -2,6 +2,9 @@
<Workspace
version = "1.0">
<FileRef
location = "group:InMobiShortsSource/InMobiShortsSource.xcodeproj">
</FileRef>
<FileRef
location = "group:OneWeatherAnalytics/OneWeatherAnalytics.xcodeproj">
</FileRef>
<FileRef
......
......@@ -135,7 +135,7 @@
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>2</integer>
<integer>60</integer>
</dict>
<key>PG (Playground) 1.xcscheme</key>
<dict>
......@@ -268,7 +268,7 @@
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>1</integer>
<integer>61</integer>
</dict>
</dict>
</dict>
......
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {
/* Begin PBXBuildFile section */
CDFE3F12266E407A00E72910 /* InMobiShortsSource.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDFE3F08266E407A00E72910 /* InMobiShortsSource.framework */; };
CDFE3F17266E407A00E72910 /* InMobiShortsSourceTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDFE3F16266E407A00E72910 /* InMobiShortsSourceTests.swift */; };
CDFE3F19266E407A00E72910 /* InMobiShortsSource.h in Headers */ = {isa = PBXBuildFile; fileRef = CDFE3F0B266E407A00E72910 /* InMobiShortsSource.h */; settings = {ATTRIBUTES = (Public, ); }; };
CDFE3F23266E453500E72910 /* InMobiShortSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDFE3F22266E453500E72910 /* InMobiShortSource.swift */; };
CDFE3F25266E45B800E72910 /* Glance.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDFE3F24266E45B800E72910 /* Glance.swift */; };
CDFE3F27266E470200E72910 /* GlanceDetails.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDFE3F26266E470200E72910 /* GlanceDetails.swift */; };
CDFE3F29266E489E00E72910 /* GlanceImage.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDFE3F28266E489E00E72910 /* GlanceImage.swift */; };
CDFE3F2C266E519E00E72910 /* PeekData.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDFE3F2B266E519E00E72910 /* PeekData.swift */; };
CDFE3F2E266E51B400E72910 /* Peek.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDFE3F2D266E51B400E72910 /* Peek.swift */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
CDFE3F13266E407A00E72910 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = CDFE3EFF266E407A00E72910 /* Project object */;
proxyType = 1;
remoteGlobalIDString = CDFE3F07266E407A00E72910;
remoteInfo = InMobiShortsSource;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
CDFE3F08266E407A00E72910 /* InMobiShortsSource.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = InMobiShortsSource.framework; sourceTree = BUILT_PRODUCTS_DIR; };
CDFE3F0B266E407A00E72910 /* InMobiShortsSource.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = InMobiShortsSource.h; sourceTree = "<group>"; };
CDFE3F0C266E407A00E72910 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
CDFE3F11266E407A00E72910 /* InMobiShortsSourceTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = InMobiShortsSourceTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
CDFE3F16266E407A00E72910 /* InMobiShortsSourceTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InMobiShortsSourceTests.swift; sourceTree = "<group>"; };
CDFE3F18266E407A00E72910 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
CDFE3F22266E453500E72910 /* InMobiShortSource.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InMobiShortSource.swift; sourceTree = "<group>"; };
CDFE3F24266E45B800E72910 /* Glance.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Glance.swift; sourceTree = "<group>"; };
CDFE3F26266E470200E72910 /* GlanceDetails.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GlanceDetails.swift; sourceTree = "<group>"; };
CDFE3F28266E489E00E72910 /* GlanceImage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GlanceImage.swift; sourceTree = "<group>"; };
CDFE3F2B266E519E00E72910 /* PeekData.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PeekData.swift; sourceTree = "<group>"; };
CDFE3F2D266E51B400E72910 /* Peek.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Peek.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
CDFE3F05266E407A00E72910 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
CDFE3F0E266E407A00E72910 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
CDFE3F12266E407A00E72910 /* InMobiShortsSource.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
CDFE3EFE266E407A00E72910 = {
isa = PBXGroup;
children = (
CDFE3F0A266E407A00E72910 /* InMobiShortsSource */,
CDFE3F15266E407A00E72910 /* InMobiShortsSourceTests */,
CDFE3F09266E407A00E72910 /* Products */,
);
sourceTree = "<group>";
};
CDFE3F09266E407A00E72910 /* Products */ = {
isa = PBXGroup;
children = (
CDFE3F08266E407A00E72910 /* InMobiShortsSource.framework */,
CDFE3F11266E407A00E72910 /* InMobiShortsSourceTests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
CDFE3F0A266E407A00E72910 /* InMobiShortsSource */ = {
isa = PBXGroup;
children = (
CDFE3F2A266E4A5300E72910 /* Models */,
CDFE3F22266E453500E72910 /* InMobiShortSource.swift */,
CDFE3F0B266E407A00E72910 /* InMobiShortsSource.h */,
CDFE3F0C266E407A00E72910 /* Info.plist */,
);
path = InMobiShortsSource;
sourceTree = "<group>";
};
CDFE3F15266E407A00E72910 /* InMobiShortsSourceTests */ = {
isa = PBXGroup;
children = (
CDFE3F16266E407A00E72910 /* InMobiShortsSourceTests.swift */,
CDFE3F18266E407A00E72910 /* Info.plist */,
);
path = InMobiShortsSourceTests;
sourceTree = "<group>";
};
CDFE3F2A266E4A5300E72910 /* Models */ = {
isa = PBXGroup;
children = (
CDFE3F24266E45B800E72910 /* Glance.swift */,
CDFE3F26266E470200E72910 /* GlanceDetails.swift */,
CDFE3F28266E489E00E72910 /* GlanceImage.swift */,
CDFE3F2B266E519E00E72910 /* PeekData.swift */,
CDFE3F2D266E51B400E72910 /* Peek.swift */,
);
path = Models;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
CDFE3F03266E407A00E72910 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
CDFE3F19266E407A00E72910 /* InMobiShortsSource.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
CDFE3F07266E407A00E72910 /* InMobiShortsSource */ = {
isa = PBXNativeTarget;
buildConfigurationList = CDFE3F1C266E407A00E72910 /* Build configuration list for PBXNativeTarget "InMobiShortsSource" */;
buildPhases = (
CDFE3F03266E407A00E72910 /* Headers */,
CDFE3F04266E407A00E72910 /* Sources */,
CDFE3F05266E407A00E72910 /* Frameworks */,
CDFE3F06266E407A00E72910 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = InMobiShortsSource;
productName = InMobiShortsSource;
productReference = CDFE3F08266E407A00E72910 /* InMobiShortsSource.framework */;
productType = "com.apple.product-type.framework";
};
CDFE3F10266E407A00E72910 /* InMobiShortsSourceTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = CDFE3F1F266E407A00E72910 /* Build configuration list for PBXNativeTarget "InMobiShortsSourceTests" */;
buildPhases = (
CDFE3F0D266E407A00E72910 /* Sources */,
CDFE3F0E266E407A00E72910 /* Frameworks */,
CDFE3F0F266E407A00E72910 /* Resources */,
);
buildRules = (
);
dependencies = (
CDFE3F14266E407A00E72910 /* PBXTargetDependency */,
);
name = InMobiShortsSourceTests;
productName = InMobiShortsSourceTests;
productReference = CDFE3F11266E407A00E72910 /* InMobiShortsSourceTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
CDFE3EFF266E407A00E72910 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1250;
LastUpgradeCheck = 1250;
TargetAttributes = {
CDFE3F07266E407A00E72910 = {
CreatedOnToolsVersion = 12.5;
LastSwiftMigration = 1250;
};
CDFE3F10266E407A00E72910 = {
CreatedOnToolsVersion = 12.5;
};
};
};
buildConfigurationList = CDFE3F02266E407A00E72910 /* Build configuration list for PBXProject "InMobiShortsSource" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = CDFE3EFE266E407A00E72910;
productRefGroup = CDFE3F09266E407A00E72910 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
CDFE3F07266E407A00E72910 /* InMobiShortsSource */,
CDFE3F10266E407A00E72910 /* InMobiShortsSourceTests */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
CDFE3F06266E407A00E72910 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
CDFE3F0F266E407A00E72910 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
CDFE3F04266E407A00E72910 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
CDFE3F2E266E51B400E72910 /* Peek.swift in Sources */,
CDFE3F23266E453500E72910 /* InMobiShortSource.swift in Sources */,
CDFE3F29266E489E00E72910 /* GlanceImage.swift in Sources */,
CDFE3F25266E45B800E72910 /* Glance.swift in Sources */,
CDFE3F27266E470200E72910 /* GlanceDetails.swift in Sources */,
CDFE3F2C266E519E00E72910 /* PeekData.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
CDFE3F0D266E407A00E72910 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
CDFE3F17266E407A00E72910 /* InMobiShortsSourceTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
CDFE3F14266E407A00E72910 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = CDFE3F07266E407A00E72910 /* InMobiShortsSource */;
targetProxy = CDFE3F13266E407A00E72910 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
CDFE3F1A266E407A00E72910 /* 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
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;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
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 = 14.5;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Debug;
};
CDFE3F1B266E407A00E72910 /* 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
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;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
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 = 14.5;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Release;
};
CDFE3F1D266E407A00E72910 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 24W4XMQ38L;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = InMobiShortsSource/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 11.4;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.inmobi.InMobiShortsSource;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SUPPORTS_MACCATALYST = NO;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
CDFE3F1E266E407A00E72910 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 24W4XMQ38L;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = InMobiShortsSource/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 11.4;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.inmobi.InMobiShortsSource;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SUPPORTS_MACCATALYST = NO;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
CDFE3F20266E407A00E72910 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 24W4XMQ38L;
INFOPLIST_FILE = InMobiShortsSourceTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.inmobi.InMobiShortsSourceTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
CDFE3F21266E407A00E72910 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 24W4XMQ38L;
INFOPLIST_FILE = InMobiShortsSourceTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.inmobi.InMobiShortsSourceTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
CDFE3F02266E407A00E72910 /* Build configuration list for PBXProject "InMobiShortsSource" */ = {
isa = XCConfigurationList;
buildConfigurations = (
CDFE3F1A266E407A00E72910 /* Debug */,
CDFE3F1B266E407A00E72910 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
CDFE3F1C266E407A00E72910 /* Build configuration list for PBXNativeTarget "InMobiShortsSource" */ = {
isa = XCConfigurationList;
buildConfigurations = (
CDFE3F1D266E407A00E72910 /* Debug */,
CDFE3F1E266E407A00E72910 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
CDFE3F1F266E407A00E72910 /* Build configuration list for PBXNativeTarget "InMobiShortsSourceTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
CDFE3F20266E407A00E72910 /* Debug */,
CDFE3F21266E407A00E72910 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = CDFE3EFF266E407A00E72910 /* Project object */;
}
//
// InMobiShortSource.swift
// InMobiShortsSource
//
// Created by Dmitry Stepanets on 07.06.2021.
//
import Foundation
public class InMobiShortSource {
private static let apiKey = "9b5f4682b74f75cbedb34ee235c988f9"
private static let region = "US"
private static let sdkV = "80000"
public func getShorts(completion: @escaping (_ shorts:[GlanceDetails]) -> Void) {
}
}
//
// InMobiShortsSource.h
// InMobiShortsSource
//
// Created by Dmitry Stepanets on 07.06.2021.
//
#import <Foundation/Foundation.h>
//! Project version number for InMobiShortsSource.
FOUNDATION_EXPORT double InMobiShortsSourceVersionNumber;
//! Project version string for InMobiShortsSource.
FOUNDATION_EXPORT const unsigned char InMobiShortsSourceVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <InMobiShortsSource/PublicHeader.h>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
</plist>
//
// Glance.swift
// InMobiShortsSource
//
// Created by Dmitry Stepanets on 07.06.2021.
//
import Foundation
enum GlanceUpdateType: String, Codable {
case ADD = "ADD"
case REMOVE = "REMOVE"
}
struct Glance: Codable {
let glanceId: String
let updatedAtInSecs: TimeInterval
let glanceType: String
let updateType: GlanceUpdateType
}
//
// GlanceDetails.swift
// InMobiShortsSource
//
// Created by Dmitry Stepanets on 07.06.2021.
//
import Foundation
public struct GlanceIteractionDetails: Codable {
let likeCount: Int
let shareCount: Int
}
public struct GlanceDetails: Codable {
public let id: String
public let image: GlanceImage
public let updatedAtInSecs: TimeInterval
public let startsAtInSecs: TimeInterval
public let endsAtInSecs: TimeInterval
public let shareURL: URL?
public let peekData: PeekData
public let peek: Peek
public let glanceIteractionDetails: GlanceIteractionDetails
}
//
// GlanceImage.swift
// InMobiShortsSource
//
// Created by Dmitry Stepanets on 07.06.2021.
//
import Foundation
public struct GlanceImageFormat: Codable {
let width:Int
let height:Int
let url:URL
}
public struct GlanceImage: Codable {
let id:String
let supportedImages:[GlanceImageFormat]
}
//
// Peek.swift
// InMobiShortsSource
//
// Created by Dmitry Stepanets on 07.06.2021.
//
import Foundation
public struct Peek: Codable {
let articlePeek: ArticlePeek
}
struct ArticlePeek: Codable {
let summary: String
let cta: GlanceCTA
}
struct GlanceCTA: Codable {
let url: URL
let text: String
}
//
// PeekData.swift
// InMobiShortsSource
//
// Created by Dmitry Stepanets on 07.06.2021.
//
import Foundation
public struct PeekData: Codable {
public let title:String
public let sourceName:String
public let heartCount:Int
public let shortURL:URL?
public let ctaText:String
}
//
// InMobiShortsSourceTests.swift
// InMobiShortsSourceTests
//
// Created by Dmitry Stepanets on 07.06.2021.
//
import XCTest
@testable import InMobiShortsSource
class InMobiShortsSourceTests: XCTestCase {
override func setUpWithError() throws {
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDownWithError() throws {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}
func testExample() throws {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
func testPerformanceExample() throws {
// This is an example of a performance test case.
self.measure {
// Put the code you want to measure the time of here.
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment