[Android]add license/LICENSE (#7)
diff --git a/android/commons/build.gradle b/android/commons/build.gradle
index c9a3af0..37783ec 100644
--- a/android/commons/build.gradle
+++ b/android/commons/build.gradle
@@ -75,9 +75,10 @@
}
}
-if(file('../../LICENSE').exists()){
+
+if(file('../license/LICENSE').exists()){
license {
- header = file('../../LICENSE')
+ header = file('../license/LICENSE')
}
preBuild.dependsOn licenseFormat
}
diff --git a/android/license/LICENSE b/android/license/LICENSE
new file mode 100755
index 0000000..90705e0
--- /dev/null
+++ b/android/license/LICENSE
@@ -0,0 +1,16 @@
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you 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.
\ No newline at end of file
diff --git a/android/playground/build.gradle b/android/playground/build.gradle
index 8062cbc..a6eac50 100755
--- a/android/playground/build.gradle
+++ b/android/playground/build.gradle
@@ -133,9 +133,9 @@
}
}
-if(file('../../LICENSE').exists()){
+if(file('../license/LICENSE').exists()){
license {
- header = file('../../LICENSE')
+ header = file('../license/LICENSE')
excludes(["com/google/zxing/**/*.java","**/*.xml"])
}
preBuild.dependsOn licenseFormat