Skip to content

feat: ChatMessageStore for Android - #3055

Closed
pkar70 wants to merge 1 commit into
unoplatform:masterfrom
pkar70:chatMessage
Closed

pkar70 wants to merge 1 commit into
unoplatform:masterfrom
pkar70:chatMessage

Conversation

@pkar70

@pkar70 pkar70 commented Apr 26, 2020 •

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): #

PR Type

What kind of change does this PR introduce?

  • Feature

What is the current behavior?

No support for reading and writing chat store.

What is the new behavior?

Reading and writing chat store is supported.

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

To successfully compile, it requires code from #3025

Part of my app BackupSMS.

Internal Issue (If applicable):

@gitpod-io

gitpod-io Bot commented Apr 26, 2020 •

Copy link
Copy Markdown

@jeromelaban jeromelaban left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your PR.

Can you add sample to validate the behavior of this feature ?

It is noted that this PR cannot be validated because of the dependency on another in-progress PR.

@jeromelaban

jeromelaban commented Apr 30, 2020 •

Copy link
Copy Markdown
Member

You mentioned in https://github.com/unoplatform/uno-private/issues/1439 that this PR is still relevant. Could you address the comments that have been added ?

Thanks!

@CLAassistant

CLAassistant commented Jun 10, 2020 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@pkar70
pkar70 requested a review from a team August 7, 2020 22:10
@pkar70 pkar70 mentioned this pull request Oct 9, 2020
2 of 6 tasks
@unoplatform unoplatform deleted a comment from pkar70 Oct 11, 2020
@pkar70

pkar70 commented Nov 13, 2020

Copy link
Copy Markdown
Contributor Author

Can I get any response/review of this PR?

@pkar70

pkar70 commented Mar 30, 2021 •

Copy link
Copy Markdown
Contributor Author

Error from CI: "src\Uno.UWP\ApplicationModel\Chat\ChatMessageStore.Android.cs(29,15): Error CS0618: 'Telephony.TextBasedSmsColumns.Body' is obsolete: 'Use 'Android.Provider.Telephony.ITextBasedSmsColumns.Body'. This class will be removed in a future release."
This error is when Android target version is 11. When Android target version is 10, ITextBasedSmsColumns doesn't exist.

But, https://developer.android.com/reference/android/provider/Telephony.TextBasedSmsColumns - official Android docs doesn't know that this is obsolete. Also, official Android docs doesn't know about Android.Provider.Telephony.ITextBasedSmsColumns...
Also https://docs.microsoft.com/en-us/dotnet/api/android.provider.telephony.textbasedsmscolumns?view=xamarin-android-sdk-9 have same information (and no info for Xamarin Android 11).

So, how to deal with this problem?
Is there some constant available for #if ?

#if building_for_Android < 11
// current implementation
#else
// implementation with ITextBased...
#endif

Android Developers
Learn more about the Android.Provider.Telephony.TextBasedSmsColumns in the Android.Provider namespace.

@jeromelaban

Copy link
Copy Markdown
Member

You use #if __ANDROID_11__ which means 11 and later.

@pkar70

pkar70 commented Mar 31, 2021

Copy link
Copy Markdown
Contributor Author

And now, got ITextBasedSmsColumns doesnt exist in Android.Provider.Telephony :)
So, I cannot use TextBasedSmsColumns because it is obsolete, and also cannot use ITextBasedSmsColumns, because it doesn't exist :)

@gitpod-io

gitpod-io Bot commented May 4, 2021

Copy link
Copy Markdown

@pkar70 pkar70 mentioned this pull request May 8, 2021
3 of 6 tasks
@pkar70

pkar70 commented May 8, 2021

Copy link
Copy Markdown
Contributor Author

I corrupted branch of this PR, so I had to re-create it - see #5961.

@pkar70 pkar70 closed this May 8, 2021
agneszitte added a commit that referenced this pull request Jun 26, 2026
Add three migration notes surfaced from the 6.6 changelog that are not
flagged as conventional breaking changes but may require attention:
legacy macOS (AppKit) removal (#22650), reversed Framebuffer mouse-wheel
default (#22924), and the MVUX generated view-model rename in
Uno.Extensions 7.2 (#3055). Each carries a draft-PR review marker so
reviewers can validate or drop them before merge.

Related to unoplatform/private#1076

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
agneszitte added a commit that referenced this pull request Jun 26, 2026
Add two migration notes surfaced from the 6.6 changelog that are not
flagged as conventional breaking changes but may require attention:
the reversed Framebuffer mouse-wheel default (#22924) and the MVUX
generated view-model rename in Uno.Extensions 7.2 (#3055). Each carries
a draft-PR review marker so reviewers can validate or drop them before
merge.

Related to unoplatform/private#1076

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
agneszitte added a commit that referenced this pull request Jun 26, 2026
Confirmed both candidate items against source diffs and removed the
draft review marker:

- Framebuffer: default wheel delta is now inverted (multiplier -1);
  ReverseMouseWheel() on the host builder restores the raw/previous
  direction (uno #22924).
- MVUX: Uno.Extensions 7.2 flips the default bindable generation tool
  from v2 to v3, changing generated view-model naming (drops the
  ViewViewModel suffix). Documented the opt-out attribute to pin v2
  (uno.extensions #3055).

Related to unoplatform/private#1076

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
agneszitte added a commit that referenced this pull request Jun 29, 2026
Verified against the generator source (ViewModelGenTool_2 vs _3): the
generated bindable name changes from Bindable{ModelName} (v2) to
{Name-without-Model}ViewModel (v3), e.g. MainModel -> MainViewModel.
The previous "doubled ViewViewModel suffix dropped" wording was wrong
(an artifact of the PR #3059 test fixture rename). Also clarify that
PR #3055 is non-breaking for idiomatic MVUX usage, since navigation and
bindings reference the model type, not the generated bindable.

Related to unoplatform/private#1076

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants