Skip to content

Commit 43c33d4

Browse files
committed
update docs + tutorial
1 parent 43cdba5 commit 43c33d4

88 files changed

Lines changed: 654 additions & 42 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ patch-level version changes can be found in [commit messages](../../commits/mast
1919
- Update navbar theme (dark/light rather than the app accent colour)
2020
- Update dependencies
2121
- Update tutorial location to [Tutorials](/documentation/tutorials)
22+
- Update tutorial
2223

2324
## 20220128 - 2022/01/28
2425

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Android SDK. Additional information can be found at
117117
1. Open the F-Droid app
118118
2. Search for EweSticker
119119

120-
**Or**
120+
or
121121

122122
[<img src="readme-assets/badges/f-droid-download.png"
123123
alt="Get it on F-Droid" height="80">](https://f-droid.org/en/packages/com.fredhappyface.ewesticker/)
@@ -130,7 +130,7 @@ then download/ install
130130
1. Open the Google Play app
131131
2. Search for EweSticker
132132

133-
**Or**
133+
or
134134

135135
[<img src="readme-assets/badges/google-play-download.png"
136136
alt="Get it on Google Play" height="80">](https://play.google.com/store/apps/details?id=com.fredhappyface.ewesticker)
@@ -144,7 +144,7 @@ then download/ install
144144
2. Select the debug or release APK depending on your preference. Note that the
145145
filenames are in the form: com.fredhappyface.ewesticker-(version)-(debug|release).apk
146146

147-
**Or**
147+
or
148148

149149
[<img src="readme-assets/badges/direct-apk-download.png" alt="Direct apk
150150
download" height="80">](../../releases)

app/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ tasks.dokkaGfm.configure {
1313
skipEmptyPackages.set(true)
1414
sourceRoots.from(file("src/main/java"))
1515
suppressInheritedMembers.set(true)
16+
includeNonPublic.set(true)
1617
}
1718
}
1819
}

app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
android:label="@string/app_name"
99
android:theme="@style/AppTheme"
1010
tools:ignore="GoogleAppIndexingWarning"
11-
android:dataExtractionRules="@xml/data_extraction_rules" tools:targetApi="s">
11+
android:dataExtractionRules="@xml/data_extraction_rules"
12+
android:fullBackupContent="@xml/full_backup_content"
13+
tools:targetApi="s">
1214
<activity
1315
android:name="com.fredhappyface.ewesticker.MainActivity"
1416
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"

app/src/main/java/com/fredhappyface/ewesticker/StickerImporter.kt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ private const val MAX_FILES = 4096
1010
private const val MAX_PACK_SIZE = 128
1111

1212
/**
13-
* TODO
13+
* The StickerImporter class includes a helper function to import stickers from a user-selected
14+
* stickerDirPath (see importStickers). The class requires the application baseContext and an
15+
* instance of Toaster (in turn requiring the application baseContext)
1416
*
15-
* @property context
16-
* @property toaster
17+
* @property context: application baseContext
18+
* @property toaster: an instance of Toaster (used to store an error state for later reporting to the
19+
* user)
1720
*/
1821
class StickerImporter(
1922
private val context: Context,
@@ -25,9 +28,11 @@ class StickerImporter(
2528
private var totalStickers = 0
2629

2730
/**
28-
* TODO
31+
* Used by the ACTION_OPEN_DOCUMENT_TREE handler function to copy stickers from a
32+
* stickerDirPath to the appplication internal storage for access later on by the
33+
* keyboard
2934
*
30-
* @param stickerDirPath
35+
* @param stickerDirPath a URI to the stikers directory to import into EweSticker
3136
*/
3237
fun importStickers(stickerDirPath: String): Int {
3338
File(this.context.filesDir, "stickers").deleteRecursively()

app/src/main/java/com/fredhappyface/ewesticker/StickerSender.kt

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,20 @@ import java.io.FileOutputStream
2020
import java.io.IOException
2121

2222
/**
23-
* TODO
23+
* The StickerSender Class used to contain all of the methods used for sending a sticker to an
24+
* InputConnection
2425
*
25-
* @property context
26-
* @property toaster
27-
* @property internalDir
28-
* @property currentInputConnection
29-
* @property currentInputEditorInfo
30-
* @property compatCache
31-
* @property imageLoader
26+
* @property context: application baseContext
27+
* @property toaster: an instance of Toaster (used to store an error state for later reporting to the
28+
* user)
29+
* @property internalDir: the internal /stickers directory used when creating a compat sticker
30+
* @property currentInputConnection: the currentInputConnection. i.e. the input field that the
31+
* keyboard is going to send a sticker to
32+
* @property currentInputEditorInfo: currentInputEditorInfo. i.e. info on the input field that the
33+
* keyboard is going to send a sticker to
34+
* @property compatCache: used to track previous x converted compat stickers
35+
* @property imageLoader: coil imageLoader object used to convert a sticker file to a drawable ready
36+
* for writing to a compat sticker
3237
*/
3338
class StickerSender(
3439
private val context: Context,

app/src/main/res/xml/data_extraction_rules.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<data-extraction-rules>
88
<cloud-backup>
99
<!--
10-
TODO: Use <include> and <exclude> to control what is backed up.
1110
The domain can be file, database, sharedpref, external or root.
1211
Examples:
1312
@@ -33,4 +32,4 @@
3332
<exclude .../>
3433
</device-transfer>
3534
-->
36-
</data-extraction-rules>
35+
</data-extraction-rules>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<full-backup-content>
2+
</full-backup-content>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//[app](../../../index.md)/[com.fredhappyface.ewesticker](../index.md)/[Cache](index.md)/[data](data.md)
2+
3+
# data
4+
5+
[androidJvm]\
6+
private var [data](data.md): [LinkedList](https://developer.android.com/reference/kotlin/java/util/LinkedList.html)&lt;[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)&gt;

documentation/reference/app/com.fredhappyface.ewesticker/-cache/index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,10 @@ Basically this behaved like an ordered set with some maximum capacity. When this
2222
| [get](get.md) | [androidJvm]<br>fun [get](get.md)(idx: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html))<br>Get an element |
2323
| [toFiles](to-files.md) | [androidJvm]<br>fun [toFiles](to-files.md)(): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)&lt;[File](https://developer.android.com/reference/kotlin/java/io/File.html)&gt;<br>convert this to a array of files |
2424
| [toSharedPref](to-shared-pref.md) | [androidJvm]<br>fun [toSharedPref](to-shared-pref.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)<br>convert this to a string to write to shared-pref |
25+
26+
## Properties
27+
28+
| Name | Summary |
29+
|---|---|
30+
| [data](data.md) | [androidJvm]<br>private var [data](data.md): [LinkedList](https://developer.android.com/reference/kotlin/java/util/LinkedList.html)&lt;[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)&gt; |
31+
| [size](size.md) | [androidJvm]<br>private val [size](size.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 30 |

0 commit comments

Comments
 (0)