Questions tagged [bundle]

Bundles are a group of resources.

A bundle is a directory that has a well-defined structure and can host anything from classes to controllers and web resources. Even if bundles are very flexible, you should follow some best practices if you want to distribute them.

In ASP Net MVC, bundles are used to combine multiple javascript and CSS files into one, improving the download speed of a website.

In Android bundles are, "A mapping from String values to various Parcelable types." --http://developer.android.com/reference/android/os/Bundle.html Bundles are used to save the state of activities and/or fragments as well as passing data between classes.

5438 questions
84
votes
1 answer

Can someone explain Webpack's CommonsChunkPlugin

I get the general gist that the CommonsChunkPlugin looks at all the entry points, checks to see if there are common packages/dependencies between them and separates them into their own bundle. So, let's assume I have the following…
80
votes
3 answers

Symfony2 - creating own vendor bundle - project and git strategy

We're considering creating our own common bundle for entity mapping and services for use within few separate apps. A bundle should be easy to modify, run, include and test. I know about Best Practices for Structuring Bundles, but I don't know what…
ex3v
  • 3,518
  • 4
  • 33
  • 55
78
votes
5 answers

Xcode 7 ERROR ITMS-90474: "Invalid Bundle", can't submit to Apple

I have an app I'm trying to submit to Apple. I've already validated it. I'm using Xcode 7 and Swift 2. When I try to submit to Apple, I get the following error: ERROR ITMS-90474: "Bundle Invalid. iPad Multitasking support requires there…
ChallengerGuy
  • 2,385
  • 6
  • 27
  • 43
75
votes
15 answers

ASP.NET Bundling - Bundle not updating after included file has changed (returns 304 not modified)

I am trying out ASP.NET Bundling with ASP.NET MVC 4 application. The situation is that I want to make a CDN style service, which has JS and CSS files to which you can address from other sites with this type address:…
75
votes
5 answers

Android: How to pass Parcelable object to intent and use getParcelable method of bundle?

Why bundle has getParcelableArrayList, getParcelable methods; but Intent has only putParcelableArrayListExtra method? Can I transmit only object, not ArrayList of one element? Then, what is getParcelable for?
yital9
  • 6,544
  • 15
  • 41
  • 54
73
votes
4 answers

How to run a ruby script within bundler context?

I have a Ruby script called foo.rb, and I want to run it within the context of the bundler environment. How? bundle exec foo.rb doesn't work, because exec expects a shell script.
Michiel de Mare
  • 41,982
  • 29
  • 103
  • 134
70
votes
18 answers

Nokogiri 'Failed to build gem native extension' when I run bundle install

I'm running bundle install and I'm getting this error: Building nokogiri using system libraries. Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb…
FabKremer
  • 2,149
  • 2
  • 17
  • 29
69
votes
3 answers

Sending arrays with Intent.putExtra

I have an array of integers in the activity A: int array[] = {1,2,3}; And I want to send that variable to the activity B, so I create a new intent and use the putExtra method: Intent i = new Intent(A.this, B.class); i.putExtra("numbers",…
Kitinz
  • 1,522
  • 3
  • 17
  • 28
67
votes
6 answers

Check if extras are set or not

Is there any way to check if an extra has been passed when starting an Activity? I would like to do something like (on the onCreate() in the Activity): Bundle extras = getIntent().getExtras(); String extraStr = extras.getString("extra"); …
jalv1039
  • 1,663
  • 3
  • 17
  • 21
65
votes
7 answers

How write Java.util.Map into parcel in a smart way?

I have a Generic Map of Strings (Key, Value) and this field is part of a Bean which I need to be parcelable. So, I could use the Parcel#writeMap Method. The API Doc says: Please use writeBundle(Bundle) instead. Flattens a Map into the parcel at…
Kitesurfer
  • 3,438
  • 2
  • 29
  • 47
63
votes
1 answer

Objective C: Reading text files

I've done this before, but its not working for me now. I'm doing: NSString* path = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"txt"]; NSString* content = [NSString…
Chris
  • 7,270
  • 19
  • 66
  • 110
62
votes
8 answers

Android Notification PendingIntent Extras null

I am trying to send information from notification to invoked activity, while from my activity I got null. The code for notification is: private void showNotification() { Intent resultIntent = new Intent(this, MainActivity.class); if (D) …
61
votes
8 answers

Generating resource_bundle_accessor, Type 'Bundle' has no member 'module'

Some times Xcode can not determine the module parameter in the Bundle. Type 'Bundle' has no member 'module' My investigations show that SPM generates an extension on the module (some times) for this property automatically in a file called…
Mojtaba Hosseini
  • 95,414
  • 31
  • 268
  • 278
60
votes
7 answers

How to make an iOS asset bundle?

I saw a custom asset bundle in an iOS project I evaluated, so at least I know it's possible. My issue is that I'm using a CATiledLayer with about 22,000 tiles for a given image and it takes a very long time to compile (half an hour clean build, 5-10…
michael
  • 2,332
  • 2
  • 21
  • 27
60
votes
5 answers

Composer - The requested package exists as but these are rejected by your constraint

When I run my install from composer, I have this error : λ composer install You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug Loading composer repositories with…
Antoine Bourlart
  • 781
  • 2
  • 6
  • 12