Whitelabel for Icons and Splash Screen (#1634)
* Fix iOS icons assets and include splash screen whitelabel * Whitelabel for app icon and splash screen on Android * iOS Splash layout
|
Before Width: | Height: | Size: 455 KiB |
|
Before Width: | Height: | Size: 7 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 457 KiB |
|
Before Width: | Height: | Size: 462 KiB |
|
Before Width: | Height: | Size: 456 KiB |
|
Before Width: | Height: | Size: 460 KiB |
|
Before Width: | Height: | Size: 456 KiB |
|
Before Width: | Height: | Size: 460 KiB |
BIN
assets/base/release/splash_screen/android/drawable-hdpi/splash.png
Executable file
|
After Width: | Height: | Size: 9.8 KiB |
BIN
assets/base/release/splash_screen/android/drawable-mdpi/splash.png
Executable file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
assets/base/release/splash_screen/android/drawable-xhdpi/splash.png
Executable file
|
After Width: | Height: | Size: 18 KiB |
BIN
assets/base/release/splash_screen/android/drawable-xxhdpi/splash.png
Executable file
|
After Width: | Height: | Size: 25 KiB |
BIN
assets/base/release/splash_screen/android/drawable-xxxhdpi/splash.png
Executable file
|
After Width: | Height: | Size: 33 KiB |
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.percent.PercentRelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#ffffff"
|
||||
android:gravity="center_horizontal"
|
||||
tools:context=".SplashScreenActivity">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imgLogo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:adjustViewBounds="true"
|
||||
android:src="@drawable/splash" />
|
||||
|
||||
</android.support.percent.PercentRelativeLayout>
|
||||
36
assets/base/release/splash_screen/ios/LaunchScreen.xib
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="16D32" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES">
|
||||
<device id="retina4_7" orientation="portrait">
|
||||
<adaptation id="fullscreen"/>
|
||||
</device>
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<view contentMode="scaleToFill" id="iN0-l3-epB">
|
||||
<rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="splash.png" translatesAutoresizingMaskIntoConstraints="NO" id="ZkI-RL-69Z">
|
||||
<rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
|
||||
</imageView>
|
||||
</subviews>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstItem="ZkI-RL-69Z" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="7dE-9J-TdO"/>
|
||||
<constraint firstAttribute="trailing" secondItem="ZkI-RL-69Z" secondAttribute="trailing" id="KFm-od-sbN"/>
|
||||
<constraint firstAttribute="bottom" secondItem="ZkI-RL-69Z" secondAttribute="bottom" id="afY-hI-KgI"/>
|
||||
<constraint firstItem="ZkI-RL-69Z" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="eMX-qT-GeJ"/>
|
||||
</constraints>
|
||||
<nil key="simulatedStatusBarMetrics"/>
|
||||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
||||
<point key="canvasLocation" x="548" y="455"/>
|
||||
</view>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="splash.png" width="720" height="1280"/>
|
||||
</resources>
|
||||
</document>
|
||||
BIN
assets/base/release/splash_screen/ios/splash.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
|
|
@ -128,6 +128,7 @@ platform :ios do
|
|||
def replace_ios_assets()
|
||||
if ENV['IOS_REPLACE_ASSETS'] == 'true'
|
||||
sh 'cp -R ../dist/assets/release/icons/ios/* ../ios/Mattermost/Images.xcassets/AppIcon.appiconset/'
|
||||
sh 'cp -R ../dist/assets/release/splash_screen/ios/* ../ios/SplashScreenResource/*'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -302,6 +303,7 @@ platform :android do
|
|||
|
||||
if ENV['ANDROID_REPLACE_ASSETS'] == 'true'
|
||||
sh 'cp -R ../dist/assets/release/icons/android/* ../android/app/src/main/res/'
|
||||
sh 'cp -R ../dist/assets/release/splash_screen/android/* ../android/app/src/main/res/'
|
||||
end
|
||||
|
||||
if packageId != 'com.mattermost.rnbeta'
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 583 KiB |
|
Before Width: | Height: | Size: 585 KiB |
|
Before Width: | Height: | Size: 588 KiB |
|
|
@ -57,7 +57,7 @@
|
|||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "20@2x-1.png",
|
||||
"filename" : "20@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
|
|
@ -69,7 +69,7 @@
|
|||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "29@2x-1.png",
|
||||
"filename" : "29@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
|
|
@ -81,7 +81,7 @@
|
|||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "40@2x-1.png",
|
||||
"filename" : "40@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
|
|
@ -113,4 +113,4 @@
|
|||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 585 KiB |
|
Before Width: | Height: | Size: 586 KiB |
|
Before Width: | Height: | Size: 597 KiB |
|
Before Width: | Height: | Size: 584 KiB |
|
Before Width: | Height: | Size: 591 KiB |
|
Before Width: | Height: | Size: 585 KiB |
|
Before Width: | Height: | Size: 593 KiB |