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

Nicky's Pull Request plus android fixes. #1008

Merged
merged 63 commits into from
Sep 30, 2014
Merged

Conversation

danhd123
Copy link
Contributor

No description provided.

…rst and the search paths.

Packages work with additional search paths. Since packages usually contain only one resolution it may occur that an asset that should be replaced with the asset is found first before the asset is searched. That was the case with the previous search order.
Method added to load all filenameLookups in all search paths and merge them.
…s in all search paths and merge them in ivar.
Code re-enabled to compile.
Conflicts:
	cocos2d-ios.xcodeproj/project.pbxproj
	external/ObjectAL
A server has to explicitly return the Accept-Ranges header with a set value other than none.
…s when enqueue is used.

A failed package download will start over when used with enqueue.
An instance of a package can now be added to the manager to actually get managed without starting the whole installation life cycle.
Leading to a new method to start the download of a CCPackage instance which has already been added before.
The unzip delegate methods will return on the main thread now.
Some refactoring to attach installData with a method instead of code duplication.
…nt a crash in the cocos2d-test-ios project.

Hopefully this can be solved to get the platform defines set correctly soon.
Extracted some cocos2d config code in app delegate and made that public to rerun packages tests.
…ategory.

File skeletons for other package classes added.
Moved two methods from CCPackage+InstallData to CCPackageInstallData.
Unzipped package added to shared resources for those tests.
…n unit tests.

Simplified unit tests of CCPackageInstallData.
Removed non testable CCPackageHelperTests class.
Fix for file urls serialization: Prevent prepending of file:// scheme of installURL for de/serialization cycles.
Password protected archive added for tests. Password is foobar.
…s is done in the CCPackageManager now.

CCPackageCocos2dEnabler will set relevant status instead of CCPackageManager.
NickyWeber and others added 28 commits September 25, 2014 19:00
Seemed to be a conflict with CCScheduler and the runloop triggering in the unit tests.
Temporarily pointing to https://github.com/NickyWeber/ssziparchive.git as long as the main clone does not contain a static library target.
Updated revision of SSZipArchive.
SSZipArchive header search path added.
CCPackageDownload is setting package status for failed downloads instead of download manager.
CCPackageDownloadManager header documentation improved for setDownloadPath.
Bugfix for setting a new download path.
Added allDownloads properties. Mainly for testing purposes, it shouldn't hurt.
NSAssert added in CCPackageDownloadManager to assert installData is attached to CCPackageDownload.
CCPackageDownloadManager no longer sets failed download status of a package: CCPackageDownload is doing this now.
Default resolution is determined by CCFileUtil's searchResolutionsOrder array and is mapped to a sprite builder resolution.
CCPackageManager now offers a simple method to download a package only by providing a name.
CCPackage can now be initialized with a name only.
Some tests added for these cases, although CCPackageHelper tests are disabled at the moment due to a bug in CCFileUtils and handling of searchResolutionsOrder.
Removed double ;.
Some formatting of methods in CCPackageManager's header.
Last import removed in CCPackageTests.
Conflicts:
	cocos2d-ios.xcodeproj/project.pbxproj
	cocos2d-tests-ios.xcodeproj/project.pbxproj
	cocos2d-ui-tests/ios/AppDelegate.m
	cocos2d/Platforms/iOS/CCAppDelegate.m
	cocos2d/Support/CCFileUtils.h
It was internally declared as NSMutableArray but accessible and writable(copy) as NSArray.
This caused all kinds of weird crashes when assigning new values after setup and running the tests.
Reenabled the tests depending on this.
vlidholt added a commit that referenced this pull request Sep 30, 2014
Nicky's Pull Request plus android fixes.
@vlidholt vlidholt merged commit 7908afc into cocos2d:develop Sep 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants