Share
Embed
Transcript
50 slides
-
All you need to know about Open Source… So you
can use it in your BlackBerry 10 Apps DEV109 Eduardo Pelegri-Llopart Roberto Speranza May 1-3, 2012 -
Agenda Introductions What is Open Source Open
Source Projects Applications and App World Demo For more Information Q & A @pelegri– 5 -
Intro: Eduardo & Roberto Eduardo: Sr Director, Open Source @pelegri
Previously: Sun and Oracle IDEs, Java, GlassFish, Hudson (now Jenkins)… Roberto: Application Development Consultant, Dev Rel @RSSessantotto Previously: Software and Web Consultant Graphical UI, Web Design, 2D / 3D Graphics… @pelegri - 7 -
Intro: Eduardo & Roberto Eduardo: Sr Director, Open Source -
@pelegri Previously: Sun and Oracle IDEs, Java, GlassFish, Hudson (now Jenkins)… Roberto: Application Development Consultant, Dev Rel Previously: Software and Web Consultant Graphical UI, Web Design, 2D / 3D Graphics… @pelegri - 8 None of us are Lawyers! If you need legal advice, Talk with a lawyer -
Goals of this Session What is Open Source (OSS)
How OSS Helps You Create Apps for App World Different Roles User of OSS Components Contributor to an OSS Project Lead of an OSS Project Research In Motion You may play multiple roles at the same time @pelegri - 9 -
Goals of this Session What is Open Source (OSS)
How OSS Helps Create Apps for App World Understand Better How OSS Works Different Roles User of OSS Components Contributor to an OSS Project Lead of an OSS Project Research In Motion You may play multiple roles at the same time @pelegri - 10 User of OSS Components Contributor to an OSS Project Research in Motion -
What is Open Source? Strictly, just: “Source is available
under an Open Source License” Reality is more complex and, in addition to license, your interaction with OSS depends on details like: Copyright + Governance + Trademarks + Tooling … @pelegri - 12 -
Promises of OSS Agile, Cost-Effective Development Reusable and
Portable Components Availability of Expert Developers Applicability of Latest Tools Bug Fixes Incorporated Promptly Efficient Product Cycle Simpler Interaction w/ Customers, Partners Better Communication Across Groups Improved Adoption @pelegri - 13 -
Open Source Principles Copyright License Governance
Trademarks @pelegri – 15 -
Open Source Principles Copyright – Who Owns the IP
Copyright Owner can change license But you can fork! One or many Copyright owners Some OSS projects require Contribution Agreement Assert authorship of contributions / licenses patents Apache uses the ICLA and CCLA – RIM does too @pelegri – 16 -
Open Source Principles Copyright – Who Owns the IP License
– What Can be done with the IP BSD, MIT – “Don’t sue me” ASL2 – Adds Patent Rights. GPL, GPLv2 – Viral, Original FSF licenses LGPLv2.1 – Limited/Lesser/Library GPLv3 – Strong patent rights and tool chain requirements @pelegri – 17 -
Open Source Principles Copyright – Who Owns the IP License
– What Can be done with the IP Governance – How the IP changes Who and How on decisions of Features, Releases, Names, Access to Source Repositories… E.g. “Can I upstream my change?” Some Models BDFL - Benevolent Dictator For Life, Meritocracy, Corporate @pelegri – 18 -
Git/GitHub encourages forks/merge (rails >3K forks!) Governance, Git and
GitHub @pelegri - 19 Repo Repo 1fork local repo 6merge 5push 2clone 3pull update 4merge This impacts project governance -
Open Source Projects 20 Applying the OSS Principles Open Source
Projects by RIM and for you -
RIM using Open Source to help You Sep 29, 2010
Launched WebWorks 1 repo at GitHub @pelegri – 21 May 2, 2012 56 repos at GitHub Samples, Tools, Runtimes… Participating in Webkit, Qt Project, Apache Cordova More Upstreaming of changes -
Open Source Projects Samples - HTML5, NDK, TunnelTilt…
HTML5 - WebWorks, Alice, bbUI.js, Apache Cordova, Webkit… Native – Cascades, GamePlay, Scoreloop, Qt… Tools – Ripple… Ports - Cocos2d-x, SDL… Frameworks - Alice, bbUI.js, GamePlay… Showcases - Quake3, DosBox… External Communities – Qt Project, Webkit, Apache Cordova @pelegri – 22 -
New this week New Samples: Cascades-Samples, Scoreloop-Samples
PictureWall, jQuery-Mobile-Samples New Significant Updates bbUI.js, gameplay New Ports ZXing and CppUnit Ongoing development on many repos New Community Wiki 23 Big announcements at DevBlog.blackberry.com All updates at OpenBBNews.Wordpress.com -
GitHub and RIM Main Entry Points – via
Pages blackberry.github.com – Dev that wants to Use a OSS component github.com/blackberry – Dev that wants to Contribute… Several Organizations Wikis, Issue Tracker, Milestones Some demos are hosted at GitHub! New Community Wiki (beta) @pelegri - 24 -
“Default” Structure of Projects License – ASL 2
Copyright – RIM Contribution Agreement Adapted from ASF’s Governance - RIM assigns the leader Repo hosted at github.com in BlackBerry Org Possibly extra staging repos + individual repos github.com/blackberry-webworks/Webworks-API-Docs @pelegri– 25 -
Samples Samples are Open Source Learn, Borrow, Enhance
Contribute back – if you want! Samples out of the SDKs KB samples to GitHub Clear, well-known, licenses Easier to update Delivery Async of SDKs @pelegri– 26 -
Many Sample Repos WebWorks-Samples WebGL-Samples (tunneltilt) NDK-Samples
Cascades-Samples Cascades-Community-Samples jQuery-Mobile-Samples Scoreloop-Samples Samples-for-Java Samples-for-AIR PictureWall BWS-Samples Gameplay @pelegri– 27 Linked from Micro-Sites Linked from Community Wiki Linked from Organization page -
HTML5 Projects All WebWorks development is done at GitHub
Runtimes Tools (Ripple) Frameworks / Libraries (Alice, bbUI.js) Documentation Future APIs Samples 29 -
HTML5 Projects - Non-RIM Led Apache Cordova Aligned
with WebWorks Webkit.org TorchMobile early participant We are back in active participation jQuery Mobile, three.js… @pelegri - 30 -
HTML5 Projects Frameworks started as Samples: bbUI.js
Alice 31 @pelegri – 31 -
Native Projects Many Samples NDK-Samples Scoreloop-Samples
Cascades-Samples, Cascades-Community-Samples,… Gameplay Ported Components Upstreaming Showcases 32 -
Gameplay 3-D cross-platform game platform for indie devs
Release 1.2 adds Multi-Platform Support PlayBook 2.0 and BlackBerry 10 ready Apple iOS, Google Android Microsoft Windows Apple MacOS X Community Participation Yours Encouraged! 33 -
Ported Components Native C/C++ packages ported to PlayBook /
BB10 Examples include Audio: OpenAL, ALUT, SDL, Ogg Vorbis Physics Engines: Box2D, Bullet Physics Game Engines: Cocos2D-X, gameplay General Purpose: Boost (almost there) Scripting: Lua, SpiderMonkey, Erlang, v8 Libraries: PCRE, TouchControlOverlay Computer Vision: OpenCV Others: CouchDB, GetOpt, JSON_parser, JsonCpp… 34 -
Showcases Some ports showcase the platform, or show how
to port some features Quake3, OpenTTD, The Battle of Wesnoth, DosBox 36 -
Key External Participations HTML5 – Webkit.org HTML5 –
Apache Cordova Native – Qt Project Ports to BlackBerry PlayBook and BB 10 devices General contributions to Community 37 -
BlackBerry Community Wiki New Initiative (beta) GitHub Pages
Community Driven Participation Encouraged Pages point to “more info” Help us make it work for you! 38 http://blackberry.github.com/Community/ -
Some Examples: Wikipedia Client, NodeBeat, OpenCV, OpenFramework 39 Elsewhere…
innovation happens elsewhere -
App World Vendor Agreement Updated March, 29th, 2012 Section 10:
Vendor Representations, Warranties and Covenants Vendor hereby represents, warrants and covenants to RIM that: (a)… (b)… (c)… 41 http://us.blackberry.com/legal/BlackBerry_App_World_Vendor_Agreement_032912cl.pdf Most relevant to us is section 10(k) -
App World Vendor Agreement 10(k) (k) Applications shall not contain,
or be derived in any manner (in whole or in part), from any software, including without limitation open source software, that would require that any RIM or third party proprietary software or information be: (i) disclosed or distributed in source code form; (ii) licensed for the purpose of permitting modifications or derivative works; (iii) reproduced and/or redistributed at no or minimal charge; (iv) permitted to be reverse engineered; or (v) used only for non-commercial purposes; 42 http://us.blackberry.com/legal/BlackBerry_App_World_Vendor_Agreement_032912cl.pdf -
Multiple Terms Reminder: You must comply with the terms
of both the Vendor Agreement and any applicable open source licenses. If the terms are incompatible, then the component with the conflicting license terms may not be used. 43 -
Open Source Licenses BSD, MIT, ASL2 (*) License
needs to be “included”. Make it easy for users to find license from App ASL2 requires “NOTICE” file to be kept, if present (L)GPLv2, v2.1 (*) Sources of component need to be made available. Make it easy for users to find sources of application from App LGPL components have to be used as a library Requirements on these components using these licenses depend on context 44 (*) these are required but not necessarily sufficient -
Best Practice Try to build license compliance into your
application 45 45 -
Open Source Licenses BSD, MIT, ASL2 (*) License
needs to be “included”. Make it easy for users to find license from App ASL2 requires “NOTICE” file to be kept, if present (L)GPLv2, v2.1 (*) Sources of component need to be made available. Make it easy for users to find sources of application from App LGPL components have to be used as a library Requirements on these components using these licenses depend on context 46 None of us are Lawyers! If you need legal advice, Talk with a lawyer -
Two Way Communications Links blackberry.github.com and github.com/blackberry
OSS General Forum at supportforums.blackberry.com blackberry.github.com/Community/ - wiki Blogs: DevBlog.blackberry.com – official, covers all key events OpenBBNews.wordpress.com – Open Source Community news Twitter - @blackberrydev (@pelegri) And see you tomorrow at the Unconference! @pelegri - 49