Skip to content

Commit

Permalink
更新cocoapods配置和package打包脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
zhxf2012 committed May 6, 2023
1 parent 2316ef9 commit 7cbc531
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 22 deletions.
15 changes: 8 additions & 7 deletions BPBleOTA.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'BPBleOTA'
s.version = '0.5.0'
s.version = '0.6.0'
s.summary = 'a swift library aggregating NordicDFU and SMPDFU implement'

# This description is used to generate tags and improve search results.
Expand All @@ -18,21 +18,22 @@ Pod::Spec.new do |s|
# * Finally, don't worry about the indent, CocoaPods strips it!

s.description = <<-DESC
BPBleOTA is a swift library support NordicDFU and SMPDFU for compatible devices. It depended on iOSDFULibrary and iOSMcuManagerLibrary,so can support NordicDFU and SMPDFU by BLE. All things BPBleOTA done are aggregating them and provide a unified interface,So it can support pure Objective-C projects which are not supported directly by NordicDFU and SMPDFU
DESC
BPBleOTA is a swift library support NordicDFU and SMPDFU for compatible devices.
It depended on iOSDFULibrary and iOSMcuManagerLibrary,so can support NordicDFU and SMPDFU by BLE.
All things BPBleOTA done are aggregating them and provide a unified interface,So it can support pure Objective-C projects which are not supported directly by NordicDFU and SMPDFU.
DESC

