[IMPROVEMENT] Branding update (#2580)
* iOS native icons * Android native icons * Foss native icons * Experimental icon iOS * Experimental * Notification icon * Splash screen * Splash screen iOS * Blue notification text * Fix iOS Launch Screen Icon * Experimental and foss Co-authored-by: Diego Mello <diegolmello@gmail.com>
|
@ -195,6 +195,7 @@ android {
|
||||||
flavorDimensions "type"
|
flavorDimensions "type"
|
||||||
productFlavors {
|
productFlavors {
|
||||||
foss {
|
foss {
|
||||||
|
applicationId "chat.rocket.android"
|
||||||
dimension = "type"
|
dimension = "type"
|
||||||
buildConfigField "boolean", "FDROID_BUILD", "true"
|
buildConfigField "boolean", "FDROID_BUILD", "true"
|
||||||
}
|
}
|
||||||
|
|
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 7.5 KiB |
|
@ -3,7 +3,10 @@
|
||||||
android:height="108dp"
|
android:height="108dp"
|
||||||
android:viewportWidth="512"
|
android:viewportWidth="512"
|
||||||
android:viewportHeight="512">
|
android:viewportHeight="512">
|
||||||
<path
|
<group>
|
||||||
android:pathData="M0,0h512v512h-512z"
|
<clip-path android:pathData="M0,0h512v512h-512z M 0,0"/>
|
||||||
android:fillColor="#ffffff"/>
|
<path
|
||||||
|
android:pathData="M0,0h512v512h-512z"
|
||||||
|
android:fillColor="#F5455C"/>
|
||||||
|
</group>
|
||||||
</vector>
|
</vector>
|
||||||
|
|
|
@ -1,19 +1,24 @@
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:width="108dp"
|
android:width="108dp"
|
||||||
android:height="108dp"
|
android:height="108dp"
|
||||||
android:viewportWidth="512"
|
android:viewportWidth="731.4286"
|
||||||
android:viewportHeight="512">
|
android:viewportHeight="731.4286">
|
||||||
<group>
|
<group android:translateX="109.71429"
|
||||||
<clip-path android:pathData="M145,160h218v191.345h-218z M 0,0"/>
|
android:translateY="109.71429">
|
||||||
<path
|
<group>
|
||||||
android:pathData="M336.076,234.105L336.079,234.11C336.079,234.109 336.078,234.108 336.078,234.108C336.077,234.107 336.077,234.106 336.076,234.105ZM210.509,167.831C217.233,171.56 223.589,176.278 229.017,181.523C237.766,179.94 246.788,179.142 255.94,179.142C283.338,179.142 309.314,186.319 329.078,199.348C339.313,206.098 347.448,214.107 353.255,223.155C359.722,233.237 363,244.078 363,255.695C363,266.999 359.722,277.845 353.255,287.925C347.448,296.977 339.313,304.983 329.078,311.734C309.314,324.762 283.341,331.935 255.94,331.935C246.788,331.935 237.768,331.137 229.017,329.557C223.587,334.799 217.233,339.519 210.509,343.249C174.584,361.216 144.792,343.671 144.792,343.671C144.792,343.671 172.491,320.188 167.986,299.602C155.593,286.917 148.878,271.619 148.878,255.387C148.878,239.461 155.595,224.162 167.986,211.475C172.49,190.895 144.801,167.416 144.792,167.408C144.801,167.403 174.589,149.864 210.509,167.831Z"
|
<clip-path android:pathData="M0,0h512v512h-512z M 0,0"/>
|
||||||
android:fillColor="#DB2323"/>
|
<path
|
||||||
<path
|
android:pathData="M402.671,207.348C394.08,194.006 382.038,182.196 366.9,172.234C337.652,153.016 299.222,142.43 258.688,142.43C245.145,142.43 231.804,143.608 218.852,145.939C210.816,138.203 201.421,131.244 191.471,125.744C154.554,107.34 122.02,114.193 105.582,120.104C100.182,122.047 98.516,128.877 102.51,132.998C114.103,144.962 133.282,168.607 128.567,190.109C110.238,208.82 100.3,231.381 100.3,254.873C100.3,278.813 110.238,301.374 128.567,320.085C133.282,341.587 114.103,365.244 102.51,377.208C98.527,381.317 100.182,388.147 105.582,390.09C122.02,396.001 154.554,402.866 191.483,384.461C201.433,378.962 210.828,372.003 218.864,364.266C231.815,366.598 245.157,367.776 258.7,367.776C299.245,367.776 337.675,357.201 366.912,337.984C382.05,328.022 394.092,316.223 402.683,302.87C412.255,288.009 417.1,272.006 417.1,255.332C417.088,238.211 412.243,222.22 402.671,207.348ZM257.034,340.045C239.509,340.045 222.799,337.784 207.566,333.698L196.434,344.401C190.384,350.218 183.293,355.482 175.896,359.627C166.099,364.42 156.421,367.046 146.849,367.834C147.392,366.857 147.889,365.868 148.42,364.879C159.576,344.39 162.589,325.973 157.449,309.641C139.203,295.31 128.26,276.964 128.26,256.981C128.26,211.116 185.917,173.929 257.034,173.929C328.151,173.929 385.819,211.116 385.819,256.981C385.819,302.858 328.162,340.045 257.034,340.045Z"
|
||||||
android:pathData="M189.04,291.26C176.71,281.543 169.31,269.108 169.31,255.555C169.31,224.456 208.278,199.245 256.348,199.245C304.418,199.245 343.386,224.456 343.386,255.555C343.386,286.655 304.418,311.866 256.348,311.866C244.501,311.866 233.206,310.335 222.912,307.561L215.386,314.82C211.296,318.765 206.503,322.334 201.507,325.147C194.884,328.399 188.345,330.174 181.875,330.715C182.24,330.052 182.576,329.379 182.937,328.715C190.478,314.822 192.512,302.337 189.04,291.26Z"
|
android:fillColor="#ffffff"/>
|
||||||
android:fillColor="#ffffff"
|
<path
|
||||||
android:fillType="evenOdd"/>
|
android:pathData="M195.43,237.881C184.948,237.881 176.451,246.313 176.451,256.71C176.451,267.108 184.948,275.539 195.43,275.539C205.912,275.539 214.409,267.108 214.409,256.71C214.409,246.313 205.912,237.881 195.43,237.881Z"
|
||||||
<path
|
android:fillColor="#ffffff"/>
|
||||||
android:pathData="M214.708,268.127C207.625,268.127 201.883,262.413 201.883,255.364C201.883,248.316 207.625,242.602 214.708,242.602C221.791,242.602 227.533,248.316 227.533,255.364C227.533,262.413 221.791,268.127 214.708,268.127ZM255.998,268.127C248.915,268.127 243.173,262.413 243.173,255.364C243.173,248.316 248.915,242.602 255.998,242.602C263.08,242.602 268.822,248.316 268.822,255.364C268.822,262.413 263.08,268.127 255.998,268.127ZM297.287,268.127C290.204,268.127 284.462,262.413 284.462,255.364C284.462,248.316 290.204,242.602 297.287,242.602C304.37,242.602 310.112,248.316 310.112,255.364C310.112,262.413 304.37,268.127 297.287,268.127Z"
|
<path
|
||||||
android:fillColor="#DB2323"/>
|
android:pathData="M256.514,237.881C246.032,237.881 237.535,246.313 237.535,256.71C237.535,267.108 246.032,275.539 256.514,275.539C266.996,275.539 275.493,267.108 275.493,256.71C275.493,246.313 266.996,237.881 256.514,237.881Z"
|
||||||
|
android:fillColor="#ffffff"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M317.609,237.881C307.127,237.881 298.631,246.313 298.631,256.71C298.631,267.108 307.127,275.539 317.609,275.539C328.091,275.539 336.588,267.108 336.588,256.71C336.588,246.313 328.091,237.881 317.609,237.881Z"
|
||||||
|
android:fillColor="#ffffff"/>
|
||||||
|
</group>
|
||||||
</group>
|
</group>
|
||||||
</vector>
|
</vector>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<background android:drawable="@mipmap/ic_launcher_background"/>
|
<background android:drawable="@drawable/ic_launcher_background"/>
|
||||||
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
||||||
</adaptive-icon>
|
</adaptive-icon>
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<background android:drawable="@mipmap/ic_launcher_background"/>
|
<background android:drawable="@drawable/ic_launcher_background"/>
|
||||||
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
||||||
</adaptive-icon>
|
</adaptive-icon>
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 367 B |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 233 B |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 508 B |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 897 B |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<color name="primary_dark">#660B0B0B</color>
|
<color name="primary_dark">#660B0B0B</color>
|
||||||
<item name="splashBackground" type="color">#eeeff1</item>
|
<item name="splashBackground" type="color">#F5455C</item>
|
||||||
<item name="notification_text" type="color">#CC3333</item>
|
<item name="notification_text" type="color">#F5455C</item>
|
||||||
</resources>
|
</resources>
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 40 KiB |
|
@ -0,0 +1,25 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="336.88116"
|
||||||
|
android:viewportHeight="336.88116"
|
||||||
|
android:tint="#FFFFFF">
|
||||||
|
<group android:translateX="-87.55942"
|
||||||
|
android:translateY="-87.55942">
|
||||||
|
<group>
|
||||||
|
<clip-path android:pathData="M0,0h512v512h-512z M 0,0"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M402.671,207.348C394.08,194.006 382.038,182.196 366.9,172.234C337.652,153.016 299.222,142.43 258.688,142.43C245.145,142.43 231.804,143.608 218.852,145.939C210.816,138.203 201.421,131.244 191.471,125.744C154.554,107.34 122.02,114.193 105.582,120.104C100.182,122.047 98.516,128.877 102.51,132.998C114.103,144.962 133.282,168.607 128.567,190.109C110.238,208.82 100.3,231.381 100.3,254.873C100.3,278.813 110.238,301.374 128.567,320.085C133.282,341.587 114.103,365.244 102.51,377.208C98.527,381.317 100.182,388.147 105.582,390.09C122.02,396.001 154.554,402.866 191.483,384.461C201.433,378.962 210.828,372.003 218.864,364.266C231.815,366.598 245.157,367.776 258.7,367.776C299.245,367.776 337.675,357.201 366.912,337.984C382.05,328.022 394.092,316.223 402.683,302.87C412.255,288.009 417.1,272.006 417.1,255.332C417.088,238.211 412.243,222.22 402.671,207.348ZM257.034,340.045C239.509,340.045 222.799,337.784 207.566,333.698L196.434,344.401C190.384,350.218 183.293,355.482 175.896,359.627C166.099,364.42 156.421,367.046 146.849,367.834C147.392,366.857 147.889,365.868 148.42,364.879C159.576,344.39 162.589,325.973 157.449,309.641C139.203,295.31 128.26,276.964 128.26,256.981C128.26,211.116 185.917,173.929 257.034,173.929C328.151,173.929 385.819,211.116 385.819,256.981C385.819,302.858 328.162,340.045 257.034,340.045Z"
|
||||||
|
android:fillColor="#ffffff"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M195.43,237.881C184.948,237.881 176.451,246.313 176.451,256.71C176.451,267.108 184.948,275.539 195.43,275.539C205.912,275.539 214.409,267.108 214.409,256.71C214.409,246.313 205.912,237.881 195.43,237.881Z"
|
||||||
|
android:fillColor="#ffffff"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M256.514,237.881C246.032,237.881 237.535,246.313 237.535,256.71C237.535,267.108 246.032,275.539 256.514,275.539C266.996,275.539 275.493,267.108 275.493,256.71C275.493,246.313 266.996,237.881 256.514,237.881Z"
|
||||||
|
android:fillColor="#ffffff"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M317.609,237.881C307.127,237.881 298.631,246.313 298.631,256.71C298.631,267.108 307.127,275.539 317.609,275.539C328.091,275.539 336.588,267.108 336.588,256.71C336.588,246.313 328.091,237.881 317.609,237.881Z"
|
||||||
|
android:fillColor="#ffffff"/>
|
||||||
|
</group>
|
||||||
|
</group>
|
||||||
|
</vector>
|
After Width: | Height: | Size: 772 B |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 528 B |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 2.4 KiB |
|
@ -1,21 +0,0 @@
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
xmlns:aapt="http://schemas.android.com/aapt"
|
|
||||||
android:width="108dp"
|
|
||||||
android:height="108dp"
|
|
||||||
android:viewportWidth="512"
|
|
||||||
android:viewportHeight="512">
|
|
||||||
<path
|
|
||||||
android:pathData="M0,0h512v512h-512z">
|
|
||||||
<aapt:attr name="android:fillColor">
|
|
||||||
<gradient
|
|
||||||
android:startY="0"
|
|
||||||
android:startX="256"
|
|
||||||
android:endY="512"
|
|
||||||
android:endX="256"
|
|
||||||
android:type="linear">
|
|
||||||
<item android:offset="0" android:color="#FF1C82FF"/>
|
|
||||||
<item android:offset="1" android:color="#FF0066E3"/>
|
|
||||||
</gradient>
|
|
||||||
</aapt:attr>
|
|
||||||
</path>
|
|
||||||
</vector>
|
|
After Width: | Height: | Size: 997 B |
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 5.5 KiB |
After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 766 B |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 766 B |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 2.6 KiB |
|
@ -1,4 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<item name="splashBackground" type="color">#000000</item>
|
<item name="splashBackground" type="color">#000000</item>
|
||||||
|
<item name="notification_text" type="color">#F5455C</item>
|
||||||
</resources>
|
</resources>
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<color name="primary_dark">#660B0B0B</color>
|
<color name="primary_dark">#660B0B0B</color>
|
||||||
<item name="splashBackground" type="color">#eeeff1</item>
|
<item name="splashBackground" type="color">#1D74F5</item>
|
||||||
<item name="notification_text" type="color">#CC3333</item>
|
<item name="notification_text" type="color">#1D74F5</item>
|
||||||
</resources>
|
</resources>
|
After Width: | Height: | Size: 40 KiB |
|
@ -4,39 +4,36 @@ import android.app.Notification;
|
||||||
import android.app.NotificationChannel;
|
import android.app.NotificationChannel;
|
||||||
import android.app.NotificationManager;
|
import android.app.NotificationManager;
|
||||||
import android.app.PendingIntent;
|
import android.app.PendingIntent;
|
||||||
|
import android.app.Person;
|
||||||
import android.app.RemoteInput;
|
import android.app.RemoteInput;
|
||||||
import android.content.Intent;
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
import android.content.Intent;
|
||||||
import android.content.res.Resources;
|
import android.content.res.Resources;
|
||||||
import android.graphics.Bitmap;
|
import android.graphics.Bitmap;
|
||||||
import android.graphics.BitmapFactory;
|
import android.graphics.BitmapFactory;
|
||||||
import android.graphics.drawable.Icon;
|
import android.graphics.drawable.Icon;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.app.Person;
|
|
||||||
|
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
|
||||||
import com.bumptech.glide.Glide;
|
import com.bumptech.glide.Glide;
|
||||||
import com.bumptech.glide.load.resource.bitmap.RoundedCorners;
|
import com.bumptech.glide.load.resource.bitmap.RoundedCorners;
|
||||||
import com.bumptech.glide.request.RequestOptions;
|
import com.bumptech.glide.request.RequestOptions;
|
||||||
|
|
||||||
import java.util.concurrent.ExecutionException;
|
|
||||||
import java.lang.InterruptedException;
|
|
||||||
|
|
||||||
import com.facebook.react.bridge.ReactApplicationContext;
|
import com.facebook.react.bridge.ReactApplicationContext;
|
||||||
|
import com.google.gson.Gson;
|
||||||
import com.wix.reactnativenotifications.core.AppLaunchHelper;
|
import com.wix.reactnativenotifications.core.AppLaunchHelper;
|
||||||
import com.wix.reactnativenotifications.core.AppLifecycleFacade;
|
import com.wix.reactnativenotifications.core.AppLifecycleFacade;
|
||||||
import com.wix.reactnativenotifications.core.JsIOHelper;
|
import com.wix.reactnativenotifications.core.JsIOHelper;
|
||||||
import com.wix.reactnativenotifications.core.notification.PushNotification;
|
import com.wix.reactnativenotifications.core.notification.PushNotification;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.concurrent.ExecutionException;
|
||||||
|
|
||||||
import static com.wix.reactnativenotifications.Defs.NOTIFICATION_RECEIVED_EVENT_NAME;
|
import static com.wix.reactnativenotifications.Defs.NOTIFICATION_RECEIVED_EVENT_NAME;
|
||||||
|
|
||||||
|
@ -187,7 +184,7 @@ public class CustomPushNotification extends PushNotification {
|
||||||
private Bitmap largeIcon() {
|
private Bitmap largeIcon() {
|
||||||
final Resources res = mContext.getResources();
|
final Resources res = mContext.getResources();
|
||||||
String packageName = mContext.getPackageName();
|
String packageName = mContext.getPackageName();
|
||||||
int largeIconResId = res.getIdentifier("ic_launcher", "mipmap", packageName);
|
int largeIconResId = res.getIdentifier("ic_notification", "drawable", packageName);
|
||||||
Bitmap largeIconBitmap = BitmapFactory.decodeResource(res, largeIconResId);
|
Bitmap largeIconBitmap = BitmapFactory.decodeResource(res, largeIconResId);
|
||||||
return largeIconBitmap;
|
return largeIconBitmap;
|
||||||
}
|
}
|
||||||
|
@ -196,7 +193,7 @@ public class CustomPushNotification extends PushNotification {
|
||||||
final Resources res = mContext.getResources();
|
final Resources res = mContext.getResources();
|
||||||
String packageName = mContext.getPackageName();
|
String packageName = mContext.getPackageName();
|
||||||
|
|
||||||
int smallIconResId = res.getIdentifier("ic_notification", "mipmap", packageName);
|
int smallIconResId = res.getIdentifier("ic_notification", "drawable", packageName);
|
||||||
|
|
||||||
Gson gson = new Gson();
|
Gson gson = new Gson();
|
||||||
Ejson ejson = gson.fromJson(bundle.getString("ejson", "{}"), Ejson.class);
|
Ejson ejson = gson.fromJson(bundle.getString("ejson", "{}"), Ejson.class);
|
||||||
|
@ -326,7 +323,7 @@ public class CustomPushNotification extends PushNotification {
|
||||||
|
|
||||||
final Resources res = mContext.getResources();
|
final Resources res = mContext.getResources();
|
||||||
String packageName = mContext.getPackageName();
|
String packageName = mContext.getPackageName();
|
||||||
int smallIconResId = res.getIdentifier("ic_notification", "mipmap", packageName);
|
int smallIconResId = res.getIdentifier("ic_notification", "drawable", packageName);
|
||||||
|
|
||||||
Intent replyIntent = new Intent(mContext, ReplyBroadcast.class);
|
Intent replyIntent = new Intent(mContext, ReplyBroadcast.class);
|
||||||
replyIntent.setAction(KEY_REPLY);
|
replyIntent.setAction(KEY_REPLY);
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:aapt="http://schemas.android.com/aapt"
|
||||||
|
android:width="108dp"
|
||||||
|
android:height="108dp"
|
||||||
|
android:viewportWidth="512"
|
||||||
|
android:viewportHeight="512">
|
||||||
|
<group>
|
||||||
|
<clip-path android:pathData="M0,0h512v512h-512z M 0,0"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M0,0h512v512h-512z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:startY="0"
|
||||||
|
android:startX="256"
|
||||||
|
android:endY="512"
|
||||||
|
android:endX="256"
|
||||||
|
android:type="linear">
|
||||||
|
<item android:offset="0" android:color="#FF1C82FF"/>
|
||||||
|
<item android:offset="1" android:color="#FF0066E3"/>
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
</group>
|
||||||
|
</vector>
|
After Width: | Height: | Size: 22 KiB |
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<background android:drawable="@drawable/ic_launcher_background"/>
|
<background android:drawable="@drawable/ic_launcher_background"/>
|
||||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
||||||
</adaptive-icon>
|
</adaptive-icon>
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<background android:drawable="@drawable/ic_launcher_background"/>
|
<background android:drawable="@drawable/ic_launcher_background"/>
|
||||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
||||||
</adaptive-icon>
|
</adaptive-icon>
|
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 7.7 KiB |
After Width: | Height: | Size: 7.3 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 19 KiB |
|
@ -1,9 +1,9 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15705" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="Dtp-p8-LvN">
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16097.3" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="Dtp-p8-LvN">
|
||||||
<device id="retina6_1" orientation="portrait" appearance="light"/>
|
<device id="retina6_1" orientation="portrait" appearance="light"/>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="iOS"/>
|
<deployment identifier="iOS"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15706"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
|
||||||
<capability name="Named colors" minToolsVersion="9.0"/>
|
<capability name="Named colors" minToolsVersion="9.0"/>
|
||||||
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<imageView autoresizesSubviews="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" image="Launch Screen Icon" translatesAutoresizingMaskIntoConstraints="NO" id="3lX-Ut-9ad">
|
<imageView autoresizesSubviews="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" image="Launch Screen Icon" translatesAutoresizingMaskIntoConstraints="NO" id="3lX-Ut-9ad">
|
||||||
<rect key="frame" x="153" y="399.5" width="108" height="97.5"/>
|
<rect key="frame" x="133" y="374" width="148" height="148"/>
|
||||||
<accessibility key="accessibilityConfiguration">
|
<accessibility key="accessibilityConfiguration">
|
||||||
<accessibilityTraits key="traits" image="YES" notEnabled="YES"/>
|
<accessibilityTraits key="traits" image="YES" notEnabled="YES"/>
|
||||||
</accessibility>
|
</accessibility>
|
||||||
|
@ -41,9 +41,9 @@
|
||||||
</scene>
|
</scene>
|
||||||
</scenes>
|
</scenes>
|
||||||
<resources>
|
<resources>
|
||||||
<image name="Launch Screen Icon" width="108" height="97.5"/>
|
<image name="Launch Screen Icon" width="148" height="148"/>
|
||||||
<namedColor name="splashBackgroundColor">
|
<namedColor name="splashBackgroundColor">
|
||||||
<color red="0.93333333333333335" green="0.93725490196078431" blue="0.94509803921568625" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
<color red="0.11372549086809158" green="0.45490196347236633" blue="0.96078431606292725" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
</namedColor>
|
</namedColor>
|
||||||
</resources>
|
</resources>
|
||||||
</document>
|
</document>
|
||||||
|
|
After Width: | Height: | Size: 8.7 KiB |
After Width: | Height: | Size: 357 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 981 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 6.0 KiB |
After Width: | Height: | Size: 6.4 KiB |
After Width: | Height: | Size: 7.5 KiB |
|
@ -1,158 +1,158 @@
|
||||||
{
|
{
|
||||||
"images" : [
|
"images" : [
|
||||||
{
|
{
|
||||||
"size" : "20x20",
|
"filename" : "40.png",
|
||||||
"idiom" : "iphone",
|
"idiom" : "iphone",
|
||||||
"filename" : "icon-20@2x.png",
|
"scale" : "2x",
|
||||||
"scale" : "2x"
|
"size" : "20x20"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "20x20",
|
"filename" : "60.png",
|
||||||
"idiom" : "iphone",
|
"idiom" : "iphone",
|
||||||
"filename" : "icon-20@3x.png",
|
"scale" : "3x",
|
||||||
"scale" : "3x"
|
"size" : "20x20"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "29x29",
|
"filename" : "29.png",
|
||||||
"idiom" : "iphone",
|
"idiom" : "iphone",
|
||||||
"filename" : "icon-29@1x.png",
|
"scale" : "1x",
|
||||||
"scale" : "1x"
|
"size" : "29x29"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "29x29",
|
"filename" : "58.png",
|
||||||
"idiom" : "iphone",
|
"idiom" : "iphone",
|
||||||
"filename" : "icon-29@2x.png",
|
"scale" : "2x",
|
||||||
"scale" : "2x"
|
"size" : "29x29"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "29x29",
|
"filename" : "87.png",
|
||||||
"idiom" : "iphone",
|
"idiom" : "iphone",
|
||||||
"filename" : "icon-29@3x.png",
|
"scale" : "3x",
|
||||||
"scale" : "3x"
|
"size" : "29x29"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "40x40",
|
"filename" : "80.png",
|
||||||
"idiom" : "iphone",
|
"idiom" : "iphone",
|
||||||
"filename" : "icon-40@2x.png",
|
"scale" : "2x",
|
||||||
"scale" : "2x"
|
"size" : "40x40"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "40x40",
|
"filename" : "120.png",
|
||||||
"idiom" : "iphone",
|
"idiom" : "iphone",
|
||||||
"filename" : "icon-40@3x.png",
|
"scale" : "3x",
|
||||||
"scale" : "3x"
|
"size" : "40x40"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "57x57",
|
"filename" : "57.png",
|
||||||
"idiom" : "iphone",
|
"idiom" : "iphone",
|
||||||
"filename" : "icon-57@1x.png",
|
"scale" : "1x",
|
||||||
"scale" : "1x"
|
"size" : "57x57"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "57x57",
|
"filename" : "114.png",
|
||||||
"idiom" : "iphone",
|
"idiom" : "iphone",
|
||||||
"filename" : "icon-57@2x.png",
|
"scale" : "2x",
|
||||||
"scale" : "2x"
|
"size" : "57x57"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "60x60",
|
"filename" : "120.png",
|
||||||
"idiom" : "iphone",
|
"idiom" : "iphone",
|
||||||
"filename" : "icon-60@2x.png",
|
"scale" : "2x",
|
||||||
"scale" : "2x"
|
"size" : "60x60"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "60x60",
|
"filename" : "180.png",
|
||||||
"idiom" : "iphone",
|
"idiom" : "iphone",
|
||||||
"filename" : "icon-60@3x.png",
|
"scale" : "3x",
|
||||||
"scale" : "3x"
|
"size" : "60x60"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "20x20",
|
"filename" : "20.png",
|
||||||
"idiom" : "ipad",
|
"idiom" : "ipad",
|
||||||
"filename" : "icon-20@1x.png",
|
"scale" : "1x",
|
||||||
"scale" : "1x"
|
"size" : "20x20"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "20x20",
|
"filename" : "40.png",
|
||||||
"idiom" : "ipad",
|
"idiom" : "ipad",
|
||||||
"filename" : "icon-20@2x.png",
|
"scale" : "2x",
|
||||||
"scale" : "2x"
|
"size" : "20x20"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "29x29",
|
"filename" : "29.png",
|
||||||
"idiom" : "ipad",
|
"idiom" : "ipad",
|
||||||
"filename" : "icon-29@1x.png",
|
"scale" : "1x",
|
||||||
"scale" : "1x"
|
"size" : "29x29"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "29x29",
|
"filename" : "58.png",
|
||||||
"idiom" : "ipad",
|
"idiom" : "ipad",
|
||||||
"filename" : "icon-29@2x.png",
|
"scale" : "2x",
|
||||||
"scale" : "2x"
|
"size" : "29x29"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "40x40",
|
"filename" : "40.png",
|
||||||
"idiom" : "ipad",
|
"idiom" : "ipad",
|
||||||
"filename" : "icon-40@1x.png",
|
"scale" : "1x",
|
||||||
"scale" : "1x"
|
"size" : "40x40"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "40x40",
|
"filename" : "80.png",
|
||||||
"idiom" : "ipad",
|
"idiom" : "ipad",
|
||||||
"filename" : "icon-40@2x.png",
|
"scale" : "2x",
|
||||||
"scale" : "2x"
|
"size" : "40x40"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "50x50",
|
"filename" : "50.png",
|
||||||
"idiom" : "ipad",
|
"idiom" : "ipad",
|
||||||
"filename" : "icon-50@1x.png",
|
"scale" : "1x",
|
||||||
"scale" : "1x"
|
"size" : "50x50"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "50x50",
|
"filename" : "100.png",
|
||||||
"idiom" : "ipad",
|
"idiom" : "ipad",
|
||||||
"filename" : "icon-50@2x.png",
|
"scale" : "2x",
|
||||||
"scale" : "2x"
|
"size" : "50x50"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "72x72",
|
"filename" : "72.png",
|
||||||
"idiom" : "ipad",
|
"idiom" : "ipad",
|
||||||
"filename" : "icon-72@1x.png",
|
"scale" : "1x",
|
||||||
"scale" : "1x"
|
"size" : "72x72"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "72x72",
|
"filename" : "144.png",
|
||||||
"idiom" : "ipad",
|
"idiom" : "ipad",
|
||||||
"filename" : "icon-72@2x.png",
|
"scale" : "2x",
|
||||||
"scale" : "2x"
|
"size" : "72x72"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "76x76",
|
"filename" : "76.png",
|
||||||
"idiom" : "ipad",
|
"idiom" : "ipad",
|
||||||
"filename" : "icon-76@1x.png",
|
"scale" : "1x",
|
||||||
"scale" : "1x"
|
"size" : "76x76"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "76x76",
|
"filename" : "152.png",
|
||||||
"idiom" : "ipad",
|
"idiom" : "ipad",
|
||||||
"filename" : "icon-76@2x.png",
|
"scale" : "2x",
|
||||||
"scale" : "2x"
|
"size" : "76x76"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "83.5x83.5",
|
"filename" : "167.png",
|
||||||
"idiom" : "ipad",
|
"idiom" : "ipad",
|
||||||
"filename" : "icon-83.5@2x.png",
|
"scale" : "2x",
|
||||||
"scale" : "2x"
|
"size" : "83.5x83.5"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "1024x1024",
|
"filename" : "1024.png",
|
||||||
"idiom" : "ios-marketing",
|
"idiom" : "ios-marketing",
|
||||||
"filename" : "icon-1024@1x.png",
|
"scale" : "1x",
|
||||||
"scale" : "1x"
|
"size" : "1024x1024"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"info" : {
|
"info" : {
|
||||||
"version" : 1,
|
"author" : "xcode",
|
||||||
"author" : "xcode"
|
"version" : 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Before Width: | Height: | Size: 238 KiB |
Before Width: | Height: | Size: 914 B |