├── .github
└── workflows
│ └── android.yml
├── .gitignore
├── .idea
├── .name
├── codeStyles
│ ├── Project.xml
│ └── codeStyleConfig.xml
├── compiler.xml
├── copyright
│ ├── Apache_License_2_0.xml
│ └── profiles_settings.xml
├── discord.xml
├── gradle.xml
├── jarRepositories.xml
├── misc.xml
├── runConfigurations.xml
└── vcs.xml
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── app
├── .gitignore
├── build.gradle
├── proguard-rules.pro
├── release
│ └── output.json
└── src
│ ├── androidTest
│ └── java
│ │ └── me
│ │ └── argraur
│ │ └── notes
│ │ ├── NoteTest.kt
│ │ └── TestNoteManager.kt
│ └── main
│ ├── AndroidManifest.xml
│ ├── ic_launcher-playstore.png
│ ├── java
│ └── me
│ │ └── argraur
│ │ └── notes
│ │ ├── App.kt
│ │ ├── MainActivity.kt
│ │ ├── adapters
│ │ └── NotesAdapter.kt
│ │ ├── entities
│ │ └── Note.kt
│ │ ├── enums
│ │ └── Action.kt
│ │ ├── helpers
│ │ ├── BackupAgent.kt
│ │ ├── DatabaseHelper.kt
│ │ ├── NoteActionManager.kt
│ │ └── NoteManager.kt
│ │ ├── interfaces
│ │ ├── NoteActionObserverManager.kt
│ │ └── NoteObserverManager.kt
│ │ ├── observers
│ │ ├── NoteActionObserver.kt
│ │ └── NoteObserver.kt
│ │ └── screens
│ │ ├── EditNoteActivity.kt
│ │ └── NoteActivity.kt
│ └── res
│ ├── drawable
│ ├── ic_launcher_background.xml
│ ├── ic_launcher_foreground.xml
│ ├── ic_outline_arrow_back_24.xml
│ ├── ic_outline_close.xml
│ ├── ic_outline_create.xml
│ ├── ic_outline_delete.xml
│ ├── ic_outline_delete_forever.xml
│ ├── ic_outline_done.xml
│ └── ic_outline_save.xml
│ ├── layout
│ ├── activity_main.xml
│ ├── activity_new_note.xml
│ ├── activity_note.xml
│ ├── note_card.xml
│ └── note_textview.xml
│ ├── mipmap-anydpi-v26
│ ├── ic_launcher.xml
│ └── ic_launcher_round.xml
│ ├── mipmap-hdpi
│ ├── ic_launcher.png
│ └── ic_launcher_round.png
│ ├── mipmap-mdpi
│ ├── ic_launcher.png
│ └── ic_launcher_round.png
│ ├── mipmap-xhdpi
│ ├── ic_launcher.png
│ └── ic_launcher_round.png
│ ├── mipmap-xxhdpi
│ ├── ic_launcher.png
│ └── ic_launcher_round.png
│ ├── mipmap-xxxhdpi
│ ├── ic_launcher.png
│ └── ic_launcher_round.png
│ ├── transition
│ └── fade.xml
│ ├── values-af
│ └── strings.xml
│ ├── values-ar
│ └── strings.xml
│ ├── values-ca
│ └── strings.xml
│ ├── values-cs
│ └── strings.xml
│ ├── values-da
│ └── strings.xml
│ ├── values-de
│ └── strings.xml
│ ├── values-el
│ └── strings.xml
│ ├── values-en
│ └── strings.xml
│ ├── values-es
│ └── strings.xml
│ ├── values-fi
│ └── strings.xml
│ ├── values-fr
│ └── strings.xml
│ ├── values-he
│ └── strings.xml
│ ├── values-hu
│ └── strings.xml
│ ├── values-it
│ └── strings.xml
│ ├── values-ja
│ └── strings.xml
│ ├── values-ko
│ └── strings.xml
│ ├── values-night
│ ├── bools.xml
│ └── colors.xml
│ ├── values-nl
│ └── strings.xml
│ ├── values-no
│ └── strings.xml
│ ├── values-pl
│ └── strings.xml
│ ├── values-pt
│ └── strings.xml
│ ├── values-ro
│ └── strings.xml
│ ├── values-ru
│ └── strings.xml
│ ├── values-sr
│ └── strings.xml
│ ├── values-sv
│ └── strings.xml
│ ├── values-tr
│ └── strings.xml
│ ├── values-uk
│ └── strings.xml
│ ├── values-vi
│ └── strings.xml
│ ├── values-zh
│ └── strings.xml
│ ├── values
│ ├── bools.xml
│ ├── colors.xml
│ ├── strings.xml
│ └── styles.xml
│ └── xml
│ └── backup.xml
├── build.gradle
├── crowdin.yml
├── docs
├── alltypes
│ └── index.html
├── index-outline.html
├── index.html
├── me.argraur.notes.adapters
│ ├── -notes-adapter
│ │ ├── -init-.html
│ │ ├── -notes-holder
│ │ │ ├── -init-.html
│ │ │ ├── card-view.html
│ │ │ └── index.html
│ │ ├── get-item-count.html
│ │ ├── index.html
│ │ ├── on-bind-view-holder.html
│ │ └── on-create-view-holder.html
│ └── index.html
├── me.argraur.notes.entities
│ ├── -note
│ │ ├── -entry
│ │ │ ├── -c-o-l-u-m-n_-n-a-m-e_-c-o-l-o-r.html
│ │ │ ├── -c-o-l-u-m-n_-n-a-m-e_-t-i-m-e.html
│ │ │ ├── -c-o-l-u-m-n_-n-a-m-e_-t-i-t-l-e.html
│ │ │ ├── -c-o-l-u-m-n_-n-a-m-e_-v-a-l-u-e.html
│ │ │ ├── -t-a-b-l-e_-n-a-m-e.html
│ │ │ └── index.html
│ │ ├── -init-.html
│ │ ├── get-color.html
│ │ ├── get-time.html
│ │ ├── get-title.html
│ │ ├── get-value.html
│ │ ├── index.html
│ │ ├── set-color.html
│ │ ├── set-time.html
│ │ ├── set-title.html
│ │ └── set-value.html
│ └── index.html
├── me.argraur.notes.enums
│ ├── -action
│ │ ├── -a-d-d.html
│ │ ├── -d-e-l-e-t-e.html
│ │ ├── -n-o-t-h-i-n-g.html
│ │ ├── -s-h-o-w.html
│ │ ├── -u-n-d-o_-d-e-l-e-t-e.html
│ │ └── index.html
│ └── index.html
├── me.argraur.notes.helpers
│ ├── -backup-agent
│ │ ├── -init-.html
│ │ ├── index.html
│ │ ├── on-backup.html
│ │ ├── on-restore-finished.html
│ │ └── on-restore.html
│ ├── -database-helper
│ │ ├── -d-a-t-a-b-a-s-e_-n-a-m-e.html
│ │ ├── -d-a-t-a-b-a-s-e_-v-e-r-s-i-o-n.html
│ │ ├── -init-.html
│ │ ├── -s-q-l_-c-r-e-a-t-e_-e-n-t-r-i-e-s.html
│ │ ├── -s-q-l_-d-e-l-e-t-e_-e-n-t-r-i-e-s.html
│ │ ├── index.html
│ │ ├── on-create.html
│ │ ├── on-downgrade.html
│ │ └── on-upgrade.html
│ ├── -note-action-manager
│ │ ├── -init-.html
│ │ ├── call-on-current.html
│ │ ├── call.html
│ │ ├── current-action.html
│ │ ├── current.html
│ │ ├── get-instance.html
│ │ ├── index.html
│ │ ├── notify-observer.html
│ │ ├── register-observer.html
│ │ └── remove-observer.html
│ ├── -note-manager
│ │ ├── -init-.html
│ │ ├── get-instance.html
│ │ ├── get-notes.html
│ │ ├── index.html
│ │ ├── notify-observer.html
│ │ ├── on-action.html
│ │ ├── register-observer.html
│ │ └── remove-observer.html
│ └── index.html
├── me.argraur.notes.interfaces
│ ├── -note-action-observer-manager
│ │ ├── index.html
│ │ ├── notify-observer.html
│ │ ├── register-observer.html
│ │ └── remove-observer.html
│ ├── -note-observer-manager
│ │ ├── index.html
│ │ ├── notify-observer.html
│ │ ├── register-observer.html
│ │ └── remove-observer.html
│ └── index.html
├── me.argraur.notes.observers
│ ├── -note-action-observer
│ │ ├── index.html
│ │ └── on-action.html
│ ├── -note-observer
│ │ ├── index.html
│ │ └── on-notes-changed.html
│ └── index.html
├── me.argraur.notes.screens
│ ├── -edit-note-activity
│ │ ├── -i-s_-e-d-i-t.html
│ │ ├── -init-.html
│ │ ├── back.html
│ │ ├── index.html
│ │ ├── on-create.html
│ │ └── set-color.html
│ ├── -note-activity
│ │ ├── -init-.html
│ │ ├── back.html
│ │ ├── delete.html
│ │ ├── edit.html
│ │ ├── index.html
│ │ ├── on-create.html
│ │ └── on-restart.html
│ └── index.html
├── me.argraur.notes
│ ├── -app
│ │ ├── -init-.html
│ │ ├── index.html
│ │ └── on-create.html
│ ├── -main-activity
│ │ ├── -init-.html
│ │ ├── index.html
│ │ ├── on-create.html
│ │ └── on-notes-changed.html
│ └── index.html
├── package-list
└── style.css
├── gradle.properties
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
/.github/workflows/android.yml:
--------------------------------------------------------------------------------
1 | name: Android CI
2 |
3 | on:
4 | push:
5 | branches: [ master ]
6 | pull_request:
7 | branches: [ master ]
8 |
9 | jobs:
10 | build:
11 |
12 | runs-on: ubuntu-latest
13 |
14 | steps:
15 | - uses: actions/checkout@v2
16 | - name: set up JDK 1.8
17 | uses: actions/setup-java@v1
18 | with:
19 | java-version: 1.8
20 | - name: Build with Gradle
21 | run: ./gradlew build
22 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/navEditor.xml
9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 | .cxx
15 |
--------------------------------------------------------------------------------
/.idea/.name:
--------------------------------------------------------------------------------
1 | Notes
--------------------------------------------------------------------------------
/.idea/codeStyles/codeStyleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/copyright/Apache_License_2_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/.idea/discord.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/.idea/jarRepositories.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [](http://www.apache.org/licenses/LICENSE-2.0)
2 | 
3 | [](https://crowdin.com/project/meargraurnotes)
4 |
5 | 
6 | # Notes
7 |
8 | A simple Material Design Notes app!
9 |
10 | [](https://i.imgur.com/t5GITkR.png) [](https://i.imgur.com/yZX1u5q.png) [](https://i.imgur.com/X0SKaYO.png)
11 |
12 | * Google Sans will be shown only on Pixel devices and on custom ROMs that have Google Sans properly defined in fonts.xml
13 |
14 | ## Info
15 | * Package name: `me.argraur.notes`
16 | * Current version code: `1`
17 | * Current version name: `ichi`
18 |
19 | ## Getting Started
20 |
21 | These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
22 |
23 | ### Prerequisites
24 |
25 | * Java Development Kit 8 - 11.
26 |
27 | ### Cloning
28 |
29 | ```
30 | git clone https://github.com/argraur/Notes -b master
31 | ```
32 |
33 | ### Building
34 |
35 | Linux & macOS:
36 | ```
37 | ./gradlew build assembleDebug
38 | ```
39 |
40 | Windows:
41 | ```
42 | .\gradlew.bat build assembleDebug
43 | ```
44 |
45 | ### Running on device
46 |
47 | Linux & macOS:
48 | ```
49 | ./gradlew build installDebug
50 | ```
51 |
52 | Windows:
53 | ```
54 | .\gradlew.bat build installDebug
55 | ```
56 |
57 | ## Built with
58 |
59 | * [Android Studio](https://developer.android.com/studio) - Official Android IDE by Google & JetBrains
60 | * [Gradle](https://github.com/gradle/gradle) - Build automation tool
61 | * [Kotlin](https://kotlinlang.org/) - Official programming language for native Android apps
62 | * [Google Material Design Components](https://material.io/develop/android/docs/getting-started/)
63 |
64 | ## Contributing
65 |
66 | Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
67 |
68 |
69 | ## Translating
70 |
71 | Visit [Crowdin Project page](https://crowdin.com/project/meargraurnotes) if you want to help translating the app :)
72 |
73 | ## Versioning
74 |
75 | We use simple major-only versioning in Japanese (OwO) (e.g. versionCode = 1, then version is ichi, versionCode = 2, then version is ni and etc.)
76 |
77 | ## Authors
78 |
79 | * **Arseniy Graur** - *Project creator* - [argraur](https://github.com/argraur)
80 |
81 | See also the list of [contributors](https://github.com/argraur/Notes/contributors) who participated in this project.
82 |
83 | ## License
84 |
85 | This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.
--------------------------------------------------------------------------------
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 | /release
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 | apply plugin: 'kotlin-android'
3 | apply plugin: 'kotlin-android-extensions'
4 | apply plugin: 'org.jetbrains.dokka'
5 |
6 | android {
7 | compileSdkVersion 29
8 | buildToolsVersion "29.0.3"
9 |
10 | defaultConfig {
11 | applicationId "me.argraur.notes"
12 | minSdkVersion 27
13 | targetSdkVersion 29
14 | versionCode 3
15 | versionName "san"
16 |
17 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
18 | }
19 |
20 | buildTypes {
21 | release {
22 | minifyEnabled true
23 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
24 | }
25 | }
26 | }
27 |
28 | dependencies {
29 | implementation fileTree(dir: "libs", include: ["*.jar"])
30 | implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
31 | implementation 'androidx.core:core-ktx:1.2.0'
32 | implementation 'androidx.appcompat:appcompat:1.1.0'
33 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
34 | testImplementation 'junit:junit:4.12'
35 | androidTestImplementation 'androidx.test.ext:junit:1.1.1'
36 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
37 | androidTestImplementation 'androidx.test:runner:1.2.0'
38 | androidTestImplementation 'androidx.test:rules:1.2.0'
39 | implementation 'com.google.android.material:material:1.2.0-alpha06'
40 | }
41 |
42 | dokka {
43 | outputFormat = 'html'
44 | outputDirectory = 'dokka'
45 | }
46 |
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
--------------------------------------------------------------------------------
/app/release/output.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": 1,
3 | "artifactType": {
4 | "type": "APK",
5 | "kind": "Directory"
6 | },
7 | "applicationId": "me.argraur.notes",
8 | "variantName": "release",
9 | "elements": [
10 | {
11 | "type": "SINGLE",
12 | "filters": [],
13 | "properties": [],
14 | "versionCode": 1,
15 | "versionName": "1",
16 | "enabled": true,
17 | "outputFile": "app-release.apk"
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/app/src/androidTest/java/me/argraur/notes/NoteTest.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2020 Arseniy Graur
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package me.argraur.notes
18 |
19 | import android.util.Log
20 | import androidx.test.ext.junit.runners.AndroidJUnit4
21 | import androidx.test.filters.LargeTest
22 | import androidx.test.rule.ActivityTestRule
23 | import me.argraur.notes.entities.Note
24 | import me.argraur.notes.helpers.TestNoteManager
25 | import org.junit.Assert.*
26 | import org.junit.Rule
27 | import org.junit.Test
28 | import org.junit.runner.RunWith
29 |
30 | @RunWith(AndroidJUnit4::class)
31 | @LargeTest
32 | class NoteTest {
33 | private val testName = "This is a test note!"
34 | private val testValue = "Hey there"
35 | private val testColor = 0
36 | private val testTime = System.currentTimeMillis()
37 |
38 | @get:Rule
39 | val activityRule = ActivityTestRule(MainActivity::class.java)
40 |
41 | @Test fun getNotes() {
42 | val testNoteManager = TestNoteManager(activityRule.activity)
43 | testNoteManager.deleteAllNotes()
44 | testNoteManager.putNote(Note(testName, testValue, testColor, testTime))
45 | val note = testNoteManager.getNotes()[0]
46 | assertNotNull(note)
47 | Log.d(javaClass.simpleName,"Title: ${note.getTitle()}")
48 | Log.d(javaClass.simpleName,"Value: ${note.getValue()}")
49 | Log.d(javaClass.simpleName,"Color: ${note.getColor()}")
50 | Log.d(javaClass.simpleName,"Time: ${note.getTime()}")
51 | assertTrue(testNoteManager.deleteNote(testTime))
52 | Log.d(javaClass.simpleName,"Test finished.")
53 | }
54 | }
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/ic_launcher-playstore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/argraur/Notes/ad1c52a8cb49945b057fb48efdaa6711bbde7dcc/app/src/main/ic_launcher-playstore.png
--------------------------------------------------------------------------------
/app/src/main/java/me/argraur/notes/App.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2020 Arseniy Graur
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package me.argraur.notes
18 |
19 | import android.app.Application
20 | import me.argraur.notes.helpers.NoteManager
21 |
22 | /**
23 | * Creates NoteManager instance
24 | */
25 | @Suppress("Unused")
26 | class App: Application() {
27 | override fun onCreate() {
28 | super.onCreate()
29 | NoteManager.getInstance(this)
30 | }
31 | }
--------------------------------------------------------------------------------
/app/src/main/java/me/argraur/notes/adapters/NotesAdapter.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2020 Arseniy Graur
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package me.argraur.notes.adapters
18 |
19 | import android.app.Activity
20 | import android.app.ActivityOptions
21 | import android.content.Intent
22 | import android.view.LayoutInflater
23 | import android.view.ViewGroup
24 | import android.widget.TextView
25 |
26 | import androidx.constraintlayout.widget.ConstraintLayout
27 | import androidx.core.view.get
28 | import androidx.recyclerview.widget.RecyclerView
29 |
30 | import com.google.android.material.card.MaterialCardView
31 |
32 | import me.argraur.notes.R
33 | import me.argraur.notes.entities.Note
34 | import me.argraur.notes.enums.Action
35 | import me.argraur.notes.helpers.NoteActionManager
36 | import me.argraur.notes.screens.NoteActivity
37 |
38 | /**
39 | * RecyclerView adapter for notes
40 | * @param notes Notes that should be added into view
41 | * @param activity Activity where RecyclerView exists
42 | */
43 | class NotesAdapter(private val notes: Array, private val activity: Activity): RecyclerView.Adapter() {
44 | /**
45 | * RecyclerView holder for notes's cards
46 | * @param cardView Card to be added into view holder
47 | */
48 | class NotesHolder(val cardView: MaterialCardView): RecyclerView.ViewHolder(cardView)
49 |
50 | /**
51 | * @see RecyclerView.Adapter.onCreateViewHolder
52 | */
53 | override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): NotesHolder {
54 | return NotesHolder(LayoutInflater.from(parent.context).inflate(R.layout.note_card, parent, false) as MaterialCardView)
55 | }
56 |
57 | /**
58 | * Adds data into cards based on given note's position
59 | * @see RecyclerView.Adapter.onBindViewHolder
60 | */
61 | override fun onBindViewHolder(holder: NotesHolder, position: Int) {
62 | val title = notes[position].getTitle()
63 | val value = notes[position].getValue()
64 | ((holder.cardView[0] as ConstraintLayout)[0] as TextView).text = title
65 | ((holder.cardView[0] as ConstraintLayout)[1] as TextView).text = value
66 | holder.cardView.setCardBackgroundColor(notes[position].getColor())
67 | holder.cardView.setOnClickListener {
68 | NoteActionManager.getInstance().call(Action.SHOW, notes[position])
69 | activity.startActivity(Intent(activity, NoteActivity::class.java), ActivityOptions.makeSceneTransitionAnimation(activity).toBundle())
70 | }
71 | }
72 |
73 | /**
74 | * @see RecyclerView.Adapter.getItemCount
75 | */
76 | override fun getItemCount() = notes.size
77 | }
78 |
--------------------------------------------------------------------------------
/app/src/main/java/me/argraur/notes/enums/Action.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2020 Arseniy Graur
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package me.argraur.notes.enums
18 |
19 | /**
20 | * Actions you can perform on Notes
21 | */
22 | enum class Action {
23 | ADD,
24 | DELETE,
25 | SHOW,
26 | UNDO_DELETE,
27 | NOTHING
28 | }
--------------------------------------------------------------------------------
/app/src/main/java/me/argraur/notes/helpers/BackupAgent.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2020 Arseniy Graur
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package me.argraur.notes.helpers
18 |
19 | import android.app.backup.BackupAgent
20 | import android.app.backup.BackupDataInput
21 | import android.app.backup.BackupDataOutput
22 | import android.os.ParcelFileDescriptor
23 | import android.util.Log
24 |
25 | class BackupAgent: BackupAgent() {
26 | /**
27 | * Send log message when backup started
28 | * @see BackupAgent.onBackup
29 | */
30 | override fun onBackup(
31 | oldState: ParcelFileDescriptor?,
32 | data: BackupDataOutput?,
33 | newState: ParcelFileDescriptor?
34 | ) {
35 | Log.d(javaClass.simpleName, "Backing up!")
36 | }
37 |
38 | /**
39 | * Send log message when restore finished
40 | * @see BackupAgent.onRestore
41 | */
42 | override fun onRestore(
43 | data: BackupDataInput?,
44 | appVersionCode: Int,
45 | newState: ParcelFileDescriptor?
46 | ) {
47 | Log.d(javaClass.simpleName, "Restoring from backup!")
48 | }
49 |
50 | /**
51 | * Updates notes when restore finished.
52 | * @see BackupAgent.onRestoreFinished
53 | */
54 | override fun onRestoreFinished() {
55 | super.onRestoreFinished()
56 | NoteManager.getInstance(null).getNotes()
57 | }
58 | }
--------------------------------------------------------------------------------
/app/src/main/java/me/argraur/notes/helpers/DatabaseHelper.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2020 Arseniy Graur
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package me.argraur.notes.helpers
18 |
19 | import android.content.Context
20 | import android.database.sqlite.SQLiteDatabase
21 | import android.database.sqlite.SQLiteOpenHelper
22 | import android.provider.BaseColumns
23 | import me.argraur.notes.entities.Note
24 |
25 | class DatabaseHelper(context: Context): SQLiteOpenHelper(context, DATABASE_NAME, null, DATABASE_VERSION) {
26 | companion object {
27 | const val SQL_CREATE_ENTRIES = "CREATE TABLE ${Note.Companion.Entry.TABLE_NAME} (" +
28 | "${BaseColumns._ID} INTEGER PRIMARY KEY, " +
29 | "${Note.Companion.Entry.COLUMN_NAME_TITLE} TEXT, " +
30 | "${Note.Companion.Entry.COLUMN_NAME_VALUE} TEXT, " +
31 | "${Note.Companion.Entry.COLUMN_NAME_COLOR} TEXT, " +
32 | "${Note.Companion.Entry.COLUMN_NAME_TIME} TEXT)"
33 | const val SQL_DELETE_ENTRIES = "DROP TABLE IF EXISTS ${Note.Companion.Entry.TABLE_NAME}"
34 | const val DATABASE_VERSION = 1
35 | const val DATABASE_NAME = "notes.db"
36 | }
37 |
38 | /**
39 | * @see SQLiteOpenHelper.onCreate
40 | */
41 | override fun onCreate(db: SQLiteDatabase) {
42 | db.execSQL(SQL_CREATE_ENTRIES)
43 | }
44 |
45 | /**
46 | * @see SQLiteOpenHelper.onUpgrade
47 | */
48 | override fun onUpgrade(db: SQLiteDatabase, oldVersion: Int, newVersion: Int) {
49 | db.execSQL(SQL_DELETE_ENTRIES)
50 | }
51 |
52 | /**
53 | * @see SQLiteOpenHelper.onDowngrade
54 | */
55 | override fun onDowngrade(db: SQLiteDatabase, oldVersion: Int, newVersion: Int) {
56 | onUpgrade(db, oldVersion, newVersion)
57 | }
58 | }
--------------------------------------------------------------------------------
/app/src/main/java/me/argraur/notes/helpers/NoteActionManager.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2020 Arseniy Graur
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package me.argraur.notes.helpers
18 |
19 | import me.argraur.notes.entities.Note
20 | import me.argraur.notes.enums.Action
21 | import me.argraur.notes.interfaces.NoteActionObserverManager
22 | import me.argraur.notes.observers.NoteActionObserver
23 |
24 | /**
25 | * This class parses some of actions that can be done with Notes
26 | * Such as: ADD, REMOVE, SHOW
27 | */
28 | class NoteActionManager: NoteActionObserverManager {
29 | companion object {
30 | // Static instance of NoteActionManager
31 | private var INSTANCE: NoteActionManager? = null
32 |
33 | /**
34 | * Creates one and only instance of NoteActionManager
35 | */
36 | fun getInstance(): NoteActionManager {
37 | if (INSTANCE == null) {
38 | INSTANCE = NoteActionManager()
39 | }
40 | return INSTANCE!!
41 | }
42 | }
43 |
44 | private val mObservers = ArrayList()
45 | private var action = Action.NOTHING
46 | private var actionOn: Note? = null
47 |
48 | /**
49 | * Calls observers to process given action
50 | * @param action actual note Action
51 | * @param actionOn Note we are performing action on
52 | */
53 | fun call(action: Action, actionOn: Note) {
54 | this.action = action
55 | this.actionOn = actionOn
56 | if (action != Action.SHOW) {
57 | notifyObserver()
58 | }
59 | }
60 |
61 | /**
62 | * Calls observers to process given action on current note (actionOn)
63 | * @param action actual note Action
64 | */
65 | fun callOnCurrent(action: Action) {
66 | this.action = action
67 | if (actionOn != null) {
68 | notifyObserver()
69 | }
70 | }
71 |
72 | /**
73 | * Returns most recent called action
74 | * @return Recent action (action var)
75 | */
76 | fun currentAction(): Action {
77 | return action
78 | }
79 |
80 | /**
81 | * Returns most recent note we worked with
82 | * @return Note we performed action on (actionOn var)
83 | */
84 | fun current(): Note {
85 | return actionOn!!
86 | }
87 |
88 | /**
89 | * @see NoteActionObserverManager.registerObserver
90 | */
91 | override fun registerObserver(observer: NoteActionObserver) {
92 | if (!mObservers.contains(observer)) {
93 | mObservers.add(observer)
94 | }
95 | }
96 |
97 | /**
98 | * @see NoteActionObserverManager.removeObserver
99 | */
100 | override fun removeObserver(observer: NoteActionObserver) {
101 | if (mObservers.contains(observer)) {
102 | mObservers.remove(observer)
103 | }
104 | }
105 |
106 | /**
107 | * @see NoteActionObserverManager.notifyObserver
108 | */
109 | override fun notifyObserver() {
110 | for (observer in mObservers) {
111 | observer.onAction(actionOn!!, action)
112 | }
113 | }
114 | }
--------------------------------------------------------------------------------
/app/src/main/java/me/argraur/notes/interfaces/NoteActionObserverManager.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2020 Arseniy Graur
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package me.argraur.notes.interfaces
18 |
19 | import me.argraur.notes.observers.NoteActionObserver
20 |
21 | /**
22 | * Observer manager
23 | */
24 | interface NoteActionObserverManager {
25 | /**
26 | * Registers observer
27 | * @param observer NoteObserver type to-be-registered
28 | */
29 | fun registerObserver(observer: NoteActionObserver)
30 |
31 | /**
32 | * Removes observer
33 | * @param observer NoteObserver type to-be-removed
34 | */
35 | fun removeObserver(observer: NoteActionObserver)
36 |
37 | /**
38 | * Notifies all observers about update
39 | */
40 | fun notifyObserver()
41 | }
--------------------------------------------------------------------------------
/app/src/main/java/me/argraur/notes/interfaces/NoteObserverManager.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2020 Arseniy Graur
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package me.argraur.notes.interfaces
18 |
19 | import me.argraur.notes.observers.NoteObserver
20 |
21 | /**
22 | * Observer manager
23 | */
24 | interface NoteObserverManager {
25 | /**
26 | * Registers observer
27 | * @param observer NoteObserver type to-be-registered
28 | */
29 | fun registerObserver(observer: NoteObserver)
30 |
31 | /**
32 | * Removes observer
33 | * @param observer NoteObserver type to-be-removed
34 | */
35 | fun removeObserver(observer: NoteObserver)
36 |
37 | /**
38 | * Notifies all observers about update
39 | */
40 | fun notifyObserver()
41 | }
--------------------------------------------------------------------------------
/app/src/main/java/me/argraur/notes/observers/NoteActionObserver.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2020 Arseniy Graur
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package me.argraur.notes.observers
18 |
19 | import me.argraur.notes.entities.Note
20 | import me.argraur.notes.enums.Action
21 |
22 | /**
23 | * Observer interface for NoteActionManager
24 | */
25 | interface NoteActionObserver {
26 | /**
27 | * Called when action request was created
28 | * @param note Note we are doing action on
29 | * @param action Actual Action type
30 | */
31 | fun onAction(note: Note, action: Action)
32 | }
--------------------------------------------------------------------------------
/app/src/main/java/me/argraur/notes/observers/NoteObserver.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2020 Arseniy Graur
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package me.argraur.notes.observers
18 |
19 | import me.argraur.notes.entities.Note
20 |
21 | /**
22 | * Standard observer interface for Notes
23 | */
24 | interface NoteObserver {
25 | /**
26 | * Called on notes update
27 | * @param mNotes Array of notes
28 | */
29 | fun onNotesChanged(mNotes: Array?)
30 | }
--------------------------------------------------------------------------------
/app/src/main/java/me/argraur/notes/screens/NoteActivity.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2020 Arseniy Graur
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package me.argraur.notes.screens
18 |
19 | import android.content.Intent
20 | import android.os.Bundle
21 | import android.view.View
22 | import android.widget.TextView
23 | import androidx.appcompat.app.AppCompatActivity
24 | import com.google.android.material.card.MaterialCardView
25 | import me.argraur.notes.R
26 | import me.argraur.notes.enums.Action
27 | import me.argraur.notes.helpers.NoteActionManager
28 | import me.argraur.notes.screens.EditNoteActivity.Companion.IS_EDIT
29 |
30 | class NoteActivity : AppCompatActivity() {
31 | private val noteActionManager = NoteActionManager.getInstance()
32 | private val note = noteActionManager.current()
33 |
34 | /**
35 | * Gets Note contents from intent extras
36 | * And updates views according to those contents
37 | * @see AppCompatActivity.onCreate
38 | */
39 | override fun onCreate(savedInstanceState: Bundle?) {
40 | window.allowEnterTransitionOverlap = true
41 | super.onCreate(savedInstanceState)
42 | setContentView(R.layout.activity_note)
43 | findViewById(R.id.title_view).text = note.getTitle()
44 | findViewById(R.id.value_view).text = note.getValue()
45 | findViewById(R.id.note_cardview).setCardBackgroundColor(note.getColor())
46 | }
47 |
48 | /**
49 | * Called by edit button.
50 | * Starts EditNoteActivity with IS_EDIT set to true
51 | * And passes all contents of the Note object
52 | * @param view Button's view
53 | */
54 | fun edit(@Suppress("UNUSED_PARAMETER") view: View) {
55 | startActivity(Intent(this, EditNoteActivity::class.java).apply {
56 | putExtra(IS_EDIT, true)
57 | })
58 | finish()
59 | }
60 |
61 | /**
62 | * Called by delete button.
63 | * Deletes note using NOTE_TIME intent extra
64 | * @param view Button's view
65 | */
66 | fun delete(@Suppress("UNUSED_PARAMETER") view: View) {
67 | noteActionManager.callOnCurrent(Action.DELETE)
68 | super.onBackPressed()
69 | }
70 |
71 | override fun onRestart() {
72 | super.onRestart()
73 | finish()
74 | }
75 |
76 | /**
77 | * Called by back floating action button
78 | * Finishes NoteActivity lifecycle
79 | * @param view View where button lays
80 | */
81 | fun back(@Suppress("UNUSED_PARAMETER") view: View) = super.onBackPressed()
82 | }
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
24 |
28 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_outline_arrow_back_24.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_outline_close.xml:
--------------------------------------------------------------------------------
1 |
16 |
17 |
23 |
26 |
27 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_outline_create.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_outline_delete.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_outline_delete_forever.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_outline_done.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_outline_save.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/note_card.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
19 |
20 |
34 |
35 |
54 |
55 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/note_textview.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/argraur/Notes/ad1c52a8cb49945b057fb48efdaa6711bbde7dcc/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/argraur/Notes/ad1c52a8cb49945b057fb48efdaa6711bbde7dcc/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/argraur/Notes/ad1c52a8cb49945b057fb48efdaa6711bbde7dcc/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/argraur/Notes/ad1c52a8cb49945b057fb48efdaa6711bbde7dcc/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/argraur/Notes/ad1c52a8cb49945b057fb48efdaa6711bbde7dcc/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/argraur/Notes/ad1c52a8cb49945b057fb48efdaa6711bbde7dcc/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/argraur/Notes/ad1c52a8cb49945b057fb48efdaa6711bbde7dcc/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/argraur/Notes/ad1c52a8cb49945b057fb48efdaa6711bbde7dcc/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/argraur/Notes/ad1c52a8cb49945b057fb48efdaa6711bbde7dcc/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/argraur/Notes/ad1c52a8cb49945b057fb48efdaa6711bbde7dcc/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/transition/fade.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/values-af/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-ar/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-ca/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-cs/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-da/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-de/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-el/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-en/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-es/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-fi/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-fr/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-he/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-hu/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-it/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-ja/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ノート
4 | ここにはまだ何もない!
5 | タイトル
6 | ノート
7 | 新しいノート
8 | 編集
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-ko/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-night/bools.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | false
4 |
--------------------------------------------------------------------------------
/app/src/main/res/values-night/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #ff867c
4 | #ff867c
5 | #ff867c
6 | #121212
7 | #FFFFFF
8 | #212121
9 |
--------------------------------------------------------------------------------
/app/src/main/res/values-nl/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-no/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-pl/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-pt/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-ro/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-ru/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Заметки
4 | Здесь пока ничего нет!
5 | Название
6 | Заметка
7 | Новая заметка
8 | Изменение
9 | Заметка добавлена
10 | Заметка удалена
11 | Отменить
12 | Заметка восстановлена
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-sr/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-sv/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-tr/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-uk/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-vi/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values-zh/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Notes
4 | Nothing here yet!
5 | Title
6 | Note
7 | New note
8 | Edit note
9 | Note added
10 | Note deleted
11 | Undo
12 | Note restored
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/values/bools.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | true
4 |
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #ef5350
4 | #ef5350
5 | #ef5350
6 | #FFFFFF
7 | #121212
8 | #bcbcbc
9 | #F28B82
10 | #CCFF90
11 | #CBF0F8
12 | #FFFFFF
13 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Notes
3 | Nothing here yet!
4 | Title
5 | Note
6 | New note
7 | Edit note
8 | Note added
9 | Note deleted
10 | Undo
11 | Note restored
12 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/backup.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 | buildscript {
3 | ext.kotlin_version = "1.3.72"
4 | repositories {
5 | google()
6 | jcenter()
7 | }
8 | dependencies {
9 | classpath "com.android.tools.build:gradle:4.0.0-rc01"
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.10.1"
12 | // NOTE: Do not place your application dependencies here; they belong
13 | // in the individual module build.gradle files
14 | }
15 | }
16 |
17 | allprojects {
18 | repositories {
19 | google()
20 | jcenter()
21 | }
22 | }
23 |
24 | task clean(type: Delete) {
25 | delete rootProject.buildDir
26 | }
27 |
--------------------------------------------------------------------------------
/crowdin.yml:
--------------------------------------------------------------------------------
1 | files:
2 | - source: /app/src/main/res/values/strings.xml
3 | translation: /app/src/main/res/values-%two_letters_code%/strings.xml
4 |
--------------------------------------------------------------------------------
/docs/alltypes/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | alltypes - app
5 |
6 |
7 |
8 | All Types
9 |
10 |
11 |
12 |
13 | Actions you can perform on Notes
14 |
15 |
16 |
17 | Creates NoteManager instance
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 | MainActivity. Shows previews for already saved notes
31 |
32 |
33 |
34 | Note entity
35 |
36 |
37 |
38 | This class parses some of actions that can be done with Notes
39 | Such as: ADD, REMOVE, SHOW
40 |
41 |
42 |
43 | Observer interface for NoteActionManager
44 |
45 |
46 |
47 | Observer manager
48 |
49 |
50 |
51 |
52 |
53 |
54 | Manages Notes and NoteObservers
55 |
56 |
57 |
58 | Standard observer interface for Notes
59 |
60 |
61 |
62 | Observer manager
63 |
64 |
65 |
66 | RecyclerView adapter for notes
67 |
68 |
69 |
70 |
71 |
72 |
--------------------------------------------------------------------------------
/docs/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | app
5 |
6 |
7 |
8 | app
9 |
10 | Packages
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 | Index
72 | All Types
73 |
74 |
75 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.adapters/-notes-adapter/-init-.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NotesAdapter. - app
5 |
6 |
7 |
8 | app / me.argraur.notes.adapters / NotesAdapter / <init>
9 |
10 | <init>
11 |
12 | NotesAdapter ( notes : Array < Note > , activity : Activity )
13 | RecyclerView adapter for notes
14 | Parameters
15 |
16 | notes
- Notes that should be added into view
17 |
18 | activity
- Activity where RecyclerView exists
19 |
20 |
21 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.adapters/-notes-adapter/-notes-holder/-init-.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NotesAdapter.NotesHolder. - app
5 |
6 |
7 |
8 | app / me.argraur.notes.adapters / NotesAdapter / NotesHolder / <init>
9 |
10 | <init>
11 |
12 | NotesHolder ( cardView : MaterialCardView )
13 | RecyclerView holder for notes's cards
14 | Parameters
15 |
16 | cardView
- Card to be added into view holder
17 |
18 |
19 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.adapters/-notes-adapter/-notes-holder/card-view.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NotesAdapter.NotesHolder.cardView - app
5 |
6 |
7 |
8 | app / me.argraur.notes.adapters / NotesAdapter / NotesHolder / cardView
9 |
10 | cardView
11 |
12 | val cardView : MaterialCardView
13 | Card to be added into view holder
14 |
15 |
16 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.adapters/-notes-adapter/-notes-holder/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NotesAdapter.NotesHolder - app
5 |
6 |
7 |
8 | app / me.argraur.notes.adapters / NotesAdapter / NotesHolder
9 |
10 | NotesHolder
11 | class NotesHolder : ViewHolder
12 | RecyclerView holder for notes's cards
13 | Parameters
14 |
15 | cardView
- Card to be added into view holder
16 | Constructors
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | RecyclerView holder for notes's cards
25 | NotesHolder ( cardView : MaterialCardView )
26 |
27 |
28 |
29 | Properties
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 | Card to be added into view holder
38 | val cardView : MaterialCardView
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.adapters/-notes-adapter/get-item-count.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NotesAdapter.getItemCount - app
5 |
6 |
7 |
8 | app / me.argraur.notes.adapters / NotesAdapter / getItemCount
9 |
10 | getItemCount
11 |
12 | fun getItemCount ( ) : Int
13 | See Also
14 |
RecyclerView.Adapter.getItemCount
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.adapters/-notes-adapter/on-bind-view-holder.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NotesAdapter.onBindViewHolder - app
5 |
6 |
7 |
8 | app / me.argraur.notes.adapters / NotesAdapter / onBindViewHolder
9 |
10 | onBindViewHolder
11 |
12 | fun onBindViewHolder ( holder : NotesHolder , position : Int ) : Unit
13 | Adds data into cards based on given note's position
14 | See Also
15 |
RecyclerView.Adapter.onBindViewHolder
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.adapters/-notes-adapter/on-create-view-holder.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NotesAdapter.onCreateViewHolder - app
5 |
6 |
7 |
8 | app / me.argraur.notes.adapters / NotesAdapter / onCreateViewHolder
9 |
10 | onCreateViewHolder
11 |
12 | fun onCreateViewHolder ( parent : ViewGroup , viewType : Int ) : NotesHolder
13 | See Also
14 |
RecyclerView.Adapter.onCreateViewHolder
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.adapters/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | me.argraur.notes.adapters - app
5 |
6 |
7 |
8 | app / me.argraur.notes.adapters
9 |
10 | Package me.argraur.notes.adapters
11 | Types
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | RecyclerView adapter for notes
20 | class NotesAdapter : Adapter < NotesHolder >
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.entities/-note/-entry/-c-o-l-u-m-n_-n-a-m-e_-c-o-l-o-r.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Note.Entry.COLUMN_NAME_COLOR - app
5 |
6 |
7 |
8 | app / me.argraur.notes.entities / Note / Entry / COLUMN_NAME_COLOR
9 |
10 | COLUMN_NAME_COLOR
11 |
12 | const val COLUMN_NAME_COLOR : String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.entities/-note/-entry/-c-o-l-u-m-n_-n-a-m-e_-t-i-m-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Note.Entry.COLUMN_NAME_TIME - app
5 |
6 |
7 |
8 | app / me.argraur.notes.entities / Note / Entry / COLUMN_NAME_TIME
9 |
10 | COLUMN_NAME_TIME
11 |
12 | const val COLUMN_NAME_TIME : String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.entities/-note/-entry/-c-o-l-u-m-n_-n-a-m-e_-t-i-t-l-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Note.Entry.COLUMN_NAME_TITLE - app
5 |
6 |
7 |
8 | app / me.argraur.notes.entities / Note / Entry / COLUMN_NAME_TITLE
9 |
10 | COLUMN_NAME_TITLE
11 |
12 | const val COLUMN_NAME_TITLE : String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.entities/-note/-entry/-c-o-l-u-m-n_-n-a-m-e_-v-a-l-u-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Note.Entry.COLUMN_NAME_VALUE - app
5 |
6 |
7 |
8 | app / me.argraur.notes.entities / Note / Entry / COLUMN_NAME_VALUE
9 |
10 | COLUMN_NAME_VALUE
11 |
12 | const val COLUMN_NAME_VALUE : String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.entities/-note/-entry/-t-a-b-l-e_-n-a-m-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Note.Entry.TABLE_NAME - app
5 |
6 |
7 |
8 | app / me.argraur.notes.entities / Note / Entry / TABLE_NAME
9 |
10 | TABLE_NAME
11 |
12 | const val TABLE_NAME : String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.entities/-note/-entry/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Note.Entry - app
5 |
6 |
7 |
8 | app / me.argraur.notes.entities / Note / Entry
9 |
10 | Entry
11 | object Entry : BaseColumns
12 | Used by DatabaseHelper and NoteManager
13 | Properties
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | const val COLUMN_NAME_COLOR : String
22 |
23 |
24 |
25 |
26 |
27 |
28 | const val COLUMN_NAME_TIME : String
29 |
30 |
31 |
32 |
33 |
34 |
35 | const val COLUMN_NAME_TITLE : String
36 |
37 |
38 |
39 |
40 |
41 |
42 | const val COLUMN_NAME_VALUE : String
43 |
44 |
45 |
46 |
47 |
48 |
49 | const val TABLE_NAME : String
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.entities/-note/get-color.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Note.getColor - app
5 |
6 |
7 |
8 | app / me.argraur.notes.entities / Note / getColor
9 |
10 | getColor
11 |
12 | fun getColor ( ) : Int
13 | Return
14 | Note color in int format
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.entities/-note/get-time.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Note.getTime - app
5 |
6 |
7 |
8 | app / me.argraur.notes.entities / Note / getTime
9 |
10 | getTime
11 |
12 | fun getTime ( ) : Long
13 | Return
14 | Note creation time in Long format
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.entities/-note/get-title.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Note.getTitle - app
5 |
6 |
7 |
8 | app / me.argraur.notes.entities / Note / getTitle
9 |
10 | getTitle
11 |
12 | fun getTitle ( ) : String
13 | Return
14 | Note title
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.entities/-note/get-value.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Note.getValue - app
5 |
6 |
7 |
8 | app / me.argraur.notes.entities / Note / getValue
9 |
10 | getValue
11 |
12 | fun getValue ( ) : String
13 | Return
14 | Note content
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.entities/-note/set-color.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Note.setColor - app
5 |
6 |
7 |
8 | app / me.argraur.notes.entities / Note / setColor
9 |
10 | setColor
11 |
12 | fun setColor ( color : Int ) : Note
13 | Sets color and returns Note object
14 | Parameters
15 |
16 | color
-
17 | Return
18 | Object of Note type
19 |
20 |
21 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.entities/-note/set-time.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Note.setTime - app
5 |
6 |
7 |
8 | app / me.argraur.notes.entities / Note / setTime
9 |
10 | setTime
11 |
12 | fun setTime ( time : Long ) : Note
13 | Sets time and returns Note object
14 | Parameters
15 |
16 | time
-
17 | Return
18 | Object of Note type
19 |
20 |
21 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.entities/-note/set-title.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Note.setTitle - app
5 |
6 |
7 |
8 | app / me.argraur.notes.entities / Note / setTitle
9 |
10 | setTitle
11 |
12 | fun setTitle ( title : String ) : Note
13 | Sets title and returns Note object
14 | Parameters
15 |
16 | title
-
17 | Return
18 | Object of Note type
19 |
20 |
21 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.entities/-note/set-value.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Note.setValue - app
5 |
6 |
7 |
8 | app / me.argraur.notes.entities / Note / setValue
9 |
10 | setValue
11 |
12 | fun setValue ( value : String ) : Note
13 | Sets value and returns Note object
14 | Parameters
15 |
16 | value
-
17 | Return
18 | Object of Note type
19 |
20 |
21 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.entities/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | me.argraur.notes.entities - app
5 |
6 |
7 |
8 | app / me.argraur.notes.entities
9 |
10 | Package me.argraur.notes.entities
11 | Types
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | Note entity
20 | class Note
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.enums/-action/-a-d-d.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Action.ADD - app
5 |
6 |
7 |
8 | app / me.argraur.notes.enums / Action / ADD
9 |
10 | ADD
11 |
12 | ADD
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.enums/-action/-d-e-l-e-t-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Action.DELETE - app
5 |
6 |
7 |
8 | app / me.argraur.notes.enums / Action / DELETE
9 |
10 | DELETE
11 |
12 | DELETE
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.enums/-action/-n-o-t-h-i-n-g.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Action.NOTHING - app
5 |
6 |
7 |
8 | app / me.argraur.notes.enums / Action / NOTHING
9 |
10 | NOTHING
11 |
12 | NOTHING
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.enums/-action/-s-h-o-w.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Action.SHOW - app
5 |
6 |
7 |
8 | app / me.argraur.notes.enums / Action / SHOW
9 |
10 | SHOW
11 |
12 | SHOW
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.enums/-action/-u-n-d-o_-d-e-l-e-t-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Action.UNDO_DELETE - app
5 |
6 |
7 |
8 | app / me.argraur.notes.enums / Action / UNDO_DELETE
9 |
10 | UNDO_DELETE
11 |
12 | UNDO_DELETE
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.enums/-action/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Action - app
5 |
6 |
7 |
8 | app / me.argraur.notes.enums / Action
9 |
10 | Action
11 | enum class Action
12 | Actions you can perform on Notes
13 | Enum Values
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.enums/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | me.argraur.notes.enums - app
5 |
6 |
7 |
8 | app / me.argraur.notes.enums
9 |
10 | Package me.argraur.notes.enums
11 | Types
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | Actions you can perform on Notes
20 | enum class Action
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-backup-agent/-init-.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | BackupAgent. - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / BackupAgent / <init>
9 |
10 | <init>
11 |
12 | BackupAgent ( )
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-backup-agent/on-backup.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | BackupAgent.onBackup - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / BackupAgent / onBackup
9 |
10 | onBackup
11 |
12 | fun onBackup ( oldState : ParcelFileDescriptor ? , data : BackupDataOutput ? , newState : ParcelFileDescriptor ? ) : Unit
13 | Send log message when backup started
14 | See Also
15 |
BackupAgent.onBackup
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-backup-agent/on-restore-finished.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | BackupAgent.onRestoreFinished - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / BackupAgent / onRestoreFinished
9 |
10 | onRestoreFinished
11 |
12 | fun onRestoreFinished ( ) : Unit
13 | Updates notes when restore finished.
14 | See Also
15 |
BackupAgent.onRestoreFinished
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-backup-agent/on-restore.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | BackupAgent.onRestore - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / BackupAgent / onRestore
9 |
10 | onRestore
11 |
12 | fun onRestore ( data : BackupDataInput ? , appVersionCode : Int , newState : ParcelFileDescriptor ? ) : Unit
13 | Send log message when restore finished
14 | See Also
15 |
BackupAgent.onRestore
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-database-helper/-d-a-t-a-b-a-s-e_-n-a-m-e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | DatabaseHelper.DATABASE_NAME - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / DatabaseHelper / DATABASE_NAME
9 |
10 | DATABASE_NAME
11 |
12 | const val DATABASE_NAME : String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-database-helper/-d-a-t-a-b-a-s-e_-v-e-r-s-i-o-n.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | DatabaseHelper.DATABASE_VERSION - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / DatabaseHelper / DATABASE_VERSION
9 |
10 | DATABASE_VERSION
11 |
12 | const val DATABASE_VERSION : Int
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-database-helper/-init-.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | DatabaseHelper. - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / DatabaseHelper / <init>
9 |
10 | <init>
11 |
12 | DatabaseHelper ( context : Context )
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-database-helper/-s-q-l_-c-r-e-a-t-e_-e-n-t-r-i-e-s.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | DatabaseHelper.SQL_CREATE_ENTRIES - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / DatabaseHelper / SQL_CREATE_ENTRIES
9 |
10 | SQL_CREATE_ENTRIES
11 |
12 | const val SQL_CREATE_ENTRIES : String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-database-helper/-s-q-l_-d-e-l-e-t-e_-e-n-t-r-i-e-s.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | DatabaseHelper.SQL_DELETE_ENTRIES - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / DatabaseHelper / SQL_DELETE_ENTRIES
9 |
10 | SQL_DELETE_ENTRIES
11 |
12 | const val SQL_DELETE_ENTRIES : String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-database-helper/on-create.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | DatabaseHelper.onCreate - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / DatabaseHelper / onCreate
9 |
10 | onCreate
11 |
12 | fun onCreate ( db : SQLiteDatabase ) : Unit
13 | See Also
14 |
SQLiteOpenHelper.onCreate
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-database-helper/on-downgrade.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | DatabaseHelper.onDowngrade - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / DatabaseHelper / onDowngrade
9 |
10 | onDowngrade
11 |
12 | fun onDowngrade ( db : SQLiteDatabase , oldVersion : Int , newVersion : Int ) : Unit
13 | See Also
14 |
SQLiteOpenHelper.onDowngrade
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-database-helper/on-upgrade.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | DatabaseHelper.onUpgrade - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / DatabaseHelper / onUpgrade
9 |
10 | onUpgrade
11 |
12 | fun onUpgrade ( db : SQLiteDatabase , oldVersion : Int , newVersion : Int ) : Unit
13 | See Also
14 |
SQLiteOpenHelper.onUpgrade
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-note-action-manager/-init-.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteActionManager. - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / NoteActionManager / <init>
9 |
10 | <init>
11 |
12 | NoteActionManager ( )
13 | This class parses some of actions that can be done with Notes
14 | Such as: ADD, REMOVE, SHOW
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-note-action-manager/call-on-current.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteActionManager.callOnCurrent - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / NoteActionManager / callOnCurrent
9 |
10 | callOnCurrent
11 |
12 | fun callOnCurrent ( action : Action ) : Unit
13 | Calls observers to process given action on current note (actionOn)
14 | Parameters
15 |
16 | action
- actual note Action
17 |
18 |
19 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-note-action-manager/call.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteActionManager.call - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / NoteActionManager / call
9 |
10 | call
11 |
12 | fun call ( action : Action , actionOn : Note ) : Unit
13 | Calls observers to process given action
14 | Parameters
15 |
16 | action
- actual note Action
17 |
18 | actionOn
- Note we are performing action on
19 |
20 |
21 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-note-action-manager/current-action.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteActionManager.currentAction - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / NoteActionManager / currentAction
9 |
10 | currentAction
11 |
12 | fun currentAction ( ) : Action
13 | Returns most recent called action
14 | Return
15 | Recent action (action var)
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-note-action-manager/current.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteActionManager.current - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / NoteActionManager / current
9 |
10 | current
11 |
12 | fun current ( ) : Note
13 | Returns most recent note we worked with
14 | Return
15 | Note we performed action on (actionOn var)
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-note-action-manager/get-instance.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteActionManager.getInstance - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / NoteActionManager / getInstance
9 |
10 | getInstance
11 |
12 | fun getInstance ( ) : NoteActionManager
13 | Creates one and only instance of NoteActionManager
14 |
15 |
16 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-note-action-manager/notify-observer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteActionManager.notifyObserver - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / NoteActionManager / notifyObserver
9 |
10 | notifyObserver
11 |
12 | fun notifyObserver ( ) : Unit
13 | See Also
14 |
NoteActionObserverManager.notifyObserver
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-note-action-manager/register-observer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteActionManager.registerObserver - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / NoteActionManager / registerObserver
9 |
10 | registerObserver
11 |
12 | fun registerObserver ( observer : NoteActionObserver ) : Unit
13 | See Also
14 |
NoteActionObserverManager.registerObserver
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-note-action-manager/remove-observer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteActionManager.removeObserver - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / NoteActionManager / removeObserver
9 |
10 | removeObserver
11 |
12 | fun removeObserver ( observer : NoteActionObserver ) : Unit
13 | See Also
14 |
NoteActionObserverManager.removeObserver
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-note-manager/-init-.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteManager. - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / NoteManager / <init>
9 |
10 | <init>
11 |
12 | NoteManager ( context : Context )
13 | Creates empty NoteManager object, updates notes and notifies observers
14 | Constructor
15 | Creates empty NoteManager object, updates notes and notifies observers
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-note-manager/get-instance.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteManager.getInstance - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / NoteManager / getInstance
9 |
10 | getInstance
11 |
12 | fun getInstance ( context : Context ? ) : NoteManager
13 | Creates one and only instance of NoteManager
14 | Parameters
15 |
16 | context
- Application context. Can be null if not called from me.argraur.notes.App
17 |
18 |
19 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-note-manager/get-notes.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteManager.getNotes - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / NoteManager / getNotes
9 |
10 | getNotes
11 |
12 | fun getNotes ( ) : Unit
13 | Retrieves all notes from database
14 | Creates array of Note types based on title, value, color and creation time
15 | If current notes array doesn't match new one, update current and notify observers
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-note-manager/notify-observer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteManager.notifyObserver - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / NoteManager / notifyObserver
9 |
10 | notifyObserver
11 |
12 | fun notifyObserver ( ) : Unit
13 | See Also
14 |
NoteObserverManager.notifyObserver
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-note-manager/on-action.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteManager.onAction - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / NoteManager / onAction
9 |
10 | onAction
11 |
12 | fun onAction ( note : Note , action : Action ) : Unit
13 | Called when action request was created
14 | Parameters
15 |
16 | note
- Note we are doing action on
17 |
18 | action
- Actual Action type
19 |
20 |
21 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-note-manager/register-observer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteManager.registerObserver - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / NoteManager / registerObserver
9 |
10 | registerObserver
11 |
12 | fun registerObserver ( observer : NoteObserver ) : Unit
13 | See Also
14 |
NoteObserverManager.registerObserver
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/-note-manager/remove-observer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteManager.removeObserver - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers / NoteManager / removeObserver
9 |
10 | removeObserver
11 |
12 | fun removeObserver ( observer : NoteObserver ) : Unit
13 | See Also
14 |
NoteObserverManager.removeObserver
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.helpers/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | me.argraur.notes.helpers - app
5 |
6 |
7 |
8 | app / me.argraur.notes.helpers
9 |
10 | Package me.argraur.notes.helpers
11 | Types
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | class BackupAgent : BackupAgent
20 |
21 |
22 |
23 |
24 |
25 |
26 | class DatabaseHelper : SQLiteOpenHelper
27 |
28 |
29 |
30 |
31 |
32 |
33 | This class parses some of actions that can be done with Notes
34 | Such as: ADD, REMOVE, SHOW
35 | class NoteActionManager : NoteActionObserverManager
36 |
37 |
38 |
39 |
40 |
41 |
42 | Manages Notes and NoteObservers
43 | class NoteManager : NoteObserverManager , NoteActionObserver
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.interfaces/-note-action-observer-manager/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteActionObserverManager - app
5 |
6 |
7 |
8 | app / me.argraur.notes.interfaces / NoteActionObserverManager
9 |
10 | NoteActionObserverManager
11 | interface NoteActionObserverManager
12 | Observer manager
13 | Functions
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | Notifies all observers about update
22 | abstract fun notifyObserver ( ) : Unit
23 |
24 |
25 |
26 |
27 |
28 |
29 | Registers observer
30 | abstract fun registerObserver ( observer : NoteActionObserver ) : Unit
31 |
32 |
33 |
34 |
35 |
36 |
37 | Removes observer
38 | abstract fun removeObserver ( observer : NoteActionObserver ) : Unit
39 |
40 |
41 |
42 | Inheritors
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 | This class parses some of actions that can be done with Notes
51 | Such as: ADD, REMOVE, SHOW
52 | class NoteActionManager : NoteActionObserverManager
53 |
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.interfaces/-note-action-observer-manager/notify-observer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteActionObserverManager.notifyObserver - app
5 |
6 |
7 |
8 | app / me.argraur.notes.interfaces / NoteActionObserverManager / notifyObserver
9 |
10 | notifyObserver
11 |
12 | abstract fun notifyObserver ( ) : Unit
13 | Notifies all observers about update
14 |
15 |
16 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.interfaces/-note-action-observer-manager/register-observer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteActionObserverManager.registerObserver - app
5 |
6 |
7 |
8 | app / me.argraur.notes.interfaces / NoteActionObserverManager / registerObserver
9 |
10 | registerObserver
11 |
12 | abstract fun registerObserver ( observer : NoteActionObserver ) : Unit
13 | Registers observer
14 | Parameters
15 |
16 | observer
- NoteObserver type to-be-registered
17 |
18 |
19 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.interfaces/-note-action-observer-manager/remove-observer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteActionObserverManager.removeObserver - app
5 |
6 |
7 |
8 | app / me.argraur.notes.interfaces / NoteActionObserverManager / removeObserver
9 |
10 | removeObserver
11 |
12 | abstract fun removeObserver ( observer : NoteActionObserver ) : Unit
13 | Removes observer
14 | Parameters
15 |
16 | observer
- NoteObserver type to-be-removed
17 |
18 |
19 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.interfaces/-note-observer-manager/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteObserverManager - app
5 |
6 |
7 |
8 | app / me.argraur.notes.interfaces / NoteObserverManager
9 |
10 | NoteObserverManager
11 | interface NoteObserverManager
12 | Observer manager
13 | Functions
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | Notifies all observers about update
22 | abstract fun notifyObserver ( ) : Unit
23 |
24 |
25 |
26 |
27 |
28 |
29 | Registers observer
30 | abstract fun registerObserver ( observer : NoteObserver ) : Unit
31 |
32 |
33 |
34 |
35 |
36 |
37 | Removes observer
38 | abstract fun removeObserver ( observer : NoteObserver ) : Unit
39 |
40 |
41 |
42 | Inheritors
43 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.interfaces/-note-observer-manager/notify-observer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteObserverManager.notifyObserver - app
5 |
6 |
7 |
8 | app / me.argraur.notes.interfaces / NoteObserverManager / notifyObserver
9 |
10 | notifyObserver
11 |
12 | abstract fun notifyObserver ( ) : Unit
13 | Notifies all observers about update
14 |
15 |
16 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.interfaces/-note-observer-manager/register-observer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteObserverManager.registerObserver - app
5 |
6 |
7 |
8 | app / me.argraur.notes.interfaces / NoteObserverManager / registerObserver
9 |
10 | registerObserver
11 |
12 | abstract fun registerObserver ( observer : NoteObserver ) : Unit
13 | Registers observer
14 | Parameters
15 |
16 | observer
- NoteObserver type to-be-registered
17 |
18 |
19 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.interfaces/-note-observer-manager/remove-observer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteObserverManager.removeObserver - app
5 |
6 |
7 |
8 | app / me.argraur.notes.interfaces / NoteObserverManager / removeObserver
9 |
10 | removeObserver
11 |
12 | abstract fun removeObserver ( observer : NoteObserver ) : Unit
13 | Removes observer
14 | Parameters
15 |
16 | observer
- NoteObserver type to-be-removed
17 |
18 |
19 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.interfaces/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | me.argraur.notes.interfaces - app
5 |
6 |
7 |
8 | app / me.argraur.notes.interfaces
9 |
10 | Package me.argraur.notes.interfaces
11 | Types
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | Observer manager
20 | interface NoteActionObserverManager
21 |
22 |
23 |
24 |
25 |
26 |
27 | Observer manager
28 | interface NoteObserverManager
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.observers/-note-action-observer/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteActionObserver - app
5 |
6 |
7 |
8 | app / me.argraur.notes.observers / NoteActionObserver
9 |
10 | NoteActionObserver
11 | interface NoteActionObserver
12 | Observer interface for NoteActionManager
13 | Functions
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | Called when action request was created
22 | abstract fun onAction ( note : Note , action : Action ) : Unit
23 |
24 |
25 |
26 | Inheritors
27 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.observers/-note-action-observer/on-action.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteActionObserver.onAction - app
5 |
6 |
7 |
8 | app / me.argraur.notes.observers / NoteActionObserver / onAction
9 |
10 | onAction
11 |
12 | abstract fun onAction ( note : Note , action : Action ) : Unit
13 | Called when action request was created
14 | Parameters
15 |
16 | note
- Note we are doing action on
17 |
18 | action
- Actual Action type
19 |
20 |
21 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.observers/-note-observer/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteObserver - app
5 |
6 |
7 |
8 | app / me.argraur.notes.observers / NoteObserver
9 |
10 | NoteObserver
11 | interface NoteObserver
12 | Standard observer interface for Notes
13 | Functions
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | Called on notes update
22 | abstract fun onNotesChanged ( mNotes : Array < Note > ? ) : Unit
23 |
24 |
25 |
26 | Inheritors
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | MainActivity. Shows previews for already saved notes
35 | class MainActivity : AppCompatActivity , NoteObserver
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.observers/-note-observer/on-notes-changed.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteObserver.onNotesChanged - app
5 |
6 |
7 |
8 | app / me.argraur.notes.observers / NoteObserver / onNotesChanged
9 |
10 | onNotesChanged
11 |
12 | abstract fun onNotesChanged ( mNotes : Array < Note > ? ) : Unit
13 | Called on notes update
14 | Parameters
15 |
16 | mNotes
- Array of notes
17 |
18 |
19 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.observers/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | me.argraur.notes.observers - app
5 |
6 |
7 |
8 | app / me.argraur.notes.observers
9 |
10 | Package me.argraur.notes.observers
11 | Types
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | Observer interface for NoteActionManager
20 | interface NoteActionObserver
21 |
22 |
23 |
24 |
25 |
26 |
27 | Standard observer interface for Notes
28 | interface NoteObserver
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.screens/-edit-note-activity/-i-s_-e-d-i-t.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EditNoteActivity.IS_EDIT - app
5 |
6 |
7 |
8 | app / me.argraur.notes.screens / EditNoteActivity / IS_EDIT
9 |
10 | IS_EDIT
11 |
12 | const val IS_EDIT : String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.screens/-edit-note-activity/-init-.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EditNoteActivity. - app
5 |
6 |
7 |
8 | app / me.argraur.notes.screens / EditNoteActivity / <init>
9 |
10 | <init>
11 |
12 | EditNoteActivity ( )
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.screens/-edit-note-activity/back.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EditNoteActivity.back - app
5 |
6 |
7 |
8 | app / me.argraur.notes.screens / EditNoteActivity / back
9 |
10 | back
11 |
12 | fun back ( view : View ) : Unit
13 | Called by back floating action button
14 | Finishes EditNoteActivity lifecycle
15 | Parameters
16 |
17 | view
- View where button lays
18 |
19 |
20 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.screens/-edit-note-activity/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EditNoteActivity - app
5 |
6 |
7 |
8 | app / me.argraur.notes.screens / EditNoteActivity
9 |
10 | EditNoteActivity
11 | class EditNoteActivity : AppCompatActivity
12 | Constructors
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | EditNoteActivity ( )
21 |
22 |
23 |
24 | Functions
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | Called by back floating action button
33 | Finishes EditNoteActivity lifecycle
34 | fun back ( view : View ) : Unit
35 |
36 |
37 |
38 |
39 |
40 |
41 | fun onCreate ( savedInstanceState : Bundle ? ) : Unit
42 |
43 |
44 |
45 |
46 |
47 |
48 | Called by color FABs
49 | Sets note color and sets check-mark drawable on button
50 | fun setColor ( view : View ) : Unit
51 |
52 |
53 |
54 | Companion Object Properties
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 | const val IS_EDIT : String
63 |
64 |
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.screens/-edit-note-activity/on-create.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EditNoteActivity.onCreate - app
5 |
6 |
7 |
8 | app / me.argraur.notes.screens / EditNoteActivity / onCreate
9 |
10 | onCreate
11 |
12 | protected fun onCreate ( savedInstanceState : Bundle ? ) : Unit
13 | See Also
14 |
AppCompatActivity.onCreate
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.screens/-edit-note-activity/set-color.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EditNoteActivity.setColor - app
5 |
6 |
7 |
8 | app / me.argraur.notes.screens / EditNoteActivity / setColor
9 |
10 | setColor
11 |
12 | fun setColor ( view : View ) : Unit
13 | Called by color FABs
14 | Sets note color and sets check-mark drawable on button
15 | Parameters
16 |
17 | view
- View where button lays
18 |
19 |
20 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.screens/-note-activity/-init-.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteActivity. - app
5 |
6 |
7 |
8 | app / me.argraur.notes.screens / NoteActivity / <init>
9 |
10 | <init>
11 |
12 | NoteActivity ( )
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.screens/-note-activity/back.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteActivity.back - app
5 |
6 |
7 |
8 | app / me.argraur.notes.screens / NoteActivity / back
9 |
10 | back
11 |
12 | fun back ( view : View ) : Unit
13 | Called by back floating action button
14 | Finishes NoteActivity lifecycle
15 | Parameters
16 |
17 | view
- View where button lays
18 |
19 |
20 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.screens/-note-activity/delete.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteActivity.delete - app
5 |
6 |
7 |
8 | app / me.argraur.notes.screens / NoteActivity / delete
9 |
10 | delete
11 |
12 | fun delete ( view : View ) : Unit
13 | Called by delete button.
14 | Deletes note using NOTE_TIME intent extra
15 | Parameters
16 |
17 | view
- Button's view
18 |
19 |
20 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.screens/-note-activity/edit.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteActivity.edit - app
5 |
6 |
7 |
8 | app / me.argraur.notes.screens / NoteActivity / edit
9 |
10 | edit
11 |
12 | fun edit ( view : View ) : Unit
13 | Called by edit button.
14 | Starts EditNoteActivity with IS_EDIT set to true
15 | And passes all contents of the Note object
16 | Parameters
17 |
18 | view
- Button's view
19 |
20 |
21 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.screens/-note-activity/on-create.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteActivity.onCreate - app
5 |
6 |
7 |
8 | app / me.argraur.notes.screens / NoteActivity / onCreate
9 |
10 | onCreate
11 |
12 | protected fun onCreate ( savedInstanceState : Bundle ? ) : Unit
13 | Gets Note contents from intent extras
14 | And updates views according to those contents
15 | See Also
16 |
AppCompatActivity.onCreate
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.screens/-note-activity/on-restart.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | NoteActivity.onRestart - app
5 |
6 |
7 |
8 | app / me.argraur.notes.screens / NoteActivity / onRestart
9 |
10 | onRestart
11 |
12 | protected fun onRestart ( ) : Unit
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes.screens/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | me.argraur.notes.screens - app
5 |
6 |
7 |
8 | app / me.argraur.notes.screens
9 |
10 | Package me.argraur.notes.screens
11 | Types
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | class EditNoteActivity : AppCompatActivity
20 |
21 |
22 |
23 |
24 |
25 |
26 | class NoteActivity : AppCompatActivity
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes/-app/-init-.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | App. - app
5 |
6 |
7 |
8 | app / me.argraur.notes / App / <init>
9 |
10 | <init>
11 |
12 | App ( )
13 | Creates NoteManager instance
14 |
15 |
16 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes/-app/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | App - app
5 |
6 |
7 |
8 | app / me.argraur.notes / App
9 |
10 | App
11 | class App : Application
12 | Creates NoteManager instance
13 | Constructors
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | Creates NoteManager instance
22 | App ( )
23 |
24 |
25 |
26 | Functions
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | fun onCreate ( ) : Unit
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes/-app/on-create.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | App.onCreate - app
5 |
6 |
7 |
8 | app / me.argraur.notes / App / onCreate
9 |
10 | onCreate
11 |
12 | fun onCreate ( ) : Unit
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes/-main-activity/-init-.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | MainActivity. - app
5 |
6 |
7 |
8 | app / me.argraur.notes / MainActivity / <init>
9 |
10 | <init>
11 |
12 | MainActivity ( )
13 | MainActivity. Shows previews for already saved notes
14 |
15 |
16 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes/-main-activity/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | MainActivity - app
5 |
6 |
7 |
8 | app / me.argraur.notes / MainActivity
9 |
10 | MainActivity
11 | class MainActivity : AppCompatActivity , NoteObserver
12 | MainActivity. Shows previews for already saved notes
13 | Constructors
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | MainActivity. Shows previews for already saved notes
22 | MainActivity ( )
23 |
24 |
25 |
26 | Functions
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | Creates Notes view and defines addNote fab action
35 | fun onCreate ( savedInstanceState : Bundle ? ) : Unit
36 |
37 |
38 |
39 |
40 |
41 |
42 | Called when mNotes of NoteManager was changed
43 | Creates and updates RecyclerView
44 | fun onNotesChanged ( mNotes : Array < Note > ? ) : Unit
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes/-main-activity/on-create.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | MainActivity.onCreate - app
5 |
6 |
7 |
8 | app / me.argraur.notes / MainActivity / onCreate
9 |
10 | onCreate
11 |
12 | protected fun onCreate ( savedInstanceState : Bundle ? ) : Unit
13 | Creates Notes view and defines addNote fab action
14 | Parameters
15 |
16 | savedInstanceState
-
17 |
18 |
19 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes/-main-activity/on-notes-changed.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | MainActivity.onNotesChanged - app
5 |
6 |
7 |
8 | app / me.argraur.notes / MainActivity / onNotesChanged
9 |
10 | onNotesChanged
11 |
12 | fun onNotesChanged ( mNotes : Array < Note > ? ) : Unit
13 | Called when mNotes of NoteManager was changed
14 | Creates and updates RecyclerView
15 | See Also
16 |
NoteObserver
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/docs/me.argraur.notes/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | me.argraur.notes - app
5 |
6 |
7 |
8 | app / me.argraur.notes
9 |
10 | Package me.argraur.notes
11 | Types
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | Creates NoteManager instance
20 | class App : Application
21 |
22 |
23 |
24 |
25 |
26 |
27 | MainActivity. Shows previews for already saved notes
28 | class MainActivity : AppCompatActivity , NoteObserver
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/docs/package-list:
--------------------------------------------------------------------------------
1 | $dokka.format:html
2 | $dokka.linkExtension:html
3 |
4 | me.argraur.notes
5 | me.argraur.notes.adapters
6 | me.argraur.notes.entities
7 | me.argraur.notes.enums
8 | me.argraur.notes.helpers
9 | me.argraur.notes.interfaces
10 | me.argraur.notes.observers
11 | me.argraur.notes.screens
12 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx2048m
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # AndroidX package structure to make it clearer which packages are bundled with the
15 | # Android operating system, and which are packaged with your app"s APK
16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
17 | android.useAndroidX=true
18 | # Automatically convert third-party libraries to use AndroidX
19 | android.enableJetifier=true
20 | # Kotlin code style for this project: "official" or "obsolete":
21 | kotlin.code.style=official
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/argraur/Notes/ad1c52a8cb49945b057fb48efdaa6711bbde7dcc/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Mon May 25 22:39:34 MSK 2020
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
7 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | set DIRNAME=%~dp0
12 | if "%DIRNAME%" == "" set DIRNAME=.
13 | set APP_BASE_NAME=%~n0
14 | set APP_HOME=%DIRNAME%
15 |
16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 | set DEFAULT_JVM_OPTS=
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windows variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 |
53 | :win9xME_args
54 | @rem Slurp the command line arguments.
55 | set CMD_LINE_ARGS=
56 | set _SKIP=2
57 |
58 | :win9xME_args_slurp
59 | if "x%~1" == "x" goto execute
60 |
61 | set CMD_LINE_ARGS=%*
62 |
63 | :execute
64 | @rem Setup the command line
65 |
66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 |
68 | @rem Execute Gradle
69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 |
71 | :end
72 | @rem End local scope for the variables with windows NT shell
73 | if "%ERRORLEVEL%"=="0" goto mainEnd
74 |
75 | :fail
76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 | rem the _cmd.exe /c_ return code!
78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 | exit /b 1
80 |
81 | :mainEnd
82 | if "%OS%"=="Windows_NT" endlocal
83 |
84 | :omega
85 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 | rootProject.name = "Notes"
--------------------------------------------------------------------------------