Skip to content

Commit

Permalink
Merge pull request #708 from OneSignal/feature/Support_XCFramework
Browse files Browse the repository at this point in the history
Adding XCFramework version of the SDK
  • Loading branch information
emawby authored Jul 31, 2020
2 parents 2334d5e + 0e95c03 commit f7c0708
Show file tree
Hide file tree
Showing 22 changed files with 2,215 additions and 0 deletions.
17 changes: 17 additions & 0 deletions OneSignalXCFramework.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Pod::Spec.new do |s|
s.name = "OneSignalXCFramework"
s.version = "2.14.3"
s.summary = "OneSignal push notification library for mobile apps."
s.homepage = "https://onesignal.com"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { "Joseph Kalash" => "[email protected]", "Josh Kasten" => "[email protected]" , "Brad Hesse" => "[email protected]"}

s.source = { :git => "https://github.com/OneSignal/OneSignal-iOS-SDK.git", :tag => s.version.to_s }
s.platform = :ios
s.requires_arc = true

s.ios.vendored_frameworks = 'iOS_SDK/OneSignalSDK/OneSignal_XCFramework/OneSignal.xcframework'
s.preserve_paths = 'iOS_SDK/OneSignalSDK/OneSignal_XCFramework/OneSignal.xcframework'

end

64 changes: 64 additions & 0 deletions iOS_SDK/OneSignalSDK/OneSignal.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@
name = "OneSignal-Dynamic-Framework";
productName = "OneSignal-Dynamic-Framework";
};
DEC2EA8E24B7B63800C1FD34 /* OneSignal-XCFramework */ = {
isa = PBXAggregateTarget;
buildConfigurationList = DEC2EA9024B7B63800C1FD34 /* Build configuration list for PBXAggregateTarget "OneSignal-XCFramework" */;
buildPhases = (
DEC2EA8F24B7B63800C1FD34 /* ShellScript */,
);
dependencies = (
);
name = "OneSignal-XCFramework";
productName = "OneSignal-Dynamic-Framework";
};
/* End PBXAggregateTarget section */

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -1401,6 +1412,10 @@
DevelopmentTeam = 4ZR3G6ZK9T;
ProvisioningStyle = Automatic;
};
DEC2EA8E24B7B63800C1FD34 = {
DevelopmentTeam = 4ZR3G6ZK9T;
ProvisioningStyle = Automatic;
};
};
};
buildConfigurationList = 37747F8E19147D6400558FAD /* Build configuration list for PBXProject "OneSignal" */;
Expand All @@ -1421,6 +1436,7 @@
911E2CB91E398AB3003112A4 /* UnitTests */,
CAA98897213F4B34009FEE5E /* OneSignal-Dynamic-Framework */,
CA2951BD2167F9860064227A /* OneSignal-Static-Framework */,
DEC2EA8E24B7B63800C1FD34 /* OneSignal-XCFramework */,
);
};
/* End PBXProject section */
Expand Down Expand Up @@ -1469,6 +1485,19 @@
shellPath = /bin/sh;
shellScript = "/bin/sh ${SRCROOT}/build_dynamic_framework.sh\n";
};
DEC2EA8F24B7B63800C1FD34 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh ${SRCROOT}/build_xcframework.sh\n";
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand Down Expand Up @@ -2088,6 +2117,32 @@
};
name = Debug;
};
DEC2EA9124B7B63800C1FD34 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 4ZR3G6ZK9T;
ONESIGNAL_DESTINATION_PATH = "${SRCROOT}/Framework";
ONESIGNAL_MACH_O_TYPE = staticlib;
ONESIGNAL_OUTPUT_NAME = OneSignal;
ONESIGNAL_TARGET_NAME = OneSignalFramework;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
DEC2EA9224B7B63800C1FD34 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 4ZR3G6ZK9T;
ONESIGNAL_DESTINATION_PATH = "${SRCROOT}/Framework";
ONESIGNAL_MACH_O_TYPE = staticlib;
ONESIGNAL_OUTPUT_NAME = OneSignal;
ONESIGNAL_TARGET_NAME = OneSignalFramework;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand Down Expand Up @@ -2145,6 +2200,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
DEC2EA9024B7B63800C1FD34 /* Build configuration list for PBXAggregateTarget "OneSignal-XCFramework" */ = {
isa = XCConfigurationList;
buildConfigurations = (
DEC2EA9124B7B63800C1FD34 /* Release */,
DEC2EA9224B7B63800C1FD34 /* Debug */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 37747F8B19147D6400558FAD /* Project object */;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?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>AvailableLibraries</key>
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-x86_64-maccatalyst</string>
<key>LibraryPath</key>
<string>OneSignal.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7_armv7s</string>
<key>LibraryPath</key>
<string>OneSignal.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
<string>armv7s</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-i386_x86_64-simulator</string>
<key>LibraryPath</key>
<string>OneSignal.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
<key>XCFrameworkFormatVersion</key>
<string>1.0</string>
</dict>
</plist>
Loading

0 comments on commit f7c0708

Please sign in to comment.