Skip to content

Commit

Permalink
Chore: Update LICENSE to generic Box SDK license (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyjin authored Nov 1, 2017
1 parent 3b1325d commit 619e2dd
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 14 deletions.
6 changes: 3 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
SOFTWARE LICENSE AGREEMENT
(v.20170516)

BOX UI ELEMENTS
BOX SDK

This "Agreement" forms a legally binding agreement between Box (as defined in
Section 14) and you ("Developer") that governs Developer's right to access and
Expand Down Expand Up @@ -114,7 +114,7 @@ services for their respective governing terms.
and
b. For each Contribution, Developer shall agree to the Box "Contributor
License Agreement" (or "CLA") located here:
https://developer.box.com/docs/box-ui-elements-cla.
https://developer.box.com/docs/box-sdk-cla.

5. Feedback. Developer may, from time to time, provide feedback to Box
concerning the functionality and performance of the SDK or Box Service
Expand Down Expand Up @@ -345,7 +345,7 @@ services for their respective governing terms.


Exhibit A
BOX UI ELEMENT ACCEPTABLE USE POLICY
BOX SDK ACCEPTABLE USE POLICY

Acceptable Use Policy. Developer shall not, and shall not use the SDKs to:
a) Do anything illegal, or facilitate, promote or encourage any illegal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,13 +336,13 @@ For general Box Platform, API, and UI Element questions, please visit our [devel

Copyright and License
---------------------
Copyright 2016-2017 Box, Inc. All Rights Reserved.
Copyright 2016-present Box, Inc. All Rights Reserved.

Licensed under the Box Software License Agreement v.20170516.
You may not use this file except in compliance with the License.
You may obtain a copy of the License at

https://github.com/box/box-content-preview/blob/master/LICENSE
https://developer.box.com/docs/box-sdk-license

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
20 changes: 20 additions & 0 deletions build/license.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = `Box Content Preview
Copyright 2017 Box, Inc. All rights reserved.
This product includes software developed by Box, Inc. ("Box")
(http://www.box.com)
ALL BOX SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL BOX BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
See the Box license for the specific language governing permissions
and limitations under the license.`;
11 changes: 2 additions & 9 deletions build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,7 @@ const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
.BundleAnalyzerPlugin;
const version = isRelease ? require('../package.json').version : 'dev';
const fs = require('fs');

const licenseNotification = `Box UI Element
Copyright 2016-2017 Box, Inc. All rights reserved.
This source code is licensed under the Box Software License Agreement found
in the LICENSE file in the root directory of this source tree. Additional
third party license disclosures can be found in the THIRD_PARTY_LICENSES
file in the same directory.`;
const license = require('./license');

let rsyncLocation = '';
if (fs.existsSync('build/rsync.json')) {
Expand Down Expand Up @@ -125,7 +118,7 @@ function updateConfig(conf, language, index) {
);

// Add license message to top of code
config.plugins.push(new BannerPlugin(licenseNotification));
config.plugins.push(new BannerPlugin(license));
}

return config;
Expand Down

0 comments on commit 619e2dd

Please sign in to comment.