diff --git a/app/build.gradle b/app/build.gradle index 5476d1c9..fd45f04a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -32,18 +32,13 @@ android { } dependencies { - compile 'com.android.support:appcompat-v7:25.0.1' - compile 'com.github.yukuku:ambilwarna:2.0.1' - compile 'com.android.support:design:25.0.1' + compile 'com.simplemobiletools:commons:2.1.6' compile 'com.facebook.stetho:stetho:1.4.1' - compile 'com.github.bumptech.glide:glide:3.7.0' - compile 'com.simplemobiletools:filepicker:1.6.1@aar' - compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" } buildscript { - ext.kotlin_version = '1.0.5-2' + ext.kotlin_version = '1.0.3' repositories { mavenCentral() } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 1a7371ac..5b47c3f8 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -6,7 +6,7 @@ @@ -45,7 +45,7 @@ + android:icon="@drawable/img_widget_preview"> diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt index fa5b5cd8..88e64a55 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/activities/MainActivity.kt @@ -8,9 +8,9 @@ import android.view.Gravity import android.view.Menu import android.view.MenuItem import android.view.View -import com.simplemobiletools.filepicker.dialogs.ConfirmationDialog -import com.simplemobiletools.filepicker.extensions.toast -import com.simplemobiletools.filepicker.extensions.value +import com.simplemobiletools.commons.dialogs.ConfirmationDialog +import com.simplemobiletools.commons.extensions.toast +import com.simplemobiletools.commons.extensions.value import com.simplemobiletools.notes.R import com.simplemobiletools.notes.TYPE_NOTE import com.simplemobiletools.notes.adapters.NotesPagerAdapter diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/dialogs/NewNoteDialog.kt b/app/src/main/kotlin/com/simplemobiletools/notes/dialogs/NewNoteDialog.kt index 1bad82f5..7a85c1fa 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/dialogs/NewNoteDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/dialogs/NewNoteDialog.kt @@ -3,8 +3,8 @@ package com.simplemobiletools.notes.dialogs import android.app.Activity import android.app.AlertDialog import android.view.WindowManager -import com.simplemobiletools.filepicker.extensions.toast -import com.simplemobiletools.filepicker.extensions.value +import com.simplemobiletools.commons.extensions.toast +import com.simplemobiletools.commons.extensions.value import com.simplemobiletools.notes.R import com.simplemobiletools.notes.databases.DBHelper import kotlinx.android.synthetic.main.new_note.view.* diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/dialogs/RenameNoteDialog.kt b/app/src/main/kotlin/com/simplemobiletools/notes/dialogs/RenameNoteDialog.kt index 069be3e8..73aeeff1 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/dialogs/RenameNoteDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/dialogs/RenameNoteDialog.kt @@ -4,8 +4,8 @@ import android.app.Activity import android.app.AlertDialog import android.view.LayoutInflater import android.view.WindowManager -import com.simplemobiletools.filepicker.extensions.toast -import com.simplemobiletools.filepicker.extensions.value +import com.simplemobiletools.commons.extensions.toast +import com.simplemobiletools.commons.extensions.value import com.simplemobiletools.notes.R import com.simplemobiletools.notes.databases.DBHelper import com.simplemobiletools.notes.models.Note diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/fragments/NoteFragment.kt b/app/src/main/kotlin/com/simplemobiletools/notes/fragments/NoteFragment.kt index 4c405405..dbc7617f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/fragments/NoteFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/fragments/NoteFragment.kt @@ -8,7 +8,7 @@ import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.view.inputmethod.InputMethodManager -import com.simplemobiletools.filepicker.extensions.value +import com.simplemobiletools.commons.extensions.value import com.simplemobiletools.notes.NOTE_ID import com.simplemobiletools.notes.R import com.simplemobiletools.notes.databases.DBHelper @@ -18,7 +18,6 @@ import com.simplemobiletools.notes.extensions.updateWidget import com.simplemobiletools.notes.models.Note import kotlinx.android.synthetic.main.fragment_note.view.* - class NoteFragment : Fragment() { var noteId = 0 lateinit var view: ViewGroup diff --git a/app/src/main/res/mipmap-hdpi/widget_preview.png b/app/src/main/res/drawable-hdpi/img_widget_preview.png similarity index 100% rename from app/src/main/res/mipmap-hdpi/widget_preview.png rename to app/src/main/res/drawable-hdpi/img_widget_preview.png diff --git a/app/src/main/res/mipmap-hdpi/open_note.png b/app/src/main/res/drawable-hdpi/open_note.png similarity index 100% rename from app/src/main/res/mipmap-hdpi/open_note.png rename to app/src/main/res/drawable-hdpi/open_note.png diff --git a/app/src/main/res/mipmap-mdpi/widget_preview.png b/app/src/main/res/drawable-mdpi/img_widget_preview.png similarity index 100% rename from app/src/main/res/mipmap-mdpi/widget_preview.png rename to app/src/main/res/drawable-mdpi/img_widget_preview.png diff --git a/app/src/main/res/mipmap-mdpi/open_note.png b/app/src/main/res/drawable-mdpi/open_note.png similarity index 100% rename from app/src/main/res/mipmap-mdpi/open_note.png rename to app/src/main/res/drawable-mdpi/open_note.png diff --git a/app/src/main/res/mipmap-xhdpi/widget_preview.png b/app/src/main/res/drawable-xhdpi/img_widget_preview.png similarity index 100% rename from app/src/main/res/mipmap-xhdpi/widget_preview.png rename to app/src/main/res/drawable-xhdpi/img_widget_preview.png diff --git a/app/src/main/res/mipmap-xhdpi/open_note.png b/app/src/main/res/drawable-xhdpi/open_note.png similarity index 100% rename from app/src/main/res/mipmap-xhdpi/open_note.png rename to app/src/main/res/drawable-xhdpi/open_note.png diff --git a/app/src/main/res/mipmap-xxhdpi/widget_preview.png b/app/src/main/res/drawable-xxhdpi/img_widget_preview.png similarity index 100% rename from app/src/main/res/mipmap-xxhdpi/widget_preview.png rename to app/src/main/res/drawable-xxhdpi/img_widget_preview.png diff --git a/app/src/main/res/mipmap-xxhdpi/open_note.png b/app/src/main/res/drawable-xxhdpi/open_note.png similarity index 100% rename from app/src/main/res/mipmap-xxhdpi/open_note.png rename to app/src/main/res/drawable-xxhdpi/open_note.png diff --git a/app/src/main/res/mipmap-xxxhdpi/widget_preview.png b/app/src/main/res/drawable-xxxhdpi/img_widget_preview.png similarity index 100% rename from app/src/main/res/mipmap-xxxhdpi/widget_preview.png rename to app/src/main/res/drawable-xxxhdpi/img_widget_preview.png diff --git a/app/src/main/res/mipmap-xxxhdpi/open_note.png b/app/src/main/res/drawable-xxxhdpi/open_note.png similarity index 100% rename from app/src/main/res/mipmap-xxxhdpi/open_note.png rename to app/src/main/res/drawable-xxxhdpi/open_note.png diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml index c8c3c607..eedd5a17 100644 --- a/app/src/main/res/layout/activity_about.xml +++ b/app/src/main/res/layout/activity_about.xml @@ -99,7 +99,7 @@ android:layout_width="@dimen/social_logo" android:layout_height="@dimen/social_logo" android:layout_below="@+id/about_follow_us" - android:src="@mipmap/facebook"/> + android:src="@drawable/ic_facebook"/> + android:src="@drawable/ic_gplus"/>