Skip to content

Commit 5f7b243

Browse files
committed
Finishing a revamp of the readme
1 parent c01d626 commit 5f7b243

File tree

9 files changed

+229
-304
lines changed

9 files changed

+229
-304
lines changed

README.md

Lines changed: 135 additions & 207 deletions
Large diffs are not rendered by default.

convention-plugins/src/main/kotlin/module.publication.gradle.kts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ publishing {
1818

1919
// Provide artifacts information required by Maven Central
2020
pom {
21-
name.set("Compose Rich Editor")
22-
description.set("A Compose multiplatform library that provides a rich text editor.")
23-
url.set("https://github.com/MohamedRejeb/Compose-Rich-Editor")
21+
name.set("Compose Rich Editor with @ Mentions")
22+
description.set("A Compose multiplatform rich text editor with advanced @ mention functionality and Lexical JSON compatibility.")
23+
url.set("https://github.com/Kajabi/Android-Kajabi-Rich-Text")
2424

2525
licenses {
2626
license {
@@ -30,23 +30,26 @@ publishing {
3030
}
3131
issueManagement {
3232
system.set("Github")
33-
url.set("https://github.com/MohamedRejeb/Compose-Rich-Editor/issues")
33+
url.set("https://github.com/Kajabi/Android-Kajabi-Rich-Text/issues")
3434
}
3535
scm {
36-
connection.set("https://github.com/MohamedRejeb/Compose-Rich-Editor.git")
37-
url.set("https://github.com/MohamedRejeb/Compose-Rich-Editor")
36+
connection.set("https://github.com/Kajabi/Android-Kajabi-Rich-Text.git")
37+
url.set("https://github.com/Kajabi/Android-Kajabi-Rich-Text")
3838
}
3939
developers {
4040
developer {
41-
id.set("MohamedRejeb")
42-
name.set("Mohamed Rejeb")
43-
email.set("mohamedrejeb445@gmail.com")
41+
id.set("PGMacDesign")
42+
name.set("Patrick MacDowell")
43+
email.set("patrick.macdowell@kajabi.com")
4444
}
4545
}
4646
}
4747
}
4848
}
4949

50+
// For JitPack, signing is optional and can cause issues
51+
// Comment out the signing configuration for JitPack
52+
/*
5053
signing {
5154
useInMemoryPgpKeys(
5255
System.getenv("OSSRH_GPG_SECRET_KEY_ID"),
@@ -59,4 +62,5 @@ signing {
5962
// TODO: remove after https://youtrack.jetbrains.com/issue/KT-46466 is fixed
6063
project.tasks.withType(AbstractPublishToMaven::class.java).configureEach {
6164
dependsOn(project.tasks.withType(Sign::class.java))
62-
}
65+
}
66+
*/

convention-plugins/src/main/kotlin/root.publication.gradle.kts

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,7 @@ plugins {
33
}
44

55
allprojects {
6-
group = "com.mohamedrejeb.richeditor"
7-
version = System.getenv("VERSION") ?: "1.0.0-rc12"
6+
group = "com.github.Kajabi"
7+
version = System.getenv("VERSION") ?: "1.0.0-mentions-alpha01"
88
}
99

10-
nexusPublishing {
11-
// Configure maven central repository
12-
// https://github.com/gradle-nexus/publish-plugin#publishing-to-maven-central-via-sonatype-ossrh
13-
repositories {
14-
sonatype {
15-
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
16-
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
17-
stagingProfileId.set(System.getenv("OSSRH_STAGING_PROFILE_ID"))
18-
username.set(System.getenv("OSSRH_USERNAME"))
19-
password.set(System.getenv("OSSRH_PASSWORD"))
20-
}
21-
}
22-
}
File renamed without changes.

release/RELEASE_INFO.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Android Rich Text Editor with @ Mentions - Release 1.0.0-mentions-alpha01
2+
3+
## AAR Files Included
4+
5+
### Main Library
6+
- **File**: `richeditor-compose-release.aar` (532 KB)
7+
- **Description**: Core rich text editor library with @ mentions functionality
8+
- **Contains**: All rich text editing features, @ mention support, Lexical JSON compatibility
9+
10+
### Coil3 Extension
11+
- **File**: `richeditor-compose-coil3-release.aar` (6.4 KB)
12+
- **Description**: Coil3 image loading integration for @ mention avatars
13+
- **Contains**: Image loading utilities for user profile pictures in mentions
14+
15+
## Usage
16+
17+
### Option 1: JitPack (Recommended)
18+
```kotlin
19+
repositories {
20+
maven { url = uri("https://jitpack.io") }
21+
}
22+
23+
dependencies {
24+
// Main library with @ mentions support
25+
implementation("com.github.Kajabi:Android-Kajabi-Rich-Text:1.0.0-mentions-alpha01")
26+
27+
// For avatar image loading in mentions
28+
implementation("io.coil-kt.coil3:coil-compose:3.1.0")
29+
}
30+
```
31+
32+
### Option 2: Local AAR Files
33+
```kotlin
34+
dependencies {
35+
// Place AAR files in app/libs/ directory
36+
implementation(files("libs/richeditor-compose-release.aar"))
37+
implementation(files("libs/richeditor-compose-coil3-release.aar"))
38+
39+
// Required dependencies
40+
implementation("io.coil-kt.coil3:coil-compose:3.1.0")
41+
implementation("androidx.compose.ui:ui:1.8.0-alpha03")
42+
implementation("androidx.compose.material3:material3:1.8.0-alpha03")
43+
}
44+
```
45+
46+
## Integration
47+
48+
Replace your existing rich text editor with the mentions-enabled version:
49+
50+
```kotlin
51+
// Instead of RichTextEditor
52+
KJRichTextEditorWithMentions(
53+
state = richTextState,
54+
users = yourUserList, // List<MentionUser>
55+
placeholder = { Text("Type a message...") }
56+
)
57+
```
58+
59+
## Features Included
60+
61+
-**@ Mention Autocomplete**: Type `@` + name for filtered suggestions
62+
-**Atomic Mention Behavior**: Mentions can only be deleted entirely
63+
-**Avatar Support**: User profile pictures with Coil3 image loading
64+
-**Rich Text Formatting**: Bold, italic, underline, strikethrough, headings
65+
-**List Support**: Ordered/unordered lists with indentation
66+
-**Lexical JSON Compatibility**: Full import/export support
67+
-**Cross-Platform**: Android, Desktop, iOS, JS, WASM support
68+
69+
## Version Info
70+
71+
- **Version**: 1.0.0-mentions-alpha01
72+
- **Build Date**: June 27, 2024
73+
- **Group ID**: com.github.Kajabi
74+
- **Repository**: https://github.com/Kajabi/Android-Kajabi-Rich-Text
75+
76+
## Support
77+
78+
For issues and questions, visit: https://github.com/Kajabi/Android-Kajabi-Rich-Text/issues
6.44 KB
Binary file not shown.
533 KB
Binary file not shown.

sample/common/src/commonMain/kotlin/com/mohamedrejeb/richeditor/sample/common/home/HomeScreen.kt

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ import com.mohamedrejeb.richeditor.ui.material3.RichText
1515
@OptIn(ExperimentalMaterial3Api::class, ExperimentalLayoutApi::class)
1616
@Composable
1717
fun HomeScreen(
18-
navigateToRichEditor: () -> Unit,
19-
navigateToHtmlEditor: () -> Unit,
20-
navigateToMarkdownEditor: () -> Unit,
21-
navigateToSlack: () -> Unit,
2218
navigateToKjCommunitiesSlack: () -> Unit,
2319
) {
2420
val richTextState = rememberRichTextState()
@@ -63,38 +59,6 @@ fun HomeScreen(
6359
Spacer(modifier = Modifier.height(20.dp))
6460
}
6561

66-
item {
67-
Button(
68-
onClick = navigateToRichEditor,
69-
) {
70-
Text("Rich Text Editor Demo")
71-
}
72-
}
73-
74-
item {
75-
Button(
76-
onClick = navigateToHtmlEditor,
77-
) {
78-
Text("HTML Editor Demo")
79-
}
80-
}
81-
82-
item {
83-
Button(
84-
onClick = navigateToMarkdownEditor,
85-
) {
86-
Text("Markdown Editor Demo")
87-
}
88-
}
89-
90-
item {
91-
Button(
92-
onClick = navigateToSlack,
93-
) {
94-
Text("Slack Clone Demo")
95-
}
96-
}
97-
9862
item {
9963
Button(
10064
onClick = navigateToKjCommunitiesSlack,

sample/common/src/commonMain/kotlin/com/mohamedrejeb/richeditor/sample/common/navigation/NavGraph.kt

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,9 @@ import androidx.navigation.compose.NavHost
55
import androidx.navigation.compose.composable
66
import androidx.navigation.compose.rememberNavController
77
import com.mohamedrejeb.richeditor.sample.common.home.HomeScreen
8-
import com.mohamedrejeb.richeditor.sample.common.htmleditor.HtmlEditorContent
9-
import com.mohamedrejeb.richeditor.sample.common.markdowneditor.MarkdownEditorContent
10-
import com.mohamedrejeb.richeditor.sample.common.richeditor.RichEditorScreen
11-
import com.mohamedrejeb.richeditor.sample.common.slack.SlackDemoScreen
128
import com.kjcommunities.KJDemoScreen as KjCommunitiesKJDemoScreen
139

1410
private const val HOME_ROUTE = "home"
15-
private const val RICH_EDITOR_ROUTE = "richEditor"
16-
private const val HTML_EDITOR_ROUTE = "htmlEditor"
17-
private const val MARKDOWN_EDITOR_ROUTE = "markdownEditor"
18-
private const val SLACK_ROUTE = "slack"
1911
private const val KJCOMMUNITIES_SLACK_ROUTE = "kjcommunitiesSlack"
2012

2113
@Composable
@@ -28,38 +20,10 @@ fun NavGraph() {
2820
) {
2921
composable(HOME_ROUTE) {
3022
HomeScreen(
31-
navigateToRichEditor = { navController.navigate(RICH_EDITOR_ROUTE) },
32-
navigateToHtmlEditor = { navController.navigate(HTML_EDITOR_ROUTE) },
33-
navigateToMarkdownEditor = { navController.navigate(MARKDOWN_EDITOR_ROUTE) },
34-
navigateToSlack = { navController.navigate(SLACK_ROUTE) },
3523
navigateToKjCommunitiesSlack = { navController.navigate(KJCOMMUNITIES_SLACK_ROUTE) }
3624
)
3725
}
3826

39-
composable(RICH_EDITOR_ROUTE) {
40-
RichEditorScreen(
41-
navigateBack = { navController.popBackStack() }
42-
)
43-
}
44-
45-
composable(HTML_EDITOR_ROUTE) {
46-
HtmlEditorContent(
47-
navigateBack = { navController.popBackStack() }
48-
)
49-
}
50-
51-
composable(MARKDOWN_EDITOR_ROUTE) {
52-
MarkdownEditorContent(
53-
navigateBack = { navController.popBackStack() }
54-
)
55-
}
56-
57-
composable(SLACK_ROUTE) {
58-
SlackDemoScreen(
59-
navigateBack = { navController.popBackStack() }
60-
)
61-
}
62-
6327
composable(KJCOMMUNITIES_SLACK_ROUTE) {
6428
KjCommunitiesKJDemoScreen(
6529
navigateBack = { navController.popBackStack() }

0 commit comments

Comments
 (0)