Skip to content

Commit 330bb0a

Browse files
committed
Android specific test package remote URL added for package ui test.
1 parent ec3b759 commit 330bb0a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

cocos2d-ui-tests/tests/CCPackageTest.m

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,17 @@ - (void) setupPackageTest
3939

4040
[self addLabels];
4141

42+
43+
44+
#if __CC_PLATFORM_ANDROID
45+
NSURL *remoteURL = [NSURL URLWithString:@"https://github.com/NickyWeber/cocos2d_test_resources/blob/master/testpackage-Android-phonehd.zip?raw=true"];
46+
#elif __CC_PLATFORM_IOS
47+
NSURL *remoteURL = [NSURL URLWithString:@"https://github.com/NickyWeber/cocos2d_test_resources/blob/master/testpackage-iOS-phonehd.zip?raw=true"];
48+
#endif
49+
4250
self.package = [[CCPackageManager sharedManager] downloadPackageWithName:@"testpackage"
4351
resolution:@"phonehd"
44-
remoteURL:[NSURL URLWithString:@"https://github.com/NickyWeber/cocos2d_test_resources/blob/master/testpackage-iOS-phonehd.zip?raw=true"]
52+
remoteURL:remoteURL
4553
enableAfterDownload:YES];
4654
}
4755

0 commit comments

Comments
 (0)