Skip to content

Commit

Permalink
Add update version lane
Browse files Browse the repository at this point in the history
  • Loading branch information
fassko committed Apr 18, 2020
1 parent 22afeaa commit 9b3ee34
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 3 deletions.
2 changes: 2 additions & 0 deletions MeteoLV.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.8;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.fassko.MeteoLV.MeteoLVTodayNotification;
Expand All @@ -759,6 +760,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.8;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.fassko.MeteoLV.MeteoLVTodayNotification;
PRODUCT_NAME = "Weather Latvia";
Expand Down
2 changes: 1 addition & 1 deletion MeteoLV/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<string>1.8</string>
<key>CFBundleVersion</key>
<string>1.7.200405.2256</string>
<key>Fabric</key>
Expand Down
2 changes: 1 addition & 1 deletion MeteoLVTodayNotification/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>1.8</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>NSAppTransportSecurity</key>
Expand Down
2 changes: 1 addition & 1 deletion MeteoLVUITests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>1.8</string>
<key>CFBundleVersion</key>
<string>1.7.200405.2256</string>
</dict>
Expand Down
16 changes: 16 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@ platform :ios do
)
end

lane :current_version do
version = get_version_number(
xcodeproj: "MeteoLV.xcodeproj",
target: "MeteoLV",
)
version
end

lane :update_version do |options|
puts current_version

increment_version_number(
version_number: options[:version]
)
end

desc "UI tests"
lane :test do
# Test
Expand Down
10 changes: 10 additions & 0 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ Certs
fastlane ios generate_icon
```

### ios current_version
```
fastlane ios current_version
```

### ios update_version
```
fastlane ios update_version
```

### ios test
```
fastlane ios test
Expand Down

0 comments on commit 9b3ee34

Please sign in to comment.