s.homepage = 'https://github.com/zhxf2012/BPBleOTA'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'zhouxingfa' => '[email protected]' }
#s.source = { :git => 'https://github.com/zhxf2012/BPBleOTA.git', :tag => s.version.to_s }
s.source = { :git => 'https://github.com/zhxf2012/BPBleOTA.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

s.ios.deployment_target = '9.0'
s.ios.deployment_target = '11.0'
s.swift_versions = ["5.0", "5.1", "5.2", "5.3", "5.4", "5.5", "5.6", "5.7"]
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.user_target_xcconfig = {'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
#s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
#s.user_target_xcconfig = {'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }


s.source_files = 'Sources/BPBleOTA/Classes/**/*'
Expand Down
40 changes: 26 additions & 14 deletions BPBleOTA.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 52;
objectVersion = 51;
objects = {

/* Begin PBXAggregateTarget section */
Expand Down Expand Up @@ -207,7 +207,7 @@
6B9D5C4091D07A2539C90936 /* Data+Serialization.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Data+Serialization.swift"; sourceTree = "<group>"; };
6DAB51E2F314D29559550D58 /* DFUExecutor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DFUExecutor.swift; sourceTree = "<group>"; };
700A46DED312470CCEE2F77E /* DFUStarterPeripheral.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DFUStarterPeripheral.swift; sourceTree = "<group>"; };
754BFB05C816FF2F03E06C5E /* .gitkeep */ = {isa = PBXFileReference; lastKnownFileType = text; path = .gitkeep; sourceTree = "<group>"; };
754BFB05C816FF2F03E06C5E /* .gitkeep */ = {isa = PBXFileReference; path = .gitkeep; sourceTree = "<group>"; };
7A08905B61BEEDA114253276 /* Data+McuManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Data+McuManager.swift"; sourceTree = "<group>"; };
7EB4F2B5BC36522619D15F20 /* FixedWidthInteger+Bytes.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "FixedWidthInteger+Bytes.swift"; sourceTree = "<group>"; };
7FC530F7FA2241FB3EB33881 /* BPBleOTATests.xctest */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = wrapper.cfbundle; path = BPBleOTATests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -237,7 +237,7 @@
AED40315D80E7B9D51066AAF /* DefaultManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DefaultManager.swift; sourceTree = "<group>"; };
AEDD0D84472679B0CDC30C8D /* CBOR.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CBOR.swift; sourceTree = "<group>"; };
B31FAE0833204EF5D0516343 /* UnkeyedDecodingContainer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UnkeyedDecodingContainer.swift; sourceTree = "<group>"; };
B43657E3C81C297038B3A7AF /* .gitkeep */ = {isa = PBXFileReference; lastKnownFileType = text; path = .gitkeep; sourceTree = "<group>"; };
B43657E3C81C297038B3A7AF /* .gitkeep */ = {isa = PBXFileReference; path = .gitkeep; sourceTree = "<group>"; };
B4B0EBC89779FF074B2597FC /* Archive+Writing.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Archive+Writing.swift"; sourceTree = "<group>"; };
B5C29A2D281BFA41B859563B /* SecureDFUPacket.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecureDFUPacket.swift; sourceTree = "<group>"; };
B646FDCE5EE6A478115BDB41 /* NordicDFU.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = NordicDFU.framework; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -714,7 +714,7 @@
9439E788E4C243EDECD6E0EB /* SwiftCBOR.framework */,
1B9FBD31B4AA896830C87226 /* ZIPFoundation.framework */,
);
path = Products;
name = Products;
sourceTree = "<group>";
};
E4509736AF7FE0EAB139CE30 /* DFU */ = {
Expand Down Expand Up @@ -898,6 +898,8 @@
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1200;
TargetAttributes = {
};
};
buildConfigurationList = D4B72E61CE151C9C4D8BFE0D /* Build configuration list for PBXProject "BPBleOTA" */;
compatibilityVersion = "Xcode 11.0";
Expand Down Expand Up @@ -1110,7 +1112,7 @@
buildSettings = {
CODE_SIGNING_ALLOWED = NO;
CODE_SIGN_IDENTITY = "";
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 0.4.4;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand All @@ -1122,6 +1124,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.4.4;
PRODUCT_BUNDLE_IDENTIFIER = com.bbb.zhxf.SwiftCBOR;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -1153,7 +1156,7 @@
buildSettings = {
CODE_SIGNING_ALLOWED = NO;
CODE_SIGN_IDENTITY = "";
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 0.9.11;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand All @@ -1164,6 +1167,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.9.11;
PRODUCT_BUNDLE_IDENTIFIER = com.bbb.zhxf.ZIPFoundation;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
Expand All @@ -1177,7 +1181,7 @@
buildSettings = {
CODE_SIGNING_ALLOWED = NO;
CODE_SIGN_IDENTITY = "";
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 4.13.0;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand All @@ -1188,6 +1192,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 4.13.0;
PRODUCT_BUNDLE_IDENTIFIER = com.bbb.zhxf.NordicDFU;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
Expand All @@ -1201,7 +1206,7 @@
buildSettings = {
CODE_SIGNING_ALLOWED = NO;
CODE_SIGN_IDENTITY = "";
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 1.3.1;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand All @@ -1213,6 +1218,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.3.1;
PRODUCT_BUNDLE_IDENTIFIER = com.bbb.zhxf.iOSMcuManagerLibrary;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -1290,7 +1296,7 @@
buildSettings = {
CODE_SIGNING_ALLOWED = NO;
CODE_SIGN_IDENTITY = "";
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 0.9.11;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand All @@ -1301,6 +1307,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.9.11;
PRODUCT_BUNDLE_IDENTIFIER = com.bbb.zhxf.ZIPFoundation;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
Expand All @@ -1322,7 +1329,7 @@
buildSettings = {
CODE_SIGNING_ALLOWED = NO;
CODE_SIGN_IDENTITY = "";
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 1.3.1;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand All @@ -1334,6 +1341,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.3.1;
PRODUCT_BUNDLE_IDENTIFIER = com.bbb.zhxf.iOSMcuManagerLibrary;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
Expand All @@ -1347,7 +1355,7 @@
buildSettings = {
CODE_SIGNING_ALLOWED = NO;
CODE_SIGN_IDENTITY = "";
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 0.6.20230506;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand All @@ -1359,6 +1367,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.6.0;
PRODUCT_BUNDLE_IDENTIFIER = com.bbb.zhxf.BPBleOTA;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
Expand All @@ -1373,7 +1382,7 @@
buildSettings = {
CODE_SIGNING_ALLOWED = NO;
CODE_SIGN_IDENTITY = "";
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 4.13.0;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand All @@ -1384,6 +1393,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 4.13.0;
PRODUCT_BUNDLE_IDENTIFIER = com.bbb.zhxf.NordicDFU;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -1415,7 +1425,7 @@
buildSettings = {
CODE_SIGNING_ALLOWED = NO;
CODE_SIGN_IDENTITY = "";
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 0.4.4;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand All @@ -1427,6 +1437,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.4.4;
PRODUCT_BUNDLE_IDENTIFIER = com.bbb.zhxf.SwiftCBOR;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -1503,7 +1514,7 @@
buildSettings = {
CODE_SIGNING_ALLOWED = NO;
CODE_SIGN_IDENTITY = "";
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 0.6.20230506;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand All @@ -1515,6 +1526,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.6.0;
PRODUCT_BUNDLE_IDENTIFIER = com.bbb.zhxf.BPBleOTA;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
Expand Down
11 changes: 10 additions & 1 deletion project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ options:
deploymentTarget:
iOS: "11.0"
bundleIdPrefix: com.bbb.zhxf
version: 0.5.0
version: 0.6.0

packages:
iOSMcuManagerLibrary:
Expand All @@ -30,25 +30,31 @@ targetTemplates:
settings:
GENERATE_INFOPLIST_FILE: YES
CODE_SIGNING_ALLOWED: NO
MARKETING_VERSION: ${PACKAGE_VERSION}
CURRENT_PROJECT_VERSION: ${PACKAGE_VERSION}
targets:
iOSMcuManagerLibrary:
templates:
- Framework
templateAttributes:
frameworSourceFolder: IOS-nRF-Connect-Device-Manager/Source
PACKAGE_VERSION: 1.3.1
dependencies:
- package: SwiftCBOR

SwiftCBOR:
templates:
- Framework
templateAttributes:
frameworSourceFolder: SwiftCBOR/Sources
PACKAGE_VERSION: 0.4.4

NordicDFU:
templates:
- Framework
templateAttributes:
frameworSourceFolder: IOS-DFU-Library/iOSDFULibrary
PACKAGE_VERSION: 4.13.0
dependencies:
- package: ZIPFoundation

Expand All @@ -57,6 +63,7 @@ targets:
- Framework
templateAttributes:
frameworSourceFolder: ZIPFoundation/Sources
PACKAGE_VERSION: 0.9.11



Expand All @@ -73,6 +80,8 @@ targets:
SWIFT_ACTIVE_COMPILATION_CONDITIONS: "$(inherited) SWIFT_PACKAGE"
GENERATE_INFOPLIST_FILE: YES
CODE_SIGNING_ALLOWED: NO
MARKETING_VERSION: 0.6.0
CURRENT_PROJECT_VERSION: 0.6.20230506
BPBleOTATests:
type: bundle.unit-test
platform: iOS
Expand Down

0 comments on commit 7cbc531

Please sign in to comment.