Skip to content

Commit a545fc9

Browse files
mueller-madigitaldan
authored andcommitted
Add adaptive icon (openhab#477)
* Add adaptive icon Since we need api26+ for adaptive icon, I have bumped compileSdk, but not targetSdk. This way we dont have to deal with migration to 26 now. Signed-off-by: mueller-ma <[email protected]> * Move web icon to correct place Signed-off-by: mueller-ma <[email protected]>
1 parent 524c96b commit a545fc9

File tree

16 files changed

+19
-5
lines changed

16 files changed

+19
-5
lines changed
-5.12 KB
Loading

gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

mobile/build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'io.fabric'
33

44
android {
55
buildToolsVersion '26.0.2'
6-
compileSdkVersion 25
6+
compileSdkVersion 26
77
useLibrary 'org.apache.http.legacy'
88

99
flavorDimensions "main"
@@ -59,9 +59,9 @@ repositories {
5959

6060
dependencies {
6161
compile fileTree(dir: 'libs', include: ['*.jar'])
62-
compile "com.android.support:appcompat-v7:25.4.0"
63-
compile "com.android.support:support-v4:25.4.0"
64-
compile "com.android.support:design:25.4.0"
62+
compile "com.android.support:appcompat-v7:26.1.0"
63+
compile "com.android.support:support-v4:26.1.0"
64+
compile "com.android.support:design:26.1.0"
6565
compile 'com.android.support:multidex:1.0.2'
6666
compile 'com.google.code.gson:gson:2.8.0'
6767
fullCompile 'com.google.android.gms:play-services-gcm:11.4.2'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@color/ic_launcher_background"/>
4+
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5+
</adaptive-icon>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@color/ic_launcher_background"/>
4+
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5+
</adaptive-icon>
Loading
-1.21 KB
Loading
Loading
-26 Bytes
Loading
Loading
-402 Bytes
Loading
Loading
-3.46 KB
Loading
Loading
-2.41 KB
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<color name="ic_launcher_background">#FFFFFF</color>
4+
</resources>

0 commit comments

Comments
 (0)