[TIMOB-26556] TiAPI: Modify SDK JS files to not use deprecated property get/set methods
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-11-15T14:44:01.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 8.0.0 |
Components | n/a |
Labels | android, ios |
Reporter | Joshua Quick |
Assignee | Joshua Quick |
Created | 2018-11-14T03:41:30.000+0000 |
Updated | 2018-11-26T15:02:53.000+0000 |
Description
As of Titanium 8.0.0, Java property
get
/set
methods are deprecated. Calling a property getter or setter method still works, but will log warnings like the below.
Automatic getter methods for properties are deprecated in SDK 8.0.0 and will be removed in SDK 9.0.0. Please access the property in standard JS style...
Automatic setter methods for properties are deprecated in SDK 8.0.0 and will be removed in SDK 9.0.0. Please access the property in standard JS style...
The Titanium SDK's core JavaScript files need to be updated to not use these deprecated methods so that warning do not get logged.
PR (master): https://github.com/appcelerator/titanium_mobile/pull/10464
Note that our "kitchensink-v2" project needs to be updated as well. It calls
setText()
in several places, which logs warnings.*Closing ticket* Verified improvement in SDK version
8.0.0.v20181121114345
no longer get a log warning when creating and building a default titanium application on iOS and Android.