Skip to content
Permalink
Browse files

πŸ€– Target Android 8.0 (Oreo)

- Update targetSdkVersion and compileSdkVersion to 26
- Update Android support library to 26.1.0
- New adaptive launcher icons + round icons for Android 7.1
- Use a fork of Typekit to work around an attribute name clash issue
  • Loading branch information...
vickychijwani committed Nov 26, 2017
1 parent b79fbbd commit 704afd0f6bac0f9261cf55d6e3d2e9789c0492f9
@@ -4,7 +4,7 @@ version: 2
jobs:
build:
environment:
TARGET_SDK_VERSION: 25
TARGET_SDK_VERSION: 26

# https://circleci.com/docs/2.0/configuration-reference/#docker--machine-executor
docker:
@@ -17,12 +17,12 @@ apply plugin: 'realm-android'
apply plugin: 'io.fabric'

android {
compileSdkVersion 25
compileSdkVersion 26

defaultConfig {
applicationId 'org.ghost.android'
minSdkVersion 16
targetSdkVersion 25
targetSdkVersion 26
versionCode 1_02_01_00 // 2 digits each for major, minor, patch, build number
// example: 2.0.0-beta1 => 2_00_00_00, 2.0.0 => 2_00_00_01
versionName '1.2.1'
@@ -139,7 +139,8 @@ dependencies {
implementation "com.android.support:percent:$rootProject.ext.supportLibVersion"
implementation "com.android.support:customtabs:$rootProject.ext.supportLibVersion"
implementation "org.ocpsoft.prettytime:prettytime:4.0.1.Final"
implementation "com.tsengvn:typekit:1.0.1"
// using a fork because https://github.com/tsengvn/typekit/issues/9#issuecomment-324478332
implementation "com.github.katoro:typekit:1.0.1"

// misc
implementation "com.jakewharton:butterknife:$rootProject.ext.butterKnifeVersion"
@@ -13,7 +13,8 @@
<application
android:name=".SpectreApplication"
android:allowBackup="false"
android:icon="@drawable/ic_launcher"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:supportsRtl="true"
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="238.85005"
android:viewportHeight="238.85005">
<group android:translateX="11.942502"
android:translateY="11.942502">
<group android:translateX="65.97772"
android:translateY="63.982517">

<path
android:fillColor="#ffffff"
android:fillAlpha="1.0"
android:strokeAlpha="1.0"
android:strokeWidth="1"
android:pathData="M4.209,69.017 L29.852,69.017 Q33.852,69.017,33.852,73.017 L33.852,82.031
Q33.852,86.031,29.852,86.031 L4.209,86.031 Q0.209,86.031,0.209,82.031
L0.209,73.017 Q0.209,69.017,4.209,69.017 Z" />
<path
android:fillColor="#ffffff"
android:fillAlpha="1.0"
android:strokeAlpha="1.0"
android:strokeWidth="1"
android:pathData="M54.672,69.017 L80.294,69.017 Q84.294,69.017,84.294,73.017 L84.294,82.031
Q84.294,86.031,80.294,86.031 L54.672,86.031 Q50.672,86.031,50.672,82.031
L50.672,73.017 Q50.672,69.017,54.672,69.017 Z" />
<path
android:fillColor="#ffffff"
android:fillAlpha="1.0"
android:strokeAlpha="1.0"
android:strokeWidth="1"
android:pathData="M4.184,34.99 L80.305,34.99 Q84.305,34.99,84.305,38.99 L84.305,48.004
Q84.305,52.004,80.305,52.004 L4.184,52.004 Q0.184,52.004,0.184,48.004
L0.184,38.99 Q0.184,34.99,4.184,34.99 Z" />
<path
android:fillColor="#ffffff"
android:fillAlpha="1.0"
android:strokeAlpha="1.0"
android:strokeWidth="1"
android:pathData="M4.209,0.964 L46.678,0.964 Q50.678,0.964,50.678,4.964 L50.678,13.977
Q50.678,17.977,46.678,17.977 L4.209,17.977 Q0.209,17.977,0.209,13.977
L0.209,4.964 Q0.209,0.964,4.209,0.964 Z" />
<path
android:fillColor="#ffffff"
android:fillAlpha="1.0"
android:strokeAlpha="1.0"
android:strokeWidth="1"
android:pathData="M71.494,0.964 L80.315,0.964 Q84.315,0.964,84.315,4.964 L84.315,13.977
Q84.315,17.977,80.315,17.977 L71.494,17.977 Q67.494,17.977,67.494,13.977
L67.494,4.964 Q67.494,0.964,71.494,0.964 Z" />
</group>
</group>
</vector>
@@ -62,7 +62,7 @@
style="@style/AboutItemStyle">
<ImageView
style="@style/AboutIconStyle"
android:src="@drawable/ic_launcher"
android:src="@mipmap/ic_launcher"
android:tint="@android:color/transparent"
/>
<TextView
@@ -73,7 +73,7 @@
android:maxLines="2"
android:textAppearance="@style/TextAppearance.Small.Dim"
android:textColor="@color/status_published"
app:font="narrow-bold"
app:fontName="narrow-bold"
tools:text="Published 5 days ago"
/>

@@ -91,7 +91,7 @@
android:ellipsize="none"
android:textAppearance="@style/TextAppearance.Small.Dim"
android:textColor="@color/text_tertiary"
app:font="narrow-bold"
app:fontName="narrow-bold"
tools:text="#android +2"
tools:ignore="RtlSymmetry"
/>
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/dark_grey"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/dark_grey"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,6 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<!-- Ghost colors from https://ghost.org/design -->
<color name="ghost_blue">#3eb0ef</color>
<color name="white">#ffffff</color>
<color name="light_grey">#e5eff5</color>
<color name="mid_grey">#738a94</color>
<color name="dark_grey">#343f44</color>

<color name="primary">#1e2527</color>
<color name="primary_dark">#101415</color>
<color name="accent">#3eb0ef</color>
@@ -24,7 +24,7 @@ allprojects {
ext {
retrofitVersion = '2.3.0'
okhttpVersion = '3.9.0'
supportLibVersion = '25.4.0'
supportLibVersion = '26.1.0'
permissionsDispatcherVersion = '2.3.1'
butterKnifeVersion = '8.8.1'
stethoVersion = '1.5.0'

0 comments on commit 704afd0

Please sign in to comment.
You can’t perform that action at this time.