This is an automated email from the ASF dual-hosted git repository. erisu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cordova-mobile-spec.git
The following commit(s) were added to refs/heads/master by this push: new 65ab919 chore: license & license headers (#215) 65ab919 is described below commit 65ab91924a883703c16d796555b573e7f04564ac Author: Niklas Merz <niklasm...@apache.org> AuthorDate: Thu Feb 27 03:16:31 2025 +0100 chore: license & license headers (#215) --- .ratignore | 1 + LICENSE | 4 +--- createmobilespec/helper_files/build-extras.gradle | 20 ++++++++++++++++++++ www/battery/index.js | 21 +++++++++++++++++++++ www/benchmarks/index.js | 21 +++++++++++++++++++++ www/disable-csp.js | 21 +++++++++++++++++++++ www/events/index.js | 21 +++++++++++++++++++++ www/keyboard/index.js | 20 ++++++++++++++++++++ www/keyboard/window-onerror.js | 21 +++++++++++++++++++++ www/lazyloadjs/do-not-write-cordova-script.js | 21 +++++++++++++++++++++ www/lazyloadjs/index.js | 21 +++++++++++++++++++++ www/misc/index.js | 21 +++++++++++++++++++++ www/misc/page2.js | 21 +++++++++++++++++++++ www/misc/page3A.js | 21 +++++++++++++++++++++ www/sql/index.js | 21 +++++++++++++++++++++ www/storage/index.js | 21 +++++++++++++++++++++ 16 files changed, 294 insertions(+), 3 deletions(-) diff --git a/.ratignore b/.ratignore index babaf0c..93185e1 100644 --- a/.ratignore +++ b/.ratignore @@ -1,3 +1,4 @@ jasmine.* html uubench.js +*.properties diff --git a/LICENSE b/LICENSE index 5652ae1..b32ffb6 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,3 @@ -The MIT License - Apache License Version 2.0, January 2004 @@ -192,6 +190,7 @@ The MIT License Copyright 2009-2011 Rob Ellis, Brock Whitten, Brian LeRoux Copyright 2010-2011, IBM Corporation Copyright 2011 Adobe + Copyright 2012- Apache Cordova Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -205,4 +204,3 @@ The MIT License See the License for the specific language governing permissions and limitations under the License. - diff --git a/createmobilespec/helper_files/build-extras.gradle b/createmobilespec/helper_files/build-extras.gradle index 2fbf696..6f724a2 100644 --- a/createmobilespec/helper_files/build-extras.gradle +++ b/createmobilespec/helper_files/build-extras.gradle @@ -1,2 +1,22 @@ +/* + * + * 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. + * +*/ ext.cdvDebugSigningPropertiesFile = 'android-debug-key.properties' diff --git a/www/battery/index.js b/www/battery/index.js index 1a0d488..d38e2be 100644 --- a/www/battery/index.js +++ b/www/battery/index.js @@ -1,3 +1,24 @@ +/* + * + * 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. + * +*/ + var deviceReady = false; /** diff --git a/www/benchmarks/index.js b/www/benchmarks/index.js index aec19b4..281a65e 100644 --- a/www/benchmarks/index.js +++ b/www/benchmarks/index.js @@ -1,3 +1,24 @@ +/* + * + * 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. + * +*/ + window.onload = function() { addListenerToClass('backBtn', backHome); } diff --git a/www/disable-csp.js b/www/disable-csp.js index 0515bd3..c57e225 100644 --- a/www/disable-csp.js +++ b/www/disable-csp.js @@ -1 +1,22 @@ +/* + * + * 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. + * +*/ + _disableCSP = true; diff --git a/www/events/index.js b/www/events/index.js index dcc2b9b..846a1f6 100644 --- a/www/events/index.js +++ b/www/events/index.js @@ -1,3 +1,24 @@ +/* + * + * 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. + * +*/ + var deviceReady = false; function logEvent(e) { diff --git a/www/keyboard/index.js b/www/keyboard/index.js index 2302f31..b7de7eb 100644 --- a/www/keyboard/index.js +++ b/www/keyboard/index.js @@ -1,3 +1,23 @@ +/* + * + * 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. + * +*/ var deviceReady = false; var keyboardPlugin = null; diff --git a/www/keyboard/window-onerror.js b/www/keyboard/window-onerror.js index f833882..0bb4457 100644 --- a/www/keyboard/window-onerror.js +++ b/www/keyboard/window-onerror.js @@ -1 +1,22 @@ +/* + * + * 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. + * +*/ + window.onerror = function(err,fn,ln) {alert("ERROR:" + err + ", " + fn + ":" + ln);}; diff --git a/www/lazyloadjs/do-not-write-cordova-script.js b/www/lazyloadjs/do-not-write-cordova-script.js index 0f20c76..1633bbc 100644 --- a/www/lazyloadjs/do-not-write-cordova-script.js +++ b/www/lazyloadjs/do-not-write-cordova-script.js @@ -1 +1,22 @@ +/* + * + * 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. + * +*/ + _doNotWriteCordovaScript = true; diff --git a/www/lazyloadjs/index.js b/www/lazyloadjs/index.js index 6559319..1a1fe42 100644 --- a/www/lazyloadjs/index.js +++ b/www/lazyloadjs/index.js @@ -1,3 +1,24 @@ +/* + * + * 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. + * +*/ + function init() { document.addEventListener("deviceready", function() { console.log("Device="+device.platform+" "+device.version); diff --git a/www/misc/index.js b/www/misc/index.js index e38ade7..b061e83 100644 --- a/www/misc/index.js +++ b/www/misc/index.js @@ -1,3 +1,24 @@ +/* + * + * 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. + * +*/ + var deviceReady = false; function roundNumber(num) { diff --git a/www/misc/page2.js b/www/misc/page2.js index 1f489c2..1ee2124 100644 --- a/www/misc/page2.js +++ b/www/misc/page2.js @@ -1,3 +1,24 @@ +/* + * + * 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. + * +*/ + setTimeout(function() { console.log('loading iframe after timeout.'); document.querySelector('#apacheiframe').src = 'http://apache.org'; diff --git a/www/misc/page3A.js b/www/misc/page3A.js index 8efad58..4a9fd7c 100644 --- a/www/misc/page3A.js +++ b/www/misc/page3A.js @@ -1,3 +1,24 @@ +/* + * + * 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. + * +*/ + console.log('Changing hash #1.'); if (location.search.indexOf('hash1') != -1) { location.hash = 'a'; diff --git a/www/sql/index.js b/www/sql/index.js index d0a953d..bc5ca0d 100644 --- a/www/sql/index.js +++ b/www/sql/index.js @@ -1,3 +1,24 @@ +/* + * + * 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. + * +*/ + //------------------------------------------------------------------------- // HTML5 Database //------------------------------------------------------------------------- diff --git a/www/storage/index.js b/www/storage/index.js index 00ae7e1..b915831 100644 --- a/www/storage/index.js +++ b/www/storage/index.js @@ -1,3 +1,24 @@ +/* + * + * 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. + * +*/ + var deviceReady = false; /** --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org