New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(android): remove getter and setter methods from TabGroup #12661
Conversation
Tests:
|
f47e428
to
375548d
Compare
375548d
to
caec617
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR: Pass
apidoc/Titanium/UI/TabGroup.yml
Outdated
@@ -263,11 +263,6 @@ methods: | |||
summary: Tab to remove. | |||
type: Titanium.UI.Tab | |||
|
|||
- name: getTabs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I already pushed the change to master and 10_0_X (see 580cffc), but we don't want to just remove API from our apidocs. We need to explicitly mark it as deprecated and/or removed and retain it in the docs until the removed version has gone EOS/EOL. Otherwise it won't be documented/exist anymore and we want devs on older SDK versions to still see the APIs that are deprecated/removed in current/future versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FR Passed, using the following test case:
const win_a = Ti.UI.createWindow({
backgroundColor: 'blue',
title: 'Blue'
});
const win_b = Ti.UI.createWindow({
backgroundColor: 'red',
title: 'Red'
});
const tab_a = Ti.UI.createTab({
window: win_a,
title: 'Blue'
});
const tab_b = Ti.UI.createTab({
window: win_b,
title: 'Red'
});
const tabGroup = Ti.UI.createTabGroup({
tabs: [ tab_a, tab_b ],
activeTab: 1 // Open on second tab.
});
win_a.addEventListener('click', e => {
// Switch to second tab.
tabGroup.activeTab = 1;
});
win_b.addEventListener('click', e => {
// Reset tabs.
tabGroup.tabs = [ tab_a, tab_b ];
});
tabGroup.open();
Test Environment
MacOS Big Sur: 11.1 Beta 1
Xcode: 12.2 Beta
Java Version: 1.8.0_242
Android NDK: 21.3.6528147
Node.js: 12.18.1
""NPM":"5.0.0","CLI":"8.1.1""
Pixel XL (10) emulator
The backport to
Check the run for full details # Fetch latest updates from GitHub
git fetch
# Check out the target branch
git checkout 10_0_X
# Make sure it's up to date
git pull
# Check out your branch
git checkout -b backport-12661-to-10_0_X
# Apply the commits from the PR
curl -s https://github.com/appcelerator/titanium_mobile/commit/caec617cb0eb76f9b741af9c01793da0b5785dbc.patch | git am -3 --ignore-whitespace
# Push it to GitHub
git push --set-upstream origin backport-12661-to-10_0_X Then, create a pull request where the |
getActiveTab()
andsetActiveTab()
fromTi.UI.TabGroup
getTabs()
fromTi.UI.TabGroup
TabGroup
via common extensionTEST CASE
JIRA Ticket