Skip to content
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

[TIMOB-25008] : iOS Remove deprecated Ti.UI.KEYBOARD_* constants in favor of TI.UI.KEYBOARD_TYPE_* #10465

Merged
merged 3 commits into from Nov 20, 2018

Conversation

vijaysingh-axway
Copy link
Contributor

@build
Copy link
Contributor

build commented Nov 14, 2018

Messages
📖

👍 Hey!, You deleted more code than you added. That's awesome!

📖

💾 Here's the generated SDK zipfile.

Generated by 🚫 dangerJS

@jquick-axway
Copy link
Contributor

@vijaysingh-axway, regarding KEYBOARD_APPEARANCE_ALERT, you've documented it as removed but it's still in the iOS (and Android) code. Is the plan to delete this constant on all platforms too?

@janvennemann
Copy link
Contributor

It was marked to be removed with 7.0.0 already so i would say we delete it.

@jquick-axway
Copy link
Contributor

Okay. I've update my PR #10471 to remove the KEYBOARD_APPEARANCE_ALERT constant too.

@vijaysingh-axway
Copy link
Contributor Author

@vijaysingh-axway, regarding KEYBOARD_APPEARANCE_ALERT, you've documented it as removed but it's still in the iOS (and Android) code. Is the plan to delete this constant on all platforms too?

@jquick-axway It was not intended change. So code was not removed. :) I will remove the code as well and update this PR.

@longton95 longton95 self-requested a review November 20, 2018 10:34
Copy link
Contributor

@longton95 longton95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FR Passed

Ti.UI.KEYBOARD_* shows undefined and the deprecated warnings are removed.

Testcase from PR #10471.

var keyboardTypeNames = [
	"Ti.UI.KEYBOARD_APPEARANCE_ALERT",
	"Ti.UI.KEYBOARD_ASCII",
	"Ti.UI.KEYBOARD_DECIMAL_PAD",
	"Ti.UI.KEYBOARD_DEFAULT",
	"Ti.UI.KEYBOARD_EMAIL",
	"Ti.UI.KEYBOARD_NAMEPHONE_PAD",
	"Ti.UI.KEYBOARD_NUMBERS_PUNCTUATION",
	"Ti.UI.KEYBOARD_NUMBER_PAD",
	"Ti.UI.KEYBOARD_PHONE_PAD",
	"Ti.UI.KEYBOARD_WEBSEARCH",
	"Ti.UI.KEYBOARD_TWITTER",
	"Ti.UI.KEYBOARD_URL",
];
for (var index = 0; index < keyboardTypeNames.length; index++) {
	var typeName = keyboardTypeNames[index];
	Ti.API.info(typeName + ": " + eval(typeName));
}

ENV

iPhone 6 (12.0)
iOS simulator (12.1)
Xcode: 10.11
Appc NPM: 4.2.13
Appc CLI: 7.0.7
Ti CLI: 5.1.1
Node: 8.12.0
NPM: 6.4.1

@longton95 longton95 merged commit 416b874 into tidev:master Nov 20, 2018
build pushed a commit to hansemannn/titanium_mobile that referenced this pull request Dec 3, 2018
…avor of TI.UI.KEYBOARD_TYPE_* (tidev#10465)

* [TIMOB-25008] : iOS Remove deprecated Ti.UI.KEYBOARD_* constants in favor of TI.UI.KEYBOARD_TYPE_*

* KEYBOARD_APPEARANCE_ALERT property removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants