-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[codex] Add Android mobile support #3579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: t3code/ipad-responsive-mobile-layout
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| apply plugin: 'com.android.library' | ||
| apply plugin: 'org.jetbrains.kotlin.android' | ||
|
|
||
| group = 'com.t3tools.composereditor' | ||
| version = '0.0.0' | ||
|
|
||
| android { | ||
| namespace 'expo.modules.t3composereditor' | ||
| compileSdk rootProject.ext.compileSdkVersion | ||
|
|
||
| defaultConfig { | ||
| minSdkVersion rootProject.ext.minSdkVersion | ||
| targetSdkVersion rootProject.ext.targetSdkVersion | ||
| } | ||
| } | ||
|
|
||
| dependencies { | ||
| implementation project(':expo-modules-core') | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" /> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| package expo.modules.t3composereditor | ||
|
|
||
| import expo.modules.kotlin.modules.Module | ||
| import expo.modules.kotlin.modules.ModuleDefinition | ||
|
|
||
| class T3ComposerEditorModule : Module() { | ||
| override fun definition() = ModuleDefinition { | ||
| Name("T3ComposerEditor") | ||
|
|
||
| View(T3ComposerEditorView::class) { | ||
| Prop("controlledDocumentJson") { view: T3ComposerEditorView, documentJson: String -> | ||
| view.setControlledDocumentJson(documentJson) | ||
| } | ||
| Prop("themeJson") { view: T3ComposerEditorView, themeJson: String -> | ||
| view.setThemeJson(themeJson) | ||
| } | ||
| Prop("placeholder") { view: T3ComposerEditorView, placeholder: String -> | ||
| view.setPlaceholder(placeholder) | ||
| } | ||
| Prop("fontFamily") { view: T3ComposerEditorView, fontFamily: String -> | ||
| view.setFontFamily(fontFamily) | ||
| } | ||
| Prop("fontSize") { view: T3ComposerEditorView, fontSize: Double -> | ||
| view.setFontSize(fontSize.toFloat()) | ||
| } | ||
| Prop("lineHeight") { view: T3ComposerEditorView, lineHeight: Double -> | ||
| view.setLineHeight(lineHeight.toFloat()) | ||
| } | ||
| Prop("contentInsetVertical") { view: T3ComposerEditorView, contentInsetVertical: Double -> | ||
| view.setContentInsetVertical(contentInsetVertical.toInt()) | ||
| } | ||
| Prop("editable") { view: T3ComposerEditorView, editable: Boolean -> | ||
| view.setEditable(editable) | ||
| } | ||
| Prop("scrollEnabled") { view: T3ComposerEditorView, scrollEnabled: Boolean -> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Medium The Also found in 1 other location(s)
🚀 Reply "fix it for me" or copy this AI Prompt for your agent: |
||
| view.setScrollEnabled(scrollEnabled) | ||
| } | ||
| Prop("autoFocus") { view: T3ComposerEditorView, autoFocus: Boolean -> | ||
| view.setAutoFocus(autoFocus) | ||
| } | ||
| Prop("autoCorrect") { view: T3ComposerEditorView, autoCorrect: Boolean -> | ||
| view.setAutoCorrect(autoCorrect) | ||
| } | ||
| Prop("spellCheck") { view: T3ComposerEditorView, spellCheck: Boolean -> | ||
| view.setSpellCheck(spellCheck) | ||
| } | ||
|
|
||
| Events( | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Medium The 🚀 Reply "fix it for me" or copy this AI Prompt for your agent: |
||
| "onComposerChange", | ||
| "onComposerSelectionChange", | ||
| "onComposerFocus", | ||
| "onComposerBlur", | ||
| "onComposerPasteImages", | ||
| "onComposerContentSizeChange", | ||
| ) | ||
|
|
||
| AsyncFunction("focus") { view: T3ComposerEditorView -> | ||
| view.focusEditor() | ||
| } | ||
| AsyncFunction("blur") { view: T3ComposerEditorView -> | ||
| view.blurEditor() | ||
| } | ||
| AsyncFunction("setSelection") { view: T3ComposerEditorView, start: Int, end: Int -> | ||
| view.setSelection(start, end) | ||
| } | ||
| } | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iOS associated domains removed
High Severity
Removing
relyingPartyfrom the variant config inadvertently dropped theassociatedDomainsblock from the iOS configuration. This prevents standard iOS builds from declaring Universal Links andwebcredentialsfor the Clerk relying party.Reviewed by Cursor Bugbot for commit 276b453. Configure here.