Commit 15041477 authored by macha's avatar macha

Optimize for publication

parent f5d3d534
......@@ -11,7 +11,7 @@ android {
applicationId "com.chillcoding.kotlin"
minSdkVersion 15
targetSdkVersion 26
versionCode 8
versionCode 9
versionName "1.5"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
......@@ -19,7 +19,8 @@ android {
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
lintOptions {
......@@ -36,12 +37,10 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:multidex:1.0.3'
implementation "com.android.support:appcompat-v7:$support_version"
implementation "com.android.support:gridlayout-v7:$support_version"
implementation "com.android.support:cardview-v7:$support_version"
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation "org.jetbrains.anko:anko-common:$anko_version"
implementation "org.jetbrains.anko:anko-support-v4-commons:$anko_version"
implementation "com.android.support:preference-v7:$support_version"
implementation "org.jetbrains.anko:anko-sqlite:$anko_version"
......
package com.chillcoding.kotlin
import android.support.multidex.MultiDexApplication
import android.app.Application
import android.support.v4.content.res.ResourcesCompat
/**
* Created by macha on 12/01/2018.
*/
class App : MultiDexApplication() {
class App : Application() {
companion object {
lateinit var instance: App
val FRAGMENT_SETTINGS = 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:viewportHeight="108"
android:viewportWidth="108">
<path
android:fillType="evenOdd"
android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
android:strokeColor="#00000000"
android:strokeWidth="1">
<aapt:attr name="android:fillColor">
<gradient
android:endX="78.5885"
android:endY="90.9159"
android:startX="48.7653"
android:startY="61.0927"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
android:strokeColor="#00000000"
android:strokeWidth="1" />
</vector>
app/src/main/res/drawable/cupcake.png

56.9 KB | W: | H:

app/src/main/res/drawable/cupcake.png

15.3 KB | W: | H:

app/src/main/res/drawable/cupcake.png
app/src/main/res/drawable/cupcake.png
app/src/main/res/drawable/cupcake.png
app/src/main/res/drawable/cupcake.png
  • 2-up
  • Swipe
  • Onion skin
app/src/main/res/drawable/eclair.png

29.6 KB | W: | H:

app/src/main/res/drawable/eclair.png

9.9 KB | W: | H:

app/src/main/res/drawable/eclair.png
app/src/main/res/drawable/eclair.png
app/src/main/res/drawable/eclair.png
app/src/main/res/drawable/eclair.png
  • 2-up
  • Swipe
  • Onion skin
app/src/main/res/drawable/froyo.png

41.2 KB | W: | H:

app/src/main/res/drawable/froyo.png

12.5 KB | W: | H:

app/src/main/res/drawable/froyo.png
app/src/main/res/drawable/froyo.png
app/src/main/res/drawable/froyo.png
app/src/main/res/drawable/froyo.png
  • 2-up
  • Swipe
  • Onion skin
app/src/main/res/drawable/honeycomb.png

56.3 KB | W: | H:

app/src/main/res/drawable/honeycomb.png

20.1 KB | W: | H:

app/src/main/res/drawable/honeycomb.png
app/src/main/res/drawable/honeycomb.png
app/src/main/res/drawable/honeycomb.png
app/src/main/res/drawable/honeycomb.png
  • 2-up
  • Swipe
  • Onion skin
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportHeight="108"
android:viewportWidth="108">
<path
android:fillColor="#26A69A"
android:pathData="M0,0h108v108h-108z" />
<path
android:fillColor="#00000000"
android:pathData="M9,0L9,108"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M19,0L19,108"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M29,0L29,108"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M39,0L39,108"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M49,0L49,108"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M59,0L59,108"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M69,0L69,108"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M79,0L79,108"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M89,0L89,108"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M99,0L99,108"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M0,9L108,9"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M0,19L108,19"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M0,29L108,29"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M0,39L108,39"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M0,49L108,49"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M0,59L108,59"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M0,69L108,69"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M0,79L108,79"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M0,89L108,89"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M0,99L108,99"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M19,29L89,29"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M19,39L89,39"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M19,49L89,49"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M19,59L89,59"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M19,69L89,69"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M19,79L89,79"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M29,19L29,89"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M39,19L39,89"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M49,19L49,89"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M59,19L59,89"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M69,19L69,89"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M79,19L79,89"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
</vector>
app/src/main/res/drawable/jellybean.png

33.9 KB | W: | H:

app/src/main/res/drawable/jellybean.png

9.24 KB | W: | H:

app/src/main/res/drawable/jellybean.png
app/src/main/res/drawable/jellybean.png
app/src/main/res/drawable/jellybean.png
app/src/main/res/drawable/jellybean.png
  • 2-up
  • Swipe
  • Onion skin
app/src/main/res/drawable/kitkat.png

18.5 KB | W: | H:

app/src/main/res/drawable/kitkat.png

7.3 KB | W: | H:

app/src/main/res/drawable/kitkat.png
app/src/main/res/drawable/kitkat.png
app/src/main/res/drawable/kitkat.png
app/src/main/res/drawable/kitkat.png
  • 2-up
  • Swipe
  • Onion skin
app/src/main/res/drawable/kotlin.png

24.7 KB | W: | H:

app/src/main/res/drawable/kotlin.png

8.66 KB | W: | H:

app/src/main/res/drawable/kotlin.png
app/src/main/res/drawable/kotlin.png
app/src/main/res/drawable/kotlin.png
app/src/main/res/drawable/kotlin.png
  • 2-up
  • Swipe
  • Onion skin
app/src/main/res/drawable/lollipop.png

27.9 KB | W: | H:

app/src/main/res/drawable/lollipop.png

8.27 KB | W: | H:

app/src/main/res/drawable/lollipop.png
app/src/main/res/drawable/lollipop.png
app/src/main/res/drawable/lollipop.png
app/src/main/res/drawable/lollipop.png
  • 2-up
  • Swipe
  • Onion skin
app/src/main/res/drawable/nougat.png

29.4 KB | W: | H:

app/src/main/res/drawable/nougat.png

11.7 KB | W: | H:

app/src/main/res/drawable/nougat.png
app/src/main/res/drawable/nougat.png
app/src/main/res/drawable/nougat.png
app/src/main/res/drawable/nougat.png
  • 2-up
  • Swipe
  • Onion skin
app/src/main/res/drawable/oreo.png

59.1 KB | W: | H:

app/src/main/res/drawable/oreo.png

19.9 KB | W: | H:

app/src/main/res/drawable/oreo.png
app/src/main/res/drawable/oreo.png
app/src/main/res/drawable/oreo.png
app/src/main/res/drawable/oreo.png
  • 2-up
  • Swipe
  • Onion skin
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#0d47a1</color>
<color name="colorPrimaryLight">#5472d3</color>
<color name="colorPrimaryDark">#002171</color>
<color name="colorAccent">#ffeb3b</color>
<color name="colorAccentLight">#ffff72</color>
<color name="colorAccentDark">#c8b900</color>
<color name="primaryTextColor">#ffffff</color>
<color name="secondaryTextColor">#000000</color>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#0d47a1</color>
<color name="colorPrimaryLight">#5472d3</color>
<color name="colorPrimaryDark">#002171</color>
<color name="colorAccent">#d32f2f</color>
<color name="colorAccentLight">#ff6659</color>
<color name="colorAccentDark">#9a0007</color>
<color name="colorText">#ffffff</color>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#d32f2f</color>
<color name="colorPrimaryLight">#ff6659</color>
<color name="colorPrimaryDark">#9a0007</color>
<color name="colorAccent">#2e7d32</color>
<color name="colorAccentLight">#60ad5e</color>
<color name="colorAccentDark">#005005</color>
<color name="colorText">#ffffff</color>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#2e7d32</color>
<color name="colorPrimaryLight">#60ad5e</color>
<color name="colorPrimaryDark">#005005</color>
<color name="colorAccent">#ffeb3b</color>
<color name="colorAccentLight">#ffff72</color>
<color name="colorAccentDark">#c8b900</color>
<color name="primaryTextColor">#ffffff</color>
<color name="secondaryTextColor">#000000</color>
</resources>
......@@ -14,7 +14,6 @@
<string name="title_simple_button">Bouton Simple</string>
<string name="label_example_button">Bouton Exemple</string>
<string name="label_custom_button">Boutons Personnalis茅s</string>
<string name="title_activity_navigation_drawer">Activit茅 de Menu Lat茅ral</string>
<string name="navigation_drawer_open">Ouvre le navigation drawer</string>
<string name="navigation_drawer_close">Ferme navigation drawer</string>
......@@ -45,11 +44,6 @@
<string name="action_more">Plus</string>
<string name="action_confirm">Valider</string>
<string name="action_next">Suivant</string>
<string name="text_abc">Tout d\'abord, installez Android Studio. Ensuite, apprenez Kotlin et impl茅mentez le
cycle de vie d\'une activit茅 (<i>Activity</i>). Apprenez 脿 utiliser les extensions Kotlin tout en suivant
les r猫gles du Material Design. Aussi, gagnez en productivit茅 gr芒ce 脿 la biblioth猫que Anko.\nFinalement,
gardez votre calme et allez 脿 la plage.\n
</string>
<string-array name="motivation_quote">
......@@ -62,7 +56,6 @@
<item>Tout seul on va plus vite, ensemble on va plus loin.</item>
</string-array>
<string name="kotlin_url">https://www.chillcoding.com/blog/2017/07/11/android-kotlin-introduction/</string>
<string name="androidStudio_url">https://www.chillcoding.com/blog/2016/08/03/android-studio-installation/</string>
<string name="text_architecture">Cette vue appartient au <i>Fragment</i> <b>ArchitectureFragment</b>.
Ce <i>Fragment</i> est contenu dans l\'<i>Activity</i> principale (<b>NavigationDrawerActivity</b>)
......
......@@ -4,14 +4,12 @@
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#02b60d</color>
<color name="colorYellow">#ffee00</color>
<color name="colorRed">#e40000</color>
<color name="colorGreen">#00a603</color>
<color name="colorBlue">#0000FF</color>
<color name="ColorGray">#afafaf</color>
<color name="ColorDarkGray">#424242</color>
<color name="colorDb">#D50000</color>
<color name="colorPreference">#DD2C00</color>
<color name="colorAdapter">#FF6D00</color>
<color name="colorInteractif">#FFAB00</color>
<color name="colorNatif">#FFD600</color>
......
......@@ -13,7 +13,6 @@
<string name="title_simple_button">Simple Button</string>
<string name="label_example_button">Example Button</string>
<string name="label_custom_button">Custom Buttons</string>
<string name="title_activity_navigation_drawer">NavigationDrawerActivity</string>
<string name="navigation_drawer_open">Open navigation drawer</string>
<string name="navigation_drawer_close">Close navigation drawer</string>
......@@ -51,10 +50,6 @@
<string name="title_kotlin" translatable="false">Kotlin</string>
<string name="title_material_design" translatable="false">Material Design</string>
<string name="title_android_studio" translatable="false">Android Studio</string>
<string name="text_abc">First of all, install Android Studio.\nThen, learn Kotlin and implement the
Activity Lifecycle.\nLearn to manage views with Kotlin extensions while following Material Design
Guidelines. Plus, gain productivity by using Anko.\nThe codebase of this application is hosted on GitLab.\nFinally, keep calm and go to the beach.\n
</string>
<string-array name="androidVersionName" translatable="false">
<item>Cupcake</item>
......@@ -83,7 +78,6 @@
<item>To be a champ, you have to believe in yourself when nobody else will.</item>
<item>Alone we go faster, together we go further.</item>
</string-array>
<string name="kotlin_url">"https://try.kotlinlang.org/#/Kotlin%20Koans/Introduction/Extension%20functions/Task.kt"</string>
<string name="androidStudio_url">https://developer.android.com/studio/index.html</string>
<string name="text_architecture">This is the view of <i>ArchitectureFragment</i>. This <i>Fragment</i> is contained
in the main <i>Activity</i> (NavigationDrawerActivity) thanks to a <i>FrameLayout</i>, that is in fact a container
......@@ -132,7 +126,6 @@
<item>https://gitlab.com/chillcoding-at-the-beach/kotlin-for-android/merge_requests/12/diffs</item> <!-- i = 17 : navigation drawer-->
</string-array>
<string name="label_portrait" translatable="false">Portrait</string>
<string name="text_3_minutes">"The Road Not Taken\n"
"\nTwo roads diverged in a yellow wood,"
"\nAnd sorry I could not travel both"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment