Skip to content

Commit

Permalink
chore: npm packages (#13886)
Browse files Browse the repository at this point in the history
* chore: npm packages

* downgrade clang-format

* format objc files

* update

* update files

* update

* eslint fixes

* ios lint

* ios linting

* lint file

* Update iphone/TitaniumKit/TitaniumKit/Sources/Modules/TiUIWindowProxy.h

Co-authored-by: Chris Barber <chris@cb1inc.com>

* Update iphone/Classes/TiUINavBarButton.m

Co-authored-by: Chris Barber <chris@cb1inc.com>

* Update iphone/Classes/TiUIScrollableView.m

Co-authored-by: Chris Barber <chris@cb1inc.com>

* Update iphone/Classes/TiUITableViewProxy.m

Co-authored-by: Chris Barber <chris@cb1inc.com>

* Update iphone/Classes/TiUIiOSProxy.h

Co-authored-by: Chris Barber <chris@cb1inc.com>

* Update iphone/Classes/TiUIiOSStepper.m

Co-authored-by: Chris Barber <chris@cb1inc.com>

* Update iphone/Classes/TiUITableView.m

Co-authored-by: Chris Barber <chris@cb1inc.com>

* Update iphone/TitaniumKit/TitaniumKit/Sources/API/TiProxy.m

Co-authored-by: Chris Barber <chris@cb1inc.com>

* Update iphone/TitaniumKit/TitaniumKit/Sources/API/TiStylesheet.m

Co-authored-by: Chris Barber <chris@cb1inc.com>

* Update iphone/TitaniumKit/TitaniumKit/Sources/API/TiViewProxy.m

Co-authored-by: Chris Barber <chris@cb1inc.com>

* Update iphone/TitaniumKit/TitaniumKit/Sources/API/TiProxy.m

Co-authored-by: Chris Barber <chris@cb1inc.com>

* Update iphone/TitaniumKit/TitaniumKit/Sources/API/TiProxy.m

Co-authored-by: Chris Barber <chris@cb1inc.com>

* fix(ios): fix indentation

---------

Co-authored-by: Chris Barber <chris@cb1inc.com>
  • Loading branch information
m1ga and cb1kenobi committed May 14, 2024
1 parent 6642ed1 commit 48afddf
Show file tree
Hide file tree
Showing 204 changed files with 7,489 additions and 8,480 deletions.
8 changes: 2 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@
"kroll": "readonly"
},
"rules": {
"node/no-deprecated-api": "off",
"node/no-unsupported-features/es-syntax": "off",
"node/no-unsupported-features/node-builtins": ["warn", { "version": "10.11.0" }]
"node/no-unsupported-features/es-syntax": "off"
}
},
{
Expand All @@ -61,9 +59,7 @@
"sourceType": "module"
},
"rules": {
"node/no-deprecated-api": "off",
"node/no-unsupported-features/es-syntax": "off",
"node/no-unsupported-features/node-builtins": ["warn", { "version": "10.11.0" }]
"node/no-unsupported-features/es-syntax": "off"
}
},
{
Expand Down
1 change: 0 additions & 1 deletion android/cli/lib/gradle-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ class GradleWrapper {
appc.subprocess.run('appc', [ '-q', 'config', 'get', 'proxyServer' ], runOptions, (exitCode, out) => {
try {
if (!exitCode && out && (out.length > 0)) {
// eslint-disable-next-line node/no-deprecated-api
proxyUrl = url.parse(out.trim());

Check warning on line 300 in android/cli/lib/gradle-wrapper.js

View workflow job for this annotation

GitHub Actions / JavaScript

'url.parse' was deprecated since v11.0.0. Use 'url.URL' constructor instead
}
} catch (ex) {
Expand Down
20 changes: 10 additions & 10 deletions iphone/Classes/AppModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ - (void)removeEventListener:(NSArray *)args
BOOL needsScanning;
do {
needsScanning = NO;
for (entry in l) //The fast iteration is blindly fast when l is nil or count.
for (entry in l) // The fast iteration is blindly fast when l is nil or count.
{
if ([listener isEqual:[entry listener]]) //NSNumber does the right thing with this too.
if ([listener isEqual:[entry listener]]) // NSNumber does the right thing with this too.
{
[l removeObject:entry]; //It's safe to modify the array as long as you break right after.
[l removeObject:entry]; // It's safe to modify the array as long as you break right after.
needsScanning = [l count] > 0;
break;
}
Expand Down Expand Up @@ -268,7 +268,7 @@ - (void)setProximityDetection:(NSNumber *)value
{
BOOL yn = [TiUtils boolValue:value];
[UIDevice currentDevice].proximityMonitoringEnabled = yn;
WARN_IF_BACKGROUND_THREAD_OBJ; //NSNotificationCenter is not threadsafe!
WARN_IF_BACKGROUND_THREAD_OBJ; // NSNotificationCenter is not threadsafe!
if (yn) {
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(proximityDetectionChanged:)
Expand Down Expand Up @@ -302,7 +302,7 @@ - (void)handleUserInteraction:(id)notification
}
}

//To fire the keyboard frame change event.
// To fire the keyboard frame change event.
- (void)keyboardFrameChanged:(NSNotification *)notification
{
if (![self _hasListeners:@"keyboardframechanged"]) {
Expand Down Expand Up @@ -385,7 +385,7 @@ - (void)willShutdownContext:(NSNotification *)note

- (void)startup
{
WARN_IF_BACKGROUND_THREAD_OBJ; //NSNotificationCenter is not threadsafe!
WARN_IF_BACKGROUND_THREAD_OBJ; // NSNotificationCenter is not threadsafe!
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
[nc addObserver:self selector:@selector(willShutdown:) name:kTiWillShutdownNotification object:nil];
[nc addObserver:self selector:@selector(willShutdownContext:) name:kTiContextShutdownNotification object:nil];
Expand All @@ -412,7 +412,7 @@ - (void)shutdown:(id)sender
{
// make sure we force any changes made on shutdown
[[NSUserDefaults standardUserDefaults] synchronize];
WARN_IF_BACKGROUND_THREAD_OBJ; //NSNotificationCenter is not threadsafe!
WARN_IF_BACKGROUND_THREAD_OBJ; // NSNotificationCenter is not threadsafe!
[[NSNotificationCenter defaultCenter] removeObserver:self];
[super shutdown:sender];
}
Expand Down Expand Up @@ -606,9 +606,9 @@ - (NSNumber *)keyboardVisible
- (void)setForceSplashAsSnapshot:(id)args
{
ENSURE_SINGLE_ARG(args, NSNumber)
[self replaceValue:args
forKey:@"forceSplashAsSnapshot"
notification:NO];
[self replaceValue:args
forKey:@"forceSplashAsSnapshot"
notification:NO];
BOOL flag = [TiUtils boolValue:args def:NO];
[[TiApp app] setForceSplashAsSnapshot:flag];
}
Expand Down
2 changes: 1 addition & 1 deletion iphone/Classes/ApplicationDefaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright TiDev, Inc. 04/07/2022-Present. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*
*
* WARNING: This is generated code. Modify at your own risk and without support.
*/

Expand Down
Loading

0 comments on commit 48afddf

Please sign in to comment.