Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28441] Android: Remove unneeded 10.0.0 deprecation warnings

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2021-05-24T15:36:22.000+0000
Affected Version/sRelease 10.0.0
Fix Version/sRelease 10.0.1
ComponentsAndroid
Labelsandroid, log, warning
ReporterJoshua Quick
AssigneeJoshua Quick
Created2021-05-07T04:59:10.000+0000
Updated2021-05-24T15:36:22.000+0000

Description

*Summary:* Android logs deprecation warnings for some APIs that we no longer plan on removing or deprecating in Titanium. We should remove the warnings. *Synchronous Stream Warnings:* Blocking reads on files/stream/blobs will log a deprecation warning to use the async version of the APIs instead. We've never documented them as deprecated. Nor does iOS log any warnings for doing this. We should remove them.
Synchronous invocation of write will cause performance issues under the main thread. This will no longer be supported in SDK 10.0.0. Please invoke with a final callback function to receive the result.
https://github.com/appcelerator/titanium_mobile/blob/master/android/titanium/src/java/org/appcelerator/titanium/util/TiStreamHelper.java#L84-L88 https://github.com/appcelerator/titanium_mobile/blob/master/android/titanium/src/java/org/appcelerator/titanium/util/TiStreamHelper.java#L185-L189

Comments

  1. Joshua Quick 2021-05-07

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/12783
  2. Christopher Williams 2021-05-24

    merged to master and 10_0_X branch for 10.0.1 target

JSON Source