forked from Ivasoft/mattermost-mobile
Prepare for dot release 1.0.1
This commit is contained in:
@@ -91,8 +91,8 @@ android {
|
||||
applicationId "com.mattermost.react.native"
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 23
|
||||
versionCode 39
|
||||
versionName "1.0"
|
||||
versionCode 1
|
||||
versionName "1.0.1"
|
||||
multiDexEnabled true
|
||||
ndk {
|
||||
abiFilters "armeabi-v7a", "x86"
|
||||
|
||||
@@ -3,7 +3,7 @@ skip_docs
|
||||
|
||||
platform :ios do
|
||||
before_all do |lane|
|
||||
if lane == :beta or lane == :release
|
||||
if lane == :beta
|
||||
ensure_git_branch(
|
||||
branch: 'master'
|
||||
)
|
||||
@@ -12,7 +12,7 @@ platform :ios do
|
||||
end
|
||||
|
||||
after_all do |lane|
|
||||
if lane == :beta or lane == :release
|
||||
if lane == :beta
|
||||
reset_git_repo(
|
||||
force: true,
|
||||
skip_clean: true
|
||||
@@ -26,7 +26,7 @@ platform :ios do
|
||||
desc 'Build Release file'
|
||||
desc 'This will also make sure the profile is up to date'
|
||||
lane :dev do
|
||||
match(type: 'adhoc')
|
||||
match(type: 'adhoc', app_identifier: 'com.mattermost.rnbeta')
|
||||
|
||||
build_ios({
|
||||
release: false,
|
||||
@@ -39,7 +39,7 @@ platform :ios do
|
||||
desc 'Submit a new Beta Build to Apple TestFlight'
|
||||
desc 'This will also make sure the profile is up to date'
|
||||
lane :beta do
|
||||
match(type: 'appstore')
|
||||
match(type: 'appstore', app_identifier: 'com.mattermost.rnbeta')
|
||||
|
||||
build_ios({
|
||||
release: true,
|
||||
@@ -83,40 +83,52 @@ platform :ios do
|
||||
|
||||
desc 'Deploy a new version to the App Store'
|
||||
lane :release do
|
||||
match(type: 'appstore')
|
||||
ensure_git_branch(
|
||||
branch: 'master'
|
||||
)
|
||||
|
||||
match(type: 'appstore', app_identifier: 'com.mattermost.rn')
|
||||
|
||||
# snapshot
|
||||
|
||||
update_app_identifier(
|
||||
xcodeproj: './ios/Mattermost.xcodeproj',
|
||||
plist_path: 'Mattermost/Info.plist',
|
||||
app_identifier: 'com.mattermost.rn'
|
||||
)
|
||||
update_info_plist(
|
||||
xcodeproj: './ios/Mattermost.xcodeproj',
|
||||
plist_path: 'Mattermost/Info.plist',
|
||||
display_name: 'Mattermost'
|
||||
)
|
||||
|
||||
sh 'cp -R ../assets/release/icons/ios/* ../ios/Mattermost/Images.xcassets/AppIcon.appiconset/'
|
||||
|
||||
build_ios({
|
||||
release: true,
|
||||
increment_build: true,
|
||||
ensure_git_status_clean: true,
|
||||
increment_build: false,
|
||||
ensure_git_status_clean: false,
|
||||
method: 'app-store'
|
||||
})
|
||||
|
||||
deliver(force: true)
|
||||
# deliver(
|
||||
# force: true,
|
||||
# skip_screenshots: true,
|
||||
# skip_metadata: true,
|
||||
# submit_for_review: false, #lets try this after the first release
|
||||
# automatic_release: false #lets try this after the first release
|
||||
# )
|
||||
|
||||
commit = last_git_commit
|
||||
|
||||
push_to_git_remote(
|
||||
remote: 'origin',
|
||||
local_branch: 'ios-release',
|
||||
force: false,
|
||||
tags: false
|
||||
)
|
||||
|
||||
unless ENV['GITHUB_TOKEN'].nil?
|
||||
create_pull_request(
|
||||
api_token: ENV['GITHUB_TOKEN'],
|
||||
repo: 'mattermost/mattermost-mobile',
|
||||
head: 'mattermost:ios-release',
|
||||
base: 'master',
|
||||
title: "IOS #{commit[:message]}"
|
||||
)
|
||||
end
|
||||
### We are going to publish the app to the testflight first and not deliver it directly to the app store
|
||||
pilot(skip_waiting_for_build_processing: true)
|
||||
|
||||
# frameit
|
||||
|
||||
reset_git_repo(
|
||||
force: true,
|
||||
skip_clean: true
|
||||
)
|
||||
|
||||
if ENV['MATTERMOST_WEBHOOK_URL']
|
||||
appstore_url = ENV['APPSTORE_URL']
|
||||
send_message_for_ios(
|
||||
@@ -198,7 +210,7 @@ end
|
||||
|
||||
platform :android do
|
||||
before_all do |lane|
|
||||
if lane == :alpha or lane == :release
|
||||
if lane == :alpha
|
||||
ensure_git_branch(
|
||||
branch: 'master'
|
||||
)
|
||||
@@ -207,7 +219,7 @@ platform :android do
|
||||
end
|
||||
|
||||
after_all do |lane|
|
||||
if lane == :alpha or lane == :release
|
||||
if lane == :alpha
|
||||
reset_git_repo(
|
||||
force: true,
|
||||
skip_clean: true
|
||||
@@ -268,36 +280,84 @@ platform :android do
|
||||
|
||||
desc 'Deploy a new version to Google Play'
|
||||
lane :release do
|
||||
ensure_git_branch(
|
||||
branch: 'master'
|
||||
)
|
||||
android_change_package_identifier(newIdentifier: 'com.mattermost.rn', manifest: './android/app/src/main/AndroidManifest.xml')
|
||||
android_change_string_app_name(newName: 'Mattermost', stringsFile: './android/app/src/main/res/values/strings.xml')
|
||||
android_update_application_id(app_folder_name: 'android/app', application_id: 'com.mattermost.rn')
|
||||
|
||||
sh 'mv ../android/app/src/main/java/com/mattermost/rnbeta/ ../android/app/src/main/java/com/mattermost/rn/'
|
||||
sh 'cp -R ../assets/release/icons/android/* ../android/app/src/main/res/'
|
||||
|
||||
find_replace_string(
|
||||
path_to_file: './android/app/src/main/java/com/mattermost/rn/MainApplication.java',
|
||||
old_string: 'return BuildConfig.DEBUG;',
|
||||
new_string: 'return false;'
|
||||
)
|
||||
|
||||
|
||||
find_replace_string(
|
||||
path_to_file: './android/app/src/main/java/com/mattermost/rn/MainApplication.java',
|
||||
old_string: 'package com.mattermost.rnbeta;',
|
||||
new_string: 'package com.mattermost.rn;'
|
||||
)
|
||||
|
||||
find_replace_string(
|
||||
path_to_file: './android/app/src/main/java/com/mattermost/rn/CustomPushNotification.java',
|
||||
old_string: 'package com.mattermost.rnbeta;',
|
||||
new_string: 'package com.mattermost.rn;'
|
||||
)
|
||||
|
||||
find_replace_string(
|
||||
path_to_file: './android/app/src/main/java/com/mattermost/rn/MainActivity.java',
|
||||
old_string: 'package com.mattermost.rnbeta;',
|
||||
new_string: 'package com.mattermost.rn;'
|
||||
)
|
||||
|
||||
find_replace_string(
|
||||
path_to_file: './android/app/src/main/java/com/mattermost/rn/NotificationsLifecycleFacade.java',
|
||||
old_string: 'package com.mattermost.rnbeta;',
|
||||
new_string: 'package com.mattermost.rn;'
|
||||
)
|
||||
|
||||
find_replace_string(
|
||||
path_to_file: './android/app/BUCK',
|
||||
old_string: 'package com.mattermost.rnbeta;',
|
||||
new_string: 'package com.mattermost.rn;'
|
||||
)
|
||||
|
||||
find_replace_string(
|
||||
path_to_file: './fastlane/metadata/android/en-US/title.txt',
|
||||
old_string: 'Mattermost Beta',
|
||||
new_string: 'Mattermost;'
|
||||
)
|
||||
|
||||
build_android({
|
||||
release: true,
|
||||
increment_build: true,
|
||||
ensure_git_status_clean: true
|
||||
increment_build: false,
|
||||
ensure_git_status_clean: false
|
||||
})
|
||||
|
||||
# supply(
|
||||
# track: "production",
|
||||
# apk: "#{lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]}",
|
||||
# )
|
||||
|
||||
# We are going to upload the build to the beta lane and not directly to production so it can be promoted later
|
||||
supply(
|
||||
track: "production",
|
||||
track: 'beta',
|
||||
apk: "#{lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]}",
|
||||
)
|
||||
|
||||
commit = last_git_commit
|
||||
|
||||
push_to_git_remote(
|
||||
remote: 'origin',
|
||||
local_branch: 'android-release',
|
||||
force: false,
|
||||
tags: false
|
||||
sh 'mv ../android/app/src/main/java/com/mattermost/rn/ ../android/app/src/main/java/com/mattermost/rnbeta/'
|
||||
|
||||
reset_git_repo(
|
||||
force: true,
|
||||
skip_clean: true
|
||||
)
|
||||
|
||||
unless ENV['GITHUB_TOKEN'].nil?
|
||||
create_pull_request(
|
||||
api_token: ENV['GITHUB_TOKEN'],
|
||||
repo: 'mattermost/mattermost-mobile',
|
||||
head: 'mattermost:android-release',
|
||||
base: 'master',
|
||||
title: "Android #{commit[:message]}"
|
||||
)
|
||||
end
|
||||
|
||||
if ENV['MATTERMOST_WEBHOOK_URL']
|
||||
google_play_url = ENV['GOOGLE_PLAY_URL']
|
||||
send_message_for_android(
|
||||
|
||||
@@ -1320,7 +1320,7 @@
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CODE_SIGN_ENTITLEMENTS = Mattermost/Mattermost.entitlements;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
CURRENT_PROJECT_VERSION = 39;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
DEAD_CODE_STRIPPING = NO;
|
||||
DEVELOPMENT_TEAM = UQ8HT4Q2XM;
|
||||
HEADER_SEARCH_PATHS = (
|
||||
@@ -1353,7 +1353,7 @@
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CODE_SIGN_ENTITLEMENTS = Mattermost/Mattermost.entitlements;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
CURRENT_PROJECT_VERSION = 39;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
DEAD_CODE_STRIPPING = NO;
|
||||
DEVELOPMENT_TEAM = UQ8HT4Q2XM;
|
||||
HEADER_SEARCH_PATHS = (
|
||||
|
||||
@@ -1,94 +1,94 @@
|
||||
<?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>en</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>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>39</string>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>NSAllowsArbitraryLoads</key>
|
||||
<true/>
|
||||
<key>NSAppTransportSecurity</key>
|
||||
<dict>
|
||||
<key>NSAllowsArbitraryLoads</key>
|
||||
<true/>
|
||||
<key>NSExceptionDomains</key>
|
||||
<dict>
|
||||
<key>localhost</key>
|
||||
<dict>
|
||||
<key>NSExceptionAllowsInsecureHTTPLoads</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>NSCameraUsageDescription</key>
|
||||
<string>Take a Photo or Video and upload it to your mattermost instance</string>
|
||||
<key>NSLocationWhenInUseUsageDescription</key>
|
||||
<string/>
|
||||
<key>NSPhotoLibraryUsageDescription</key>
|
||||
<string>Upload Photos and Videos to your Mattermost instance</string>
|
||||
<key>UIAppFonts</key>
|
||||
<array>
|
||||
<string>Entypo.ttf</string>
|
||||
<string>EvilIcons.ttf</string>
|
||||
<string>FontAwesome.ttf</string>
|
||||
<string>Foundation.ttf</string>
|
||||
<string>Ionicons.ttf</string>
|
||||
<string>MaterialIcons.ttf</string>
|
||||
<string>Octicons.ttf</string>
|
||||
<string>Zocial.ttf</string>
|
||||
<string>Entypo.ttf</string>
|
||||
<string>EvilIcons.ttf</string>
|
||||
<string>FontAwesome.ttf</string>
|
||||
<string>Foundation.ttf</string>
|
||||
<string>Ionicons.ttf</string>
|
||||
<string>MaterialCommunityIcons.ttf</string>
|
||||
<string>MaterialIcons.ttf</string>
|
||||
<string>Octicons.ttf</string>
|
||||
<string>SimpleLineIcons.ttf</string>
|
||||
<string>Zocial.ttf</string>
|
||||
<string>OpenSans-Bold.ttf</string>
|
||||
<string>OpenSans-BoldItalic.ttf</string>
|
||||
<string>OpenSans-ExtraBold.ttf</string>
|
||||
<string>OpenSans-ExtraBoldItalic.ttf</string>
|
||||
<string>OpenSans-Italic.ttf</string>
|
||||
<string>OpenSans-Light.ttf</string>
|
||||
<string>OpenSans-LightItalic.ttf</string>
|
||||
<string>OpenSans-Regular.ttf</string>
|
||||
<string>OpenSans-Semibold.ttf</string>
|
||||
<string>OpenSans-SemiboldItalic.ttf</string>
|
||||
</array>
|
||||
<key>UILaunchStoryboardName</key>
|
||||
<string>LaunchScreen</string>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
<array>
|
||||
<string>armv7</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UIViewControllerBasedStatusBarAppearance</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</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>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0.1</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>NSAllowsArbitraryLoads</key>
|
||||
<true/>
|
||||
<key>NSAppTransportSecurity</key>
|
||||
<dict>
|
||||
<key>NSAllowsArbitraryLoads</key>
|
||||
<true/>
|
||||
<key>NSExceptionDomains</key>
|
||||
<dict>
|
||||
<key>localhost</key>
|
||||
<dict>
|
||||
<key>NSExceptionAllowsInsecureHTTPLoads</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>NSCameraUsageDescription</key>
|
||||
<string>Take a Photo or Video and upload it to your mattermost instance</string>
|
||||
<key>NSLocationWhenInUseUsageDescription</key>
|
||||
<string></string>
|
||||
<key>NSPhotoLibraryUsageDescription</key>
|
||||
<string>Upload Photos and Videos to your Mattermost instance</string>
|
||||
<key>UIAppFonts</key>
|
||||
<array>
|
||||
<string>Entypo.ttf</string>
|
||||
<string>EvilIcons.ttf</string>
|
||||
<string>FontAwesome.ttf</string>
|
||||
<string>Foundation.ttf</string>
|
||||
<string>Ionicons.ttf</string>
|
||||
<string>MaterialIcons.ttf</string>
|
||||
<string>Octicons.ttf</string>
|
||||
<string>Zocial.ttf</string>
|
||||
<string>Entypo.ttf</string>
|
||||
<string>EvilIcons.ttf</string>
|
||||
<string>FontAwesome.ttf</string>
|
||||
<string>Foundation.ttf</string>
|
||||
<string>Ionicons.ttf</string>
|
||||
<string>MaterialCommunityIcons.ttf</string>
|
||||
<string>MaterialIcons.ttf</string>
|
||||
<string>Octicons.ttf</string>
|
||||
<string>SimpleLineIcons.ttf</string>
|
||||
<string>Zocial.ttf</string>
|
||||
<string>OpenSans-Bold.ttf</string>
|
||||
<string>OpenSans-BoldItalic.ttf</string>
|
||||
<string>OpenSans-ExtraBold.ttf</string>
|
||||
<string>OpenSans-ExtraBoldItalic.ttf</string>
|
||||
<string>OpenSans-Italic.ttf</string>
|
||||
<string>OpenSans-Light.ttf</string>
|
||||
<string>OpenSans-LightItalic.ttf</string>
|
||||
<string>OpenSans-Regular.ttf</string>
|
||||
<string>OpenSans-Semibold.ttf</string>
|
||||
<string>OpenSans-SemiboldItalic.ttf</string>
|
||||
</array>
|
||||
<key>UILaunchStoryboardName</key>
|
||||
<string>LaunchScreen</string>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
<array>
|
||||
<string>armv7</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UIViewControllerBasedStatusBarAppearance</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
@@ -15,10 +15,10 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>BNDL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<string>1.0.1</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>39</string>
|
||||
<string>1</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
Reference in New Issue
Block a user