Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27777] Android: Obtain holder for module references

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2020-04-15T11:55:00.000+0000
Affected Version/sn/a
Fix Version/sRelease 9.0.1
ComponentsAndroid
Labelsn/a
ReporterGary Mathews
AssigneeGary Mathews
Created2020-02-24T23:52:26.000+0000
Updated2020-04-15T11:55:00.000+0000

Description

- It is not possible to indirectly reference a module method or property. *TEST CASE*
const permissions = Ti.Filesystem.requestStoragePermissions;

// Attempt to call 'requestStoragePermissions'.
permissions(e => {
    if (e.success) {
        console.log('Storage permissions granted.');
        return;
    }
    console.warn('Storage permissions denied.');
});
- Should see a console log regarding storage permissions. - Should not see
Couldn't obtain argument holder

Comments

  1. Gary Mathews 2020-02-25

    master: https://github.com/appcelerator/titanium_mobile/pull/11498
  2. Gary Mathews 2020-03-24

    9_0_X: https://github.com/appcelerator/titanium_mobile/pull/11561
  3. Christopher Williams 2020-04-14

    merged to master and 9_0_X
  4. Satyam Sekhri 2020-04-14

    FR Passed
  5. Samir Mohammed 2020-04-15

    *Closing ticket.* Fix verified in SDK version 9.1.0.v20200414184350. and 9.0.1.v20200414191452 Test and other information can be found at: master: https://github.com/appcelerator/titanium_mobile/pull/11498 9_0_X: https://github.com/appcelerator/titanium_mobile/pull/11561

JSON Source