Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Business

Caleb Kleveter
MOD
Caleb Kleveter
Treehouse Moderator 37,862 Points

Copyright and using code in a project I might make money on.

I am working on building an iOS application, and I found a GitHub project that I want to integrate that is under the MIT license. If I use this project in my app, does my app have to be under the MIT license? From what I can tell it doesn't have to be.

I also want to know what license the code on Treehouse is under. If a teacher did something in a video, and I copy it because I want to use the same functionality in an app or website that I could make open-source, or use it for business, can I do that, or is it not legal?

2 Answers

Michael Hulet
Michael Hulet
47,913 Points

Basically all you have to do is tuck away in your settings or something an "Attribution" section or something, and just say something like "This app uses DropdownMenu by Nils Mattison and Martin Hartl. DrowpdownMenu is © 2013 Nils Mattisson, Martin Hartl". Also, be sure to mention that it's licensed under the MIT license, and paste in the text of the MIT license. You can probably just paste in this:

DropdownMenu by Nils Mattison and Martin Hartl

The MIT License (MIT)

Copyright (c) 2013 Nils Mattisson, Martin Hartl

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

As for the Treehouse code, you're technically supposed to ask if you don't know, but Treehouse has explicitly stated in some of their videos that you're free to use their code however you want, but they'd like it (though don't require it) if you show your teacher what you made when you launch it

Andrew Chalkley
STAFF
Andrew Chalkley
Treehouse Guest Teacher

On your iPhone go to Settings > General > About > Legal > Legal Notices for an example :)