Skip to content

Commit

Permalink
fix(ios): revert rename in hippy3 and fix modal view gesture bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwcg authored and hippy-actions[bot] committed Oct 30, 2023
1 parent 1855da6 commit bad8e37
Show file tree
Hide file tree
Showing 52 changed files with 145 additions and 105 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#import "HippyPageCacheContainerView.h"
#import "HippyPageCacheView.h"
#import "HippyPageCache.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"

@interface HippyPageCacheContainerView ()<HippyPageCacheManagerObserverProtocol> {
__weak UIView *_lastPageCacheView; //never removed from superview
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#import <hippy/HippyBridge.h>
#import <hippy/HippyRootView.h>
#import <hippy/HippyLog.h>
#import <hippy/HippyAsserts.h>
#import <hippy/HippyAssert.h>
#import <hippy/UIView+Hippy.h>

static NSString *const engineKey = @"Demo";
Expand Down
2 changes: 1 addition & 1 deletion framework/examples/ios-demo/HippyDemo/TestModule.mm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#import "HippyRedBox.h"
#import "DemoConfigs.h"
#import "HippyMethodInterceptorProtocol.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"

static NSString *const engineKey = @"Demo";

Expand Down
2 changes: 1 addition & 1 deletion framework/ios/base/HippyDeviceBaseInfo.mm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

#import <UIKit/UIApplication.h>
#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyUtils.h"
#import "HippyDeviceBaseInfo.h"
#import "HippyEventDispatcher.h"
Expand Down
2 changes: 1 addition & 1 deletion framework/ios/base/HippyDisplayLink.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#import <Foundation/Foundation.h>
#import <QuartzCore/CADisplayLink.h>

#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyBridgeModule.h"
#import "HippyFrameUpdate.h"
#import "HippyModuleData.h"
Expand Down
2 changes: 1 addition & 1 deletion framework/ios/base/HippyKeyCommands.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#import "HippyKeyCommands.h"
#import <UIKit/UIKit.h>
#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyDefines.h"
#import "HippyUtils.h"

Expand Down
2 changes: 1 addition & 1 deletion framework/ios/base/bridge/HippyBridge.mm
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#import "HippyRedBox.h"
#import "HippyTurboModule.h"
#import "HippyUtils.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyConvert.h"
#import "HippyDefaultImageProvider.h"
#import "HippyI18nUtils.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#import <JavaScriptCore/JavaScriptCore.h>

#import "NSObject+JSValue.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyJSCContextWrapper.h"
#import "HippyJSStackFrame.h"

Expand Down
2 changes: 1 addition & 1 deletion framework/ios/base/executors/HippyJSExecutor.mm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#import <UIKit/UIDevice.h>
#import "VFSUriHandler.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyBundleURLProvider.h"
#import "HippyContextWrapper.h"
#import "HippyDefines.h"
Expand Down
2 changes: 1 addition & 1 deletion framework/ios/base/modules/HippyEventDispatcher.mm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

#import "HippyEventDispatcher.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyUtils.h"

const NSInteger HippyTextUpdateLagWarningThreshold = 3;
Expand Down
2 changes: 1 addition & 1 deletion framework/ios/base/modules/HippyModuleData.mm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#import "HippyModuleData.h"
#import "HippyBridge.h"
#import "HippyModuleMethod.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyLog.h"
#import "HippyUtils.h"

Expand Down
2 changes: 1 addition & 1 deletion framework/ios/base/modules/HippyModuleMethod.mm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#import "HippyBridge.h"
#import "HippyTurboModuleManager.h"
#import "HippyUtils.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyConvert.h"
#import "HippyLog.h"
#import "HippyParserUtils.h"
Expand Down
2 changes: 1 addition & 1 deletion framework/ios/base/modules/HippyModulesSetup.mm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* limitations under the License.
*/

#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyBridge.h"
#import "HippyModuleData.h"
#import "HippyModulesSetup.h"
Expand Down
2 changes: 1 addition & 1 deletion framework/ios/debug/websocket/HippySRWebSocket.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#import <CommonCrypto/CommonDigest.h>

#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyLog.h"
#import "HippySRSIMDHelpers.h"

Expand Down
2 changes: 1 addition & 1 deletion framework/ios/module/dev/HippyDevMenu.mm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#import "HippyEventDispatcher.h"
#import "HippyKeyCommands.h"
#import "HippyWebSocketProxy.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyUtils.h"
#import "HippyDefines.h"

Expand Down
2 changes: 1 addition & 1 deletion framework/ios/module/dev/HippyRedBox.mm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#import "HippyRedBox.h"
#import "HippyUtils.h"
#import "HippyWeakProxy.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyConvert.h"
#import "HippyJSStackFrame.h"
#import "HippyLog.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#import "HippyEventObserverModule.h"
#import "HippyEventDispatcher.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"

@implementation HippyEventObserverModule {
NSMutableDictionary *_config;
Expand Down
2 changes: 1 addition & 1 deletion framework/ios/module/exception/HippyExceptionModule.mm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#import "HippyExceptionModule.h"
#import "HippyBridge.h"
#import "HippyDefines.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyUtils.h"

@implementation HippyExceptionModule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#import "HippyBridge.h"
#import "HippyDefines.h"
#import "HippyUtils.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyConvert.h"
#import "HippyLog.h"
#import "HippyUtils.h"
Expand Down
2 changes: 1 addition & 1 deletion framework/ios/module/netinfo/HippyNetInfo.mm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#import "HippyNetInfo.h"
#import "HippyNetInfoIntenal.h"

#import "HippyAsserts.h"
#import "HippyAssert.h"

@interface HippyNetInfo ()<HippyNetworkTypeChangedDelegate> {
}
Expand Down
2 changes: 1 addition & 1 deletion framework/ios/module/netinfo/HippyNetInfoIntenal.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#import <SystemConfiguration/SystemConfiguration.h>

#import "HippyNetInfoIntenal.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"

#include <netinet/in.h>

Expand Down
2 changes: 1 addition & 1 deletion framework/ios/module/network/HippyNetWork.mm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#import "HippyBridge+VFSLoader.h"
#import "HippyDefines.h"
#import "HippyNetWork.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyUtils.h"

static NSStringEncoding GetStringEncodingFromURLResponse(NSURLResponse *response) {
Expand Down
2 changes: 1 addition & 1 deletion framework/ios/module/turbo/HippyOCTurboModule.mm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#import "HippyOCTurboModule+Inner.h"
#import "HippyTurboModuleManager.h"
#import "HippyJSExecutor.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyLog.h"
#import "HippyUtils.h"
#import "NSObject+CtxValue.h"
Expand Down
2 changes: 1 addition & 1 deletion framework/ios/module/turbo/HippyTurboModuleManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#import "HippyJSExecutor.h"
#import "HippyModuleData.h"
#import "HippyTurboModuleManager.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"

#include <unordered_map>

Expand Down
2 changes: 1 addition & 1 deletion framework/ios/module/turbo/NSObject+HippyTurbo.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

#import "HippyModuleMethod.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyUtils.h"
#import "NSObject+HippyTurbo.h"

Expand Down
2 changes: 1 addition & 1 deletion framework/ios/utils/NSObject+CtxValue.mm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

#import "NSObject+CtxValue.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyLog.h"
#include "driver/napi/js_ctx.h"
#include "driver/napi/js_ctx_value.h"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* limitations under the License.
*/

#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyLog.h"

NSString *const HippyErrorDomain = @"HippyErrorDomain";
Expand Down
2 changes: 1 addition & 1 deletion modules/ios/base/HippyUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

#import "HippyUtils.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyLog.h"
#import <objc/message.h>
#import <CommonCrypto/CommonCrypto.h>
Expand Down
2 changes: 1 addition & 1 deletion renderer/native/ios/renderer/HippyRootView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

#import "HippyRootView.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyView.h"
#import "UIView+Hippy.h"
#import "NativeRenderDefines.h"
Expand Down
2 changes: 1 addition & 1 deletion renderer/native/ios/renderer/HippyUIManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* limitations under the License.
*/

#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyDomUtils.h"
#import "HippyFootstoneUtils.h"
#import "HippyOCToDomArgument.h"
Expand Down
2 changes: 1 addition & 1 deletion renderer/native/ios/renderer/NativeRenderManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#import "NativeRenderManager.h"
#import "NativeRenderObjectText.h"
#import "RenderVsyncManager.h"
#import "HippyAsserts.h"
#import "HippyAssert.h"

#include "dom/dom_manager.h"
#include "dom/layout_node.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#import <Accelerate/Accelerate.h>

#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyUtils.h"
#import "NativeRenderImageView.h"
#import "NativeRenderAnimatedImage.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* limitations under the License.
*/

#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "HippyUtils.h"
#import "NativeRenderImageViewManager.h"
#import "NativeRenderImageView.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* limitations under the License.
*/

#import "HippyAsserts.h"
#import "HippyAssert.h"
#import "NativeRenderBaseListView.h"
#import "NativeRenderBaseListViewCell.h"
#import "NativeRenderBaseListViewDataSource.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface NativeRenderModalCustomAnimationTransition : NSObject <UIViewControllerAnimatedTransitioning>
@interface HippyModalCustomAnimationTransition : NSObject <UIViewControllerAnimatedTransitioning>
@property (nonatomic, assign) BOOL isPresent;
@end
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
* limitations under the License.
*/

#import "NativeRenderModalCustomAnimationTransition.h"
#import "HippyModalCustomAnimationTransition.h"

#define DURATION .2f

@implementation NativeRenderModalCustomAnimationTransition
@implementation HippyModalCustomAnimationTransition

- (NSTimeInterval)transitionDuration:(__unused id<UIViewControllerContextTransitioning>)transitionContext {
return DURATION;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@

#import <UIKit/UIKit.h>

@interface NativeRenderModalCustomPresentationController : UIPresentationController
@interface HippyModalCustomPresentationController : UIPresentationController

@end
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
* limitations under the License.
*/

#import "NativeRenderModalCustomPresentationController.h"
#import "HippyModalCustomPresentationController.h"

@implementation NativeRenderModalCustomPresentationController {
@implementation HippyModalCustomPresentationController {
}

- (void)presentationTransitionWillBegin {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@
*/

#import <UIKit/UIKit.h>

#import "HippyComponent.h"
#import "HippyInvalidating.h"

@class NativeRenderModalHostViewController;

@protocol NativeRenderModalHostViewInteractor;
@class HippyBridge;
@class HippyTouchHandler;
@class HippyModalHostViewController;
@protocol HippyModalHostViewInteractor;

@interface NativeRenderModalHostView : UIView
@interface HippyModalHostView : UIView <HippyInvalidating>

@property (nonatomic, copy) NSString *animationType;
@property (nonatomic, copy) NSString *primaryKey;
Expand All @@ -38,14 +39,16 @@
@property (nonatomic, copy) HippyDirectEventBlock onShow;
@property (nonatomic, copy) HippyDirectEventBlock onRequestClose;

@property (nonatomic, weak) id<NativeRenderModalHostViewInteractor, UIViewControllerTransitioningDelegate> delegate;
@property (nonatomic, weak) id<HippyModalHostViewInteractor, UIViewControllerTransitioningDelegate> delegate;

@property (nonatomic, strong) NSArray<NSString *> *supportedOrientations;
@property (nonatomic, copy) HippyDirectEventBlock onOrientationChange;
@property (nonatomic, strong) NSNumber *hideStatusBar;
@property (nonatomic, readonly) BOOL isPresented;
@property (nonatomic, strong) NativeRenderModalHostViewController *modalViewController;
@property (nonatomic, strong) HippyModalHostViewController *modalViewController;
@property (nonatomic, readonly) HippyTouchHandler *touchHandler;

- (instancetype)initWithBridge:(HippyBridge *)bridge NS_DESIGNATED_INITIALIZER;
- (void)notifyForBoundsChange:(CGRect)newBounds;

@end
Loading

0 comments on commit bad8e37

Please sign in to comment.