Skip to content

Commit

Permalink
chore(release): bump ios and android sdk version to 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
xuqingkuang committed Mar 18, 2020
1 parent cd5c64e commit dae12f7
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions android/sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,8 @@ publish {
userOrg = 'hippy'
repoName = 'Hippy'
groupId = 'com.tencent.hippy'
artifactId = 'hippy-snapshot'
publishVersion = '0.0.1'
artifactId = 'hippy-release'
publishVersion = '2.0.2'
dryRun = false
desc = 'Hippy library for Android'
website = 'https://github.com/Tencent/Hippy'
Expand Down
4 changes: 2 additions & 2 deletions hippy.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'hippy'
s.version = '2.0.1'
s.version = '2.0.2'
s.summary = 'hippy lib for ios'

# This description is used to generate tags and improve search results.
Expand All @@ -33,5 +33,5 @@ TODO: Add long description of the pod here.
if ENV['hippy_use_frameworks']
else
s.user_target_xcconfig = {'OTHER_LDFLAGS' => '-force_load "${PODS_CONFIGURATION_BUILD_DIR}/hippy/libhippy.a"'}
end
end
end
40 changes: 20 additions & 20 deletions ios/sdk/base/HippyBridge.mm
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
NSString *const HippyJavaScriptDidFailToLoadNotification = @"HippyJavaScriptDidFailToLoadNotification";
NSString *const HippyDidInitializeModuleNotification = @"HippyDidInitializeModuleNotification";
NSString *const HippyBusinessDidLoadNotification = @"HippyBusinessDidLoadNotification";
NSString *const _HippySDKVersion = @"0.3.6a";
NSString *const _HippySDKVersion = @"2.0.2";

static NSMutableArray<Class> *HippyModuleClasses;
NSArray<Class> *HippyGetModuleClasses(void)
Expand All @@ -60,11 +60,11 @@ void HippyRegisterModule(Class moduleClass)
dispatch_once(&onceToken, ^{
HippyModuleClasses = [NSMutableArray new];
});

HippyAssert([moduleClass conformsToProtocol:@protocol(HippyBridgeModule)],
@"%@ does not conform to the HippyBridgeModule protocol",
moduleClass);

// Register module
[HippyModuleClasses addObject:moduleClass];
}
Expand All @@ -78,15 +78,15 @@ void HippyRegisterModule(Class moduleClass)
HippyAssert([cls conformsToProtocol:@protocol(HippyBridgeModule)],
@"Bridge module `%@` does not conform to HippyBridgeModule", cls);
#endif

NSString *name = [cls moduleName];
if (name.length == 0) {
name = NSStringFromClass(cls);
}
if ([name hasPrefix:@"Hippy"] || [name hasPrefix:@"hippy"]) {
name = [name substringFromIndex:5];
}

return name;
}

Expand All @@ -96,11 +96,11 @@ void HippyVerifyAllModulesExported(NSArray *extraModules)
// Check for unexported modules
unsigned int classCount;
Class *classes = objc_copyClassList(&classCount);

NSMutableSet *moduleClasses = [NSMutableSet new];
[moduleClasses addObjectsFromArray:HippyGetModuleClasses()];
[moduleClasses addObjectsFromArray:[extraModules valueForKeyPath:@"class"]];

for (unsigned int i = 0; i < classCount; i++) {
Class cls = classes[i];
Class superclass = cls;
Expand All @@ -109,7 +109,7 @@ void HippyVerifyAllModulesExported(NSArray *extraModules)
if ([moduleClasses containsObject:cls]) {
break;
}

// Verify it's not a super-class of one of our moduleClasses
BOOL isModuleSuperClass = NO;
for (Class moduleClass in moduleClasses) {
Expand All @@ -121,14 +121,14 @@ void HippyVerifyAllModulesExported(NSArray *extraModules)
if (isModuleSuperClass) {
break;
}

HippyLogWarn(@"Class %@ was not exported. Did you forget to use HIPPY_EXPORT_MODULE()?", cls);
break;
}
superclass = class_getSuperclass(superclass);
}
}

free(classes);
}
#endif
Expand All @@ -147,7 +147,7 @@ + (void)initialize
{
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{

// Set up JS thread
HippyJSThread = (id)kCFNull;
});
Expand All @@ -174,7 +174,7 @@ + (void)setCurrentBridge:(HippyBridge *)currentBridge
- (instancetype)initWithDelegate:(id<HippyBridgeDelegate>)delegate
launchOptions:(NSDictionary *)launchOptions
{

return [self initWithDelegate:delegate
bundleURL:nil
moduleProvider:nil
Expand Down Expand Up @@ -204,7 +204,7 @@ - (instancetype)initWithDelegate:(id<HippyBridgeDelegate>)delegate
_shareOptions = [NSMutableDictionary new];
_appVerson = @"";
[self setUp];

HippyExecuteOnMainQueue(^{ [self bindKeys]; });
}
return self;
Expand All @@ -225,10 +225,10 @@ - (void)dealloc
- (void)bindKeys
{
HippyAssertMainQueue();

#if TARGET_IPHONE_SIMULATOR
HippyKeyCommands *commands = [HippyKeyCommands sharedInstance];

// reload in current mode
__weak typeof(self) weakSelf = self;
[commands registerKeyCommandWithInput:@"r"
Expand All @@ -251,7 +251,7 @@ - (id)moduleForName:(NSString *)moduleName
return [self moduleForName:moduleName];
} else
return [self.batchedBridge moduleForName:moduleName];

}

- (id)moduleForClass:(Class)moduleClass
Expand All @@ -267,7 +267,7 @@ - (HippyExtAnimationModule *) animationModule {
{
if (!_isInitImageLoader) {
_imageLoader = [[self modulesConformingToProtocol: @protocol(HippyImageViewCustomLoader)] lastObject];

if (_imageLoader) {
_isInitImageLoader = YES;
}
Expand Down Expand Up @@ -331,14 +331,14 @@ - (void)setUp
_performanceLogger = [HippyPerformanceLogger new];
[_performanceLogger markStartForTag:HippyPLBridgeStartup];
// [_performanceLogger markStartForTag:HippyPLTTI];

// Only update bundleURL from delegate if delegate bundleURL has changed
NSURL *previousDelegateURL = _delegateBundleURL;
_delegateBundleURL = [self.delegate sourceURLForBridge:self];
if (_delegateBundleURL && ![_delegateBundleURL isEqual:previousDelegateURL]) {
_bundleURL = _delegateBundleURL;
}

// Sanitize the bundle URL
_bundleURL = [HippyConvert NSURL:_bundleURL.absoluteString];
#ifndef HIPPY_DEBUG
Expand Down Expand Up @@ -381,7 +381,7 @@ - (void)invalidate
{
HippyBridge *batchedBridge = self.batchedBridge;
self.batchedBridge = nil;

if (batchedBridge) {
HippyExecuteOnMainQueue(^{
[batchedBridge invalidate];
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"packages": [
"packages/*"
],
"version": "2.0.0"
"version": "2.0.1"
}

0 comments on commit dae12f7

Please sign in to comment.