Repository navigation
[Android] Support for PhoneCallHistory - #2575
Conversation
jeromelaban
left a comment
There was a problem hiding this comment.
Please a UI test sample (no need to automate it)
|
What test should do? |
jeromelaban
left a comment
There was a problem hiding this comment.
Thank you for your PR, can you a a set of samples to demonstrate the APIs you've implemented ?
a2b4d5a to
5c8341e
Compare
|
Can build be restarted? "Publishing build artifacts failed with an error: Not found PathtoPublish" not related to changes in this PR. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Can build be restarted? "Publishing build artifacts failed with an error: Not found PathtoPublish" not related to changes in this PR. |
|
"Removed method System.Void Windows.UI.Input.DraggingEventArgs..ctor() not found in ignore set. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Can I get any review of this PR? Build success... |
|
This functionality would never be supported for iOS, as it is impossible to access 'calllog' on iOS platform. But, can this functionality be added to Uno for Android platform, i.e. could this PR be reviewed/accepted/merged? |
jeromelaban
left a comment
There was a problem hiding this comment.
Add a sample in the sample app that shows the results of the invocations for the APIs you implemented.
jeromelaban
left a comment
There was a problem hiding this comment.
A few additional comments. We still need a sample in the samples app to validate the behavior.
|
About sample... Can it be sample outside Uno? https://github.com/pkar70/CallStat
|
|
Will build restart by itself, or should it be restarted manually? |
|
So, there is some chance that this code, used in my app available in Android Amazon store since May 13, 2020, will be finally included in official Uno distribution in September 2022 :) |
55a11d3 to
8996052
Compare
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
| @@ -2,6 +2,9 @@ | |||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="uno.platform.unosampleapp" android:versionCode="1" android:versionName="1.0" android:installLocation="auto"> | |||
| <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="31" /> | |||
| <!-- NOTE: Add permissions in AssemblyInfo.cs --> | |||
There was a problem hiding this comment.
@pkar70 @MartinZikmund Why are permissions added here while this comment mentions they should be in AssemblyInfo?
@jeromelaban This comment was added in #3064, do you recall why permissions should be in AssemblyInfo not in AndroidManifest?
Either way, I guess we should just follow the comment and move the permissions.
There was a problem hiding this comment.
It's generally easier to manipulate these flags in code, as they be placed pretty much anywhere, close to the code using them.
| #endif | ||
| #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__ | ||
| #if false || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__ | ||
| [global::Uno.NotImplemented("__ANDROID__", "__IOS__", "NET461", "__WASM__", "__SKIA__", "__NETSTD_REFERENCE__", "__MACOS__")] |
There was a problem hiding this comment.
__ANDROID__ must be removed in this line.
| { | ||
| #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__ | ||
| #if false || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__ | ||
| [global::Uno.NotImplemented] |
There was a problem hiding this comment.
We should pass specific platforms to the attribute here.
| @@ -0,0 +1,140 @@ | |||
| #nullable enable | |||
|
|
|||
| #if __ANDROID__ | |||
There was a problem hiding this comment.
I think this is not necessary. The file is already .Android.cs and is only included in build for Android.

GitHub Issue (If applicable): unoplatform/uno-private#1439
PR Type
What kind of change does this PR introduce?
What is the current behavior?
No PhoneCallHistory support
What is the new behavior?
Support on Android plaftorm.
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.Other information
Enums are defined for every platform, code is for Android only. As far as I know (from Internet digging), support for iOS would never happen, as it is impossible to access 'calllog' on iOS platform.
Part of my app CallsStat, published on Amazon.
Internal Issue (If applicable):
Part of my app https://github.com/pkar70/CallStat