-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add set version script #407
Changes from all commits
53d51e4
7b5c2cd
4d878fd
1873665
ee7c7c0
d53e044
e5b10d3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -953,7 +953,6 @@ | |
"@executable_path/Frameworks", | ||
"@loader_path/Frameworks", | ||
); | ||
MARKETING_VERSION = 3.9.6; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is the package settings, which overwrites the project settings, we should just have the version set for project settings which will be resolved everywhere to the single correct marketing version |
||
PRODUCT_BUNDLE_IDENTIFIER = io.radar.sdk; | ||
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; | ||
PROVISIONING_PROFILE_SPECIFIER = ""; | ||
|
@@ -983,7 +982,6 @@ | |
"@executable_path/Frameworks", | ||
"@loader_path/Frameworks", | ||
); | ||
MARKETING_VERSION = 3.9.6; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above |
||
PRODUCT_BUNDLE_IDENTIFIER = io.radar.sdk; | ||
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; | ||
PROVISIONING_PROFILE_SPECIFIER = ""; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
Pod::Spec.new do |s| | ||
s.name = 'RadarSDKMotion' | ||
s.version = '3.19.1' | ||
s.summary = 'Motion detection plugin for RadarSDK, the leading geofencing and location tracking platform' | ||
s.homepage = 'https://radar.com' | ||
s.author = { 'Radar Labs, Inc.' => 'support@radar.com' } | ||
s.platform = :ios | ||
s.source = { :git => 'https://github.com/radarlabs/radar-sdk-ios.git', :tag => s.version.to_s } | ||
s.source_files = ["RadarSDKMotion/RadarSDKMotion/*.{h,m}", "RadarSDKMotion/RadarSDKMotion/Include/*.h"] | ||
s.module_name = 'RadarSDKMotion' | ||
s.ios.deployment_target = '12.0' | ||
s.frameworks = 'CoreMotion' | ||
s.requires_arc = true | ||
s.license = { :type => 'Apache-2.0' } | ||
end | ||
|
||
s.name = 'RadarSDKMotion' | ||
s.version = '3.19.1' | ||
s.summary = 'Motion detection plugin for RadarSDK, the leading geofencing and location tracking platform' | ||
s.homepage = 'https://radar.com' | ||
s.author = { 'Radar Labs, Inc.' => 'support@radar.com' } | ||
s.platform = :ios | ||
s.source = { :git => 'https://github.com/radarlabs/radar-sdk-ios.git', :tag => s.version.to_s } | ||
s.source_files = ["RadarSDKMotion/RadarSDKMotion/*.{h,m}", "RadarSDKMotion/RadarSDKMotion/Include/*.h"] | ||
s.module_name = 'RadarSDKMotion' | ||
s.ios.deployment_target = '12.0' | ||
s.frameworks = 'CoreMotion' | ||
s.requires_arc = true | ||
s.license = { :type => 'Apache-2.0' } | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -289,6 +289,7 @@ | |
GCC_WARN_UNUSED_VARIABLE = YES; | ||
IPHONEOS_DEPLOYMENT_TARGET = 12.0; | ||
LOCALIZATION_PREFERS_STRING_CATALOGS = YES; | ||
MARKETING_VERSION = 3.18.4; | ||
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; | ||
MTL_FAST_MATH = YES; | ||
ONLY_ACTIVE_ARCH = YES; | ||
|
@@ -347,6 +348,7 @@ | |
GCC_WARN_UNUSED_VARIABLE = YES; | ||
IPHONEOS_DEPLOYMENT_TARGET = 12.0; | ||
LOCALIZATION_PREFERS_STRING_CATALOGS = YES; | ||
MARKETING_VERSION = 3.18.4; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. adding the marketing version to motion sdks to be the same as main sdk. (project setting) |
||
MTL_ENABLE_DEBUG_INFO = NO; | ||
MTL_FAST_MATH = YES; | ||
SDKROOT = iphoneos; | ||
|
@@ -376,7 +378,6 @@ | |
"@executable_path/Frameworks", | ||
"@loader_path/Frameworks", | ||
); | ||
MARKETING_VERSION = 1.0; | ||
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; | ||
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; | ||
PRODUCT_BUNDLE_IDENTIFIER = RadarLabs.RadarSDKMotion; | ||
|
@@ -407,7 +408,6 @@ | |
"@executable_path/Frameworks", | ||
"@loader_path/Frameworks", | ||
); | ||
MARKETING_VERSION = 1.0; | ||
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; | ||
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; | ||
PRODUCT_BUNDLE_IDENTIFIER = RadarLabs.RadarSDKMotion; | ||
|
@@ -425,7 +425,6 @@ | |
CURRENT_PROJECT_VERSION = 1; | ||
DEVELOPMENT_TEAM = 96GHH65B9D; | ||
GENERATE_INFOPLIST_FILE = YES; | ||
MARKETING_VERSION = 1.0; | ||
PRODUCT_BUNDLE_IDENTIFIER = RadarLabs.RadarMotionTests; | ||
PRODUCT_NAME = "$(TARGET_NAME)"; | ||
SWIFT_EMIT_LOC_STRINGS = NO; | ||
|
@@ -440,7 +439,6 @@ | |
CURRENT_PROJECT_VERSION = 1; | ||
DEVELOPMENT_TEAM = 96GHH65B9D; | ||
GENERATE_INFOPLIST_FILE = YES; | ||
MARKETING_VERSION = 1.0; | ||
PRODUCT_BUNDLE_IDENTIFIER = RadarLabs.RadarMotionTests; | ||
PRODUCT_NAME = "$(TARGET_NAME)"; | ||
SWIFT_EMIT_LOC_STRINGS = NO; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
|
||
if [ $# -lt 1 ]; then | ||
echo "Usage: $0 <version_string>" | ||
exit 1 | ||
fi | ||
|
||
# sed has slightly different syntax on linux vs mac | ||
if [ $(uname -s) = "Darwin" ]; then | ||
alias sed_inplace="sed -E -i ''" | ||
else | ||
alias sed_inplace="sed -E -i" | ||
fi | ||
|
||
version_full=$1 | ||
version="${version_full%%-*}" | ||
|
||
sed_inplace "s/s.version( +)= '(.+)'/s.version\1= '$version_full'/" RadarSDK.podspec | ||
sed_inplace "s/s.version( +)= '(.+)'/s.version\1= '$version_full'/" RadarSDKMotion.podspec | ||
|
||
sed_inplace "s/MARKETING_VERSION = .+;/MARKETING_VERSION = $version;/" RadarSDK.xcodeproj/project.pbxproj | ||
sed_inplace "s/MARKETING_VERSION = .+;/MARKETING_VERSION = $version;/" RadarSDKMotion/RadarSDKMotion.xcodeproj/project.pbxproj | ||
|
||
sed_inplace "s/return @\"[0-9]+\.[0-9]+\.[0-9]+\";/return @\"$version_full\";/" RadarSDK/RadarUtils.m |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we definitely want to lint both before publishing any of the two.