Skip to content

Commit

Permalink
Merge branch 'master' into TIMOB-27934
Browse files Browse the repository at this point in the history
  • Loading branch information
ssekhri committed Nov 4, 2020
2 parents 43b2234 + 6f02ca8 commit 9d8bc93
Show file tree
Hide file tree
Showing 24 changed files with 2,387 additions and 85 deletions.
288 changes: 288 additions & 0 deletions MIGRATION_GUIDE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2011-2013 by Appcelerator, Inc. All Rights Reserved.
* Copyright (c) 2011-Present by Axway, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
Expand All @@ -22,11 +22,11 @@ public class RProxy extends KrollProxy
private static final String TAG = "TiAndroidRProxy";

private static final String[] RESOURCE_TYPES = {
"anim", "animator", "array", "attr", "bool",
"color", "dimen", "drawable", "font", "fraction",
"id", "integer", "interpolator", "layout", "menu",
"mipmap", "plurals", "raw", "string", "style",
"styleable", "xml"
"anim", "animator", "array", "attr", "bool",
"color", "dimen", "drawable", "font", "fraction",
"id", "integer", "interpolator", "layout", "menu",
"mipmap", "plurals", "raw", "string", "style",
"styleable", "transition", "xml"
};

public static final int RESOURCE_TYPE_ANDROID = 0;
Expand Down
15 changes: 7 additions & 8 deletions apidoc/Titanium/Android/Activity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ events:
deprecated:
since: "3.4.0"
removed: "9.0.0"
notes: Use [Titanium.Android.Activity.onCreate](Titanium.Android.Activity.onCreate) instead.
notes: Use the [Titanium.Android.Activity.onCreate](Titanium.Android.Activity.onCreate) callback property instead.
description: |
See also:
[onCreate](https://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle))
Expand All @@ -261,7 +261,7 @@ events:
deprecated:
since: "3.4.0"
removed: "9.0.0"
notes: Use [Titanium.Android.Activity.onDestroy](Titanium.Android.Activity.onDestroy) instead.
notes: Use the [Titanium.Android.Activity.onDestroy](Titanium.Android.Activity.onDestroy) callback property instead.
description: |
See also: [onDestroy](https://developer.android.com/reference/android/app/Activity.html#onDestroy())
in the Android Developer Reference.
Expand Down Expand Up @@ -296,7 +296,7 @@ events:
deprecated:
since: "3.4.0"
removed: "9.0.0"
notes: Use [Titanium.Android.Activity.onPause](Titanium.Android.Activity.onPause) instead.
notes: Use the [Titanium.Android.Activity.onPause](Titanium.Android.Activity.onPause) callback property instead.
description: |
See also:
[onPause](https://developer.android.com/reference/android/app/Activity.html#onPause())
Expand All @@ -307,7 +307,7 @@ events:
deprecated:
since: "3.4.0"
removed: "9.0.0"
notes: Use [Titanium.Android.Activity.onRestart](Titanium.Android.Activity.onRestart) instead.
notes: Use the [Titanium.Android.Activity.onRestart](Titanium.Android.Activity.onRestart) callback property instead.
description: |
See also: [onRestart](https://developer.android.com/reference/android/app/Activity.html#onRestart())
in the Android Developer Reference.
Expand All @@ -317,7 +317,7 @@ events:
deprecated:
since: "3.4.0"
removed: "9.0.0"
notes: Use [Titanium.Android.Activity.onResume](Titanium.Android.Activity.onResume) instead.
notes: Use the [Titanium.Android.Activity.onResume](Titanium.Android.Activity.onResume) callback property instead.
description: |
See also: [onResume](https://developer.android.com/reference/android/app/Activity.html#onResume())
in the Android Developer Reference.
Expand All @@ -327,7 +327,7 @@ events:
deprecated:
since: "3.4.0"
removed: "9.0.0"
notes: Use [Titanium.Android.Activity.onStart](Titanium.Android.Activity.onStart) instead.
notes: Use the [Titanium.Android.Activity.onStart](Titanium.Android.Activity.onStart) callback property instead.
description: |
See also: [onStart](https://developer.android.com/reference/android/app/Activity.html#onStart())
in the Android Developer Reference.
Expand All @@ -337,7 +337,7 @@ events:
deprecated:
since: "3.4.0"
removed: "9.0.0"
notes: Use [Titanium.Android.Activity.onStop](Titanium.Android.Activity.onStop) instead.
notes: Use the [Titanium.Android.Activity.onStop](Titanium.Android.Activity.onStop) callback property instead.
description: |
See also: [onStop](https://developer.android.com/reference/android/app/Activity.html#onStop())
in the Android Developer Reference.
Expand Down Expand Up @@ -371,7 +371,6 @@ events:
since: "7.5.0"

properties:

- name: actionBar
summary: The action bar for this activity.
description: |
Expand Down
1 change: 1 addition & 0 deletions apidoc/Titanium/App/App.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ events:
deprecated:
since: "8.0.0"
removed: "8.0.0"
notes: Use the `stack` property instead.
platforms: [iphone, ipad]
- name: title
summary: The title for the error.
Expand Down
2 changes: 1 addition & 1 deletion apidoc/Titanium/Calendar/Calendar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ properties:
deprecated:
since: "5.2.0"
removed: "8.1.0"
notes: Use [Titanium.Calendar.calendarAuthorization](Titanium.Calendar.calendarAuthorization) instead.
notes: Use the [Titanium.Calendar.calendarAuthorization](Titanium.Calendar.calendarAuthorization) property instead.
type: Number
constants: Titanium.Calendar.AUTHORIZATION_*
permission: read-only
Expand Down
8 changes: 4 additions & 4 deletions apidoc/Titanium/Contacts/Contacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ methods:
deprecated:
since: "5.0.0"
removed: "9.0.0"
notes: Use [Titanium.Contacts.getGroupByIdentifier](Titanium.Contacts.getGroupByIdentifier) instead.
notes: Use the [Titanium.Contacts.getGroupByIdentifier](Titanium.Contacts.getGroupByIdentifier) method instead.

- name: getGroupByIdentifier
summary: Gets the group with the specified identifier.
Expand Down Expand Up @@ -131,7 +131,7 @@ methods:
deprecated:
since: "5.0.0"
removed: "9.0.0"
notes: Use [Titanium.Contacts.getPersonByIdentifier](Titanium.Contacts.getPersonByIdentifier) instead.
notes: Use the [Titanium.Contacts.getPersonByIdentifier](Titanium.Contacts.getPersonByIdentifier) method instead.

- name: getPersonByIdentifier
summary: Gets the person with the specified identifier.
Expand Down Expand Up @@ -229,7 +229,7 @@ methods:
deprecated:
since: "5.1.0"
removed: "9.0.0"
notes: Use [Titanium.Contacts.requestContactsPermissions](Titanium.Contacts.requestContactsPermissions) instead.
notes: Use the [Titanium.Contacts.requestContactsPermissions](Titanium.Contacts.requestContactsPermissions) method instead.
summary: If authorization is unknown, will bring up a dialog requesting permission.
description: |
Note that the callback may be synchronous or asynchronous. That is, it may be called
Expand Down Expand Up @@ -333,7 +333,7 @@ properties:
deprecated:
since: "8.0.0"
removed: "8.0.0"
notes: "iOS 9 and later does not use this constant anymore. Use the other available constants instead."
notes: "iOS 9 and later does not use this constant anymore. Use the other available `AUTHORIZATION_*` constants instead."
since: "2.1.3"

- name: AUTHORIZATION_UNKNOWN
Expand Down
5 changes: 3 additions & 2 deletions apidoc/Titanium/Geolocation/Geolocation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1278,9 +1278,7 @@ name: GeocodedAddress
summary: |
Simple object representing a place, returned in the callback from the
[reverseGeocoder](Titanium.Geolocation.reverseGeocoder) method.
properties:

- name: street
summary: Street name, without street address.
type: String
Expand Down Expand Up @@ -1318,6 +1316,7 @@ properties:
deprecated:
since: {iphone: "8.0.0", ipad: "8.0.0"}
removed: "9.0.0"
notes: Use the `postalCode` property for parity.

- name: country
summary: Country name.
Expand All @@ -1336,6 +1335,7 @@ properties:
deprecated:
since: {android: "8.0.0", iphone: "8.0.0", ipad: "8.0.0"}
removed: "9.0.0"
notes: Use the `countryCode` property for parity.

- name: longitude
summary: Longitude of the geocoded point.
Expand All @@ -1354,6 +1354,7 @@ properties:
deprecated:
since: {android: "8.0.0"}
removed: "9.0.0"
notes: Use the `address` property for parity.

- name: address
summary: Full address.
Expand Down
4 changes: 2 additions & 2 deletions apidoc/Titanium/Gesture/Gesture.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ methods:
deprecated:
since: "6.1.0"
removed: "7.0.0"
notes: Use [Titanium.Gesture.landscape](Titanium.Gesture.landscape) for parity instead. Removed in 7.0.0 on Android, 8.1.0 on iOS.
notes: Use the [Titanium.Gesture.landscape](Titanium.Gesture.landscape) property for parity instead. Removed in 7.0.0 on Android, 8.1.0 on iOS.
returns:
type: Boolean

Expand All @@ -25,7 +25,7 @@ methods:
deprecated:
since: "6.1.0"
removed: "7.0.0"
notes: Use [Titanium.Gesture.portrait](Titanium.Gesture.portrait) for parity instead. Removed in 7.0.0 on Android, 8.1.0 on iOS.
notes: Use the [Titanium.Gesture.portrait](Titanium.Gesture.portrait) property for parity instead. Removed in 7.0.0 on Android, 8.1.0 on iOS.
returns:
type: Boolean

Expand Down
6 changes: 3 additions & 3 deletions apidoc/Titanium/Media/Media.yml
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ methods:
deprecated:
since: "5.1.0"
removed: "9.0.0"
notes: Please use [Titanium.Media.requestCameraPermissions](Titanium.Media.requestCameraPermissions) instead.
notes: Please use the [Titanium.Media.requestCameraPermissions](Titanium.Media.requestCameraPermissions) method instead.
summary: Requests for camera access.
description: |
This method allows the app to request for camera access, before or without the user granting
Expand Down Expand Up @@ -384,7 +384,7 @@ methods:
deprecated:
since: "5.1.0"
removed: "9.0.0"
notes: Use [Titanium.Media.requestAudioRecorderPermissions](Titanium.Media.requestAudioRecorderPermissions) instead.
notes: Use the [Titanium.Media.requestAudioRecorderPermissions](Titanium.Media.requestAudioRecorderPermissions) method instead.
since: "3.1.3"
parameters:
- name: callback
Expand Down Expand Up @@ -447,7 +447,7 @@ methods:
deprecated:
since: "6.1.0"
removed: "9.0.0"
notes: Use [Titanium.Media.requestAudioRecorderPermissions](Titanium.Media.requestAudioRecorderPermissions) instead.
notes: Use the [Titanium.Media.requestAudioRecorderPermissions](Titanium.Media.requestAudioRecorderPermissions) method instead.
since: "5.1.0"
parameters:
- name: callback
Expand Down
3 changes: 1 addition & 2 deletions apidoc/Titanium/Network/Socket/TCP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ summary: Object passed to the error callback when the socket enters
the [ERROR](Titanium.Network.Socket.ERROR) state.
since: "1.7"
extends: FailureResponse

properties:
- name: socket
summary: Socket that experienced the error.
Expand All @@ -311,7 +310,7 @@ properties:
deprecated:
since: "3.1.0"
removed: "9.0.0"
notes: Use the code property for a numeric error code
notes: Use the `code` property for a numeric error code.

- name: success
summary: Indicates if the operation succeeded. Returns `false`.
Expand Down
8 changes: 4 additions & 4 deletions apidoc/Titanium/Stream/Stream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ properties:
platforms: [android]
deprecated:
since: "3.1.0"
notes: Use success or code values to determine error conditions
notes: Use the `success` or `code` property values to determine error conditions.
removed: "9.0.0"

- name: errorDescription
Expand All @@ -331,7 +331,7 @@ properties:
exclude-platforms: [macos]
deprecated:
since: "3.1.0"
notes: Use error property to determine error message
notes: Use the `error` property to determine error message.
removed: "9.0.0"

- name: success
Expand Down Expand Up @@ -381,7 +381,7 @@ properties:
platforms: [android]
deprecated:
since: "3.1.0"
notes: Use success or code values to determine error conditions
notes: Use the `success` or `code` property values to determine error conditions.
removed: "9.0.0"

- name: errorDescription
Expand All @@ -390,7 +390,7 @@ properties:
exclude-platforms: [macos]
deprecated:
since: "3.1.0"
notes: Use error property to determine error message
notes: Use the `error` property to determine the error message.
removed: "9.0.0"

- name: success
Expand Down
12 changes: 6 additions & 6 deletions apidoc/Titanium/UI/Clipboard/Clipboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ description: |
Any data type that is specified but not correctly mapped to a clipboard type by the system is
retrieved as a <Titanium.Blob> type.
extends: Titanium.Module
platforms: [iphone, ipad, macos]
since: {iphone: "1.5.0", ipad: "1.5.0", macos: "9.2.0"}
platforms: [android, iphone, ipad, macos]
since: {android: "1.8.0", iphone: "1.5.0", ipad: "1.5.0", macos: "9.2.0"}
methods:
- name: clearData
summary: |
Expand Down Expand Up @@ -258,13 +258,13 @@ examples:
example: |
``` js
var clipboard1 = Ti.UI.createClipboard({
name : 'myClipboard',
allowCreation : true
name: 'myClipboard',
allowCreation: true
});
clipboard1.setText('hello');
var clipboard2 = Ti.UI.createClipboard({
name : 'myClipboard'
name: 'myClipboard'
});
Ti.API.info('Clipboard name is: ' + clipboard1.name);
Expand All @@ -277,7 +277,7 @@ examples:
example: |
``` js
var clipboard = Ti.UI.createClipboard({
unique : true
unique: true
});
clipboard.setText('hello');
Expand Down
4 changes: 2 additions & 2 deletions apidoc/Titanium/UI/Tab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ events:
deprecated:
since: "5.2.0"
removed: "9.0.0"
notes: Use [Titanium.UI.Tab.unselected](Titanium.UI.Tab.unselected) instead.
notes: Use [Titanium.UI.Tab.unselected](Titanium.UI.Tab.unselected) event instead.
properties:
- name: index
summary: Index of the current active tab.
Expand Down Expand Up @@ -358,7 +358,7 @@ events:
deprecated:
since: "5.2.0"
removed: "9.0.0"
notes: Use [Titanium.UI.Tab.selected](Titanium.UI.Tab.selected) instead.
notes: Use [Titanium.UI.Tab.selected](Titanium.UI.Tab.selected) event instead.
properties:
- name: index
summary: Index of the current active tab.
Expand Down
4 changes: 2 additions & 2 deletions apidoc/Titanium/UI/TabGroup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ events:
deprecated:
since: "5.2.0"
removed: "9.0.0"
notes: Use [Titanium.UI.Tab.focus](Titanium.UI.Tab.focus) instead.
notes: Use [Titanium.UI.Tab.focus](Titanium.UI.Tab.focus) event instead.
properties:
- name: index
summary: Index of the current active tab.
Expand All @@ -206,7 +206,7 @@ events:
deprecated:
since: "5.2.0"
removed: "9.0.0"
notes: Use [Titanium.UI.Tab.blur](Titanium.UI.Tab.blur) instead.
notes: Use [Titanium.UI.Tab.blur](Titanium.UI.Tab.blur) event instead.
properties:
- name: index
summary: |
Expand Down
4 changes: 2 additions & 2 deletions apidoc/Titanium/UI/WebView.yml
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ events:
deprecated:
since: "3.1.0"
removed: "9.0.0"
notes: Removed on ios in 8.0.0. Removed on android in 9.0.0.
notes: Use the `error` property instead. Removed on ios in 8.0.0. Removed on android in 9.0.0.
- name: errorCode
summary: A constant or underlying platform specific error code. Use code instead.
type: Number
Expand All @@ -544,7 +544,7 @@ events:
deprecated:
since: "3.1.0"
removed: "9.0.0"
notes: Removed on ios in 8.0.0. Removed on android in 9.0.0.
notes: Use the `code` property instead. Removed on ios in 8.0.0. Removed on android in 9.0.0.

- name: load
summary: Fired when the web view content is loaded.
Expand Down

0 comments on commit 9d8bc93

Please sign in to comment.