Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to Add Apache License 2.0 in an Android App which is using a library powered by Apache

I need my app to use a library project which is powered by Apache, i'm only liable to use that library if i add Apache License 2.0 in my app. My question is that where to add the license in the app?

Is it okay, if i add the boilerplate notice only in the About Section of the app.

Boilerplate notice:

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

like image 902
Waqas Khan Avatar asked Aug 29 '16 05:08

Waqas Khan


People also ask

How do I install Apache 2.0 license?

To apply the license to your software project, create a LICENSE file in the source tree's top level. Now copy the full Apache 2.0 License text from https://www.apache.org/licenses/LICENSE-2.0.txt into a LICENSE file. Notice that the LICENSE file doesn't have any extension, but you can optionally name the file LICENSE.

Can I use an Apache 2 license in commercial software?

How to Use Apache License 2.0 in commercial products? You can use any Apache License 2.0 licensed software in your commercial products for free. However, you must not name your product in a way that it looks like an endorsement from Apache.

Is Apache License version 2.0 open-source?

The Apache 2.0 license is a particular type of open-source, permissive software license that ensures that end-users are granted a license to any patent that is covered by the software in question. An Apache 2.0 license ensures the security and availability of safe and powerful open-source software.

Can I use a code with Apache 2.0 license?

The Apache License 2.0 outlines what users are allowed to do with the licensed code. Under this license, users can: Use the code commercially: Companies can include the licensed code in proprietary software that they then sell to customers.


1 Answers

You can use OSS Licenses Gradle Plugin to your app. This Gradle plugin scans the POM dependencies of a project at compile time. When a Maven POM exists for a direct dependency of the app, the plugin processes the element and embeds the link and title of each license in an Android asset in the final app APK.

Refer the following link for details: https://github.com/google/play-services-plugins/tree/master/oss-licenses-plugin

like image 89
rijo jose Avatar answered Sep 24 '22 10:09

rijo jose