4 |
5 |
6 |
--------------------------------------------------------------------------------
/platforms/android/cordova/android_sdk_version:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | /*
4 | Licensed to the Apache Software Foundation (ASF) under one
5 | or more contributor license agreements. See the NOTICE file
6 | distributed with this work for additional information
7 | regarding copyright ownership. The ASF licenses this file
8 | to you under the Apache License, Version 2.0 (the
9 | "License"); you may not use this file except in compliance
10 | with the License. You may obtain a copy of the License at
11 |
12 | http://www.apache.org/licenses/LICENSE-2.0
13 |
14 | Unless required by applicable law or agreed to in writing,
15 | software distributed under the License is distributed on an
16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | KIND, either express or implied. See the License for the
18 | specific language governing permissions and limitations
19 | under the License.
20 | */
21 |
22 | var android_sdk_version = require('./lib/android_sdk_version');
23 |
24 | android_sdk_version.run().done(null, function(err) {
25 | console.log(err);
26 | process.exit(2);
27 | });
28 |
29 |
30 |
--------------------------------------------------------------------------------
/platforms/android/cordova/build:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | /*
4 | Licensed to the Apache Software Foundation (ASF) under one
5 | or more contributor license agreements. See the NOTICE file
6 | distributed with this work for additional information
7 | regarding copyright ownership. The ASF licenses this file
8 | to you under the Apache License, Version 2.0 (the
9 | "License"); you may not use this file except in compliance
10 | with the License. You may obtain a copy of the License at
11 |
12 | http://www.apache.org/licenses/LICENSE-2.0
13 |
14 | Unless required by applicable law or agreed to in writing,
15 | software distributed under the License is distributed on an
16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | KIND, either express or implied. See the License for the
18 | specific language governing permissions and limitations
19 | under the License.
20 | */
21 |
22 | var build = require('./lib/build'),
23 | reqs = require('./lib/check_reqs'),
24 | args = process.argv;
25 |
26 | // Support basic help commands
27 | if(args[2] == '--help' ||
28 | args[2] == '/?' ||
29 | args[2] == '-h' ||
30 | args[2] == 'help' ||
31 | args[2] == '-help' ||
32 | args[2] == '/help') {
33 | build.help();
34 | } else {
35 | reqs.run().done(function() {
36 | return build.run(args.slice(2));
37 | }, function(err) {
38 | console.error(err);
39 | process.exit(2);
40 | });
41 | }
42 |
--------------------------------------------------------------------------------
/platforms/android/cordova/build.bat:
--------------------------------------------------------------------------------
1 | :: Licensed to the Apache Software Foundation (ASF) under one
2 | :: or more contributor license agreements. See the NOTICE file
3 | :: distributed with this work for additional information
4 | :: regarding copyright ownership. The ASF licenses this file
5 | :: to you under the Apache License, Version 2.0 (the
6 | :: "License"); you may not use this file except in compliance
7 | :: with the License. You may obtain a copy of the License at
8 | ::
9 | :: http://www.apache.org/licenses/LICENSE-2.0
10 | ::
11 | :: Unless required by applicable law or agreed to in writing,
12 | :: software distributed under the License is distributed on an
13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | :: KIND, either express or implied. See the License for the
15 | :: specific language governing permissions and limitations
16 | :: under the License.
17 |
18 | @ECHO OFF
19 | SET script_path="%~dp0build"
20 | IF EXIST %script_path% (
21 | node %script_path% %*
22 | ) ELSE (
23 | ECHO.
24 | ECHO ERROR: Could not find 'build' script in 'cordova' folder, aborting...>&2
25 | EXIT /B 1
26 | )
--------------------------------------------------------------------------------
/platforms/android/cordova/check_reqs:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | /*
4 | Licensed to the Apache Software Foundation (ASF) under one
5 | or more contributor license agreements. See the NOTICE file
6 | distributed with this work for additional information
7 | regarding copyright ownership. The ASF licenses this file
8 | to you under the Apache License, Version 2.0 (the
9 | "License"); you may not use this file except in compliance
10 | with the License. You may obtain a copy of the License at
11 |
12 | http://www.apache.org/licenses/LICENSE-2.0
13 |
14 | Unless required by applicable law or agreed to in writing,
15 | software distributed under the License is distributed on an
16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | KIND, either express or implied. See the License for the
18 | specific language governing permissions and limitations
19 | under the License.
20 | */
21 |
22 | var check_reqs = require('./lib/check_reqs');
23 |
24 | check_reqs.run().done(
25 | function success() {
26 | console.log('Looks like your environment fully supports cordova-android development!');
27 | }, function fail(err) {
28 | console.log(err);
29 | process.exit(2);
30 | }
31 | );
32 |
--------------------------------------------------------------------------------
/platforms/android/cordova/clean.bat:
--------------------------------------------------------------------------------
1 | :: Licensed to the Apache Software Foundation (ASF) under one
2 | :: or more contributor license agreements. See the NOTICE file
3 | :: distributed with this work for additional information
4 | :: regarding copyright ownership. The ASF licenses this file
5 | :: to you under the Apache License, Version 2.0 (the
6 | :: "License"); you may not use this file except in compliance
7 | :: with the License. You may obtain a copy of the License at
8 | ::
9 | :: http://www.apache.org/licenses/LICENSE-2.0
10 | ::
11 | :: Unless required by applicable law or agreed to in writing,
12 | :: software distributed under the License is distributed on an
13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | :: KIND, either express or implied. See the License for the
15 | :: specific language governing permissions and limitations
16 | :: under the License.
17 |
18 | @ECHO OFF
19 | SET script_path="%~dp0clean"
20 | IF EXIST %script_path% (
21 | node %script_path% %*
22 | ) ELSE (
23 | ECHO.
24 | ECHO ERROR: Could not find 'clean' script in 'cordova' folder, aborting...>&2
25 | EXIT /B 1
26 | )
--------------------------------------------------------------------------------
/platforms/android/cordova/defaults.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/platforms/android/cordova/lib/install-device.bat:
--------------------------------------------------------------------------------
1 | :: Licensed to the Apache Software Foundation (ASF) under one
2 | :: or more contributor license agreements. See the NOTICE file
3 | :: distributed with this work for additional information
4 | :: regarding copyright ownership. The ASF licenses this file
5 | :: to you under the Apache License, Version 2.0 (the
6 | :: "License"); you may not use this file except in compliance
7 | :: with the License. You may obtain a copy of the License at
8 | ::
9 | :: http://www.apache.org/licenses/LICENSE-2.0
10 | ::
11 | :: Unless required by applicable law or agreed to in writing,
12 | :: software distributed under the License is distributed on an
13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | :: KIND, either express or implied. See the License for the
15 | :: specific language governing permissions and limitations
16 | :: under the License.
17 |
18 | @ECHO OFF
19 | SET script_path="%~dp0install-device"
20 | IF EXIST %script_path% (
21 | node "%script_path%" %*
22 | ) ELSE (
23 | ECHO.
24 | ECHO ERROR: Could not find 'install-device' script in 'cordova\lib' folder, aborting...>&2
25 | EXIT /B 1
26 | )
--------------------------------------------------------------------------------
/platforms/android/cordova/lib/install-emulator:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | /*
4 | Licensed to the Apache Software Foundation (ASF) under one
5 | or more contributor license agreements. See the NOTICE file
6 | distributed with this work for additional information
7 | regarding copyright ownership. The ASF licenses this file
8 | to you under the Apache License, Version 2.0 (the
9 | "License"); you may not use this file except in compliance
10 | with the License. You may obtain a copy of the License at
11 |
12 | http://www.apache.org/licenses/LICENSE-2.0
13 |
14 | Unless required by applicable law or agreed to in writing,
15 | software distributed under the License is distributed on an
16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | KIND, either express or implied. See the License for the
18 | specific language governing permissions and limitations
19 | under the License.
20 | */
21 |
22 | var emulator = require('./emulator'),
23 | args = process.argv;
24 |
25 | var install_target;
26 | if(args.length > 2) {
27 | if (args[2].substring(0, 9) == '--target=') {
28 | install_target = args[2].substring(9, args[2].length);
29 | } else {
30 | console.error('ERROR : argument \'' + args[2] + '\' not recognized.');
31 | process.exit(2);
32 | }
33 | }
34 |
35 | emulator.install(install_target).done(null, function(err) {
36 | console.error('ERROR: ' + err);
37 | process.exit(2);
38 | });
39 |
--------------------------------------------------------------------------------
/platforms/android/cordova/lib/install-emulator.bat:
--------------------------------------------------------------------------------
1 | :: Licensed to the Apache Software Foundation (ASF) under one
2 | :: or more contributor license agreements. See the NOTICE file
3 | :: distributed with this work for additional information
4 | :: regarding copyright ownership. The ASF licenses this file
5 | :: to you under the Apache License, Version 2.0 (the
6 | :: "License"); you may not use this file except in compliance
7 | :: with the License. You may obtain a copy of the License at
8 | ::
9 | :: http://www.apache.org/licenses/LICENSE-2.0
10 | ::
11 | :: Unless required by applicable law or agreed to in writing,
12 | :: software distributed under the License is distributed on an
13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | :: KIND, either express or implied. See the License for the
15 | :: specific language governing permissions and limitations
16 | :: under the License.
17 |
18 | @ECHO OFF
19 | SET script_path="%~dp0install-emulator"
20 | IF EXIST %script_path% (
21 | node "%script_path%" %*
22 | ) ELSE (
23 | ECHO.
24 | ECHO ERROR: Could not find 'install-emulator' script in 'cordova\lib' folder, aborting...>&2
25 | EXIT /B 1
26 | )
--------------------------------------------------------------------------------
/platforms/android/cordova/lib/list-devices:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | /*
4 | Licensed to the Apache Software Foundation (ASF) under one
5 | or more contributor license agreements. See the NOTICE file
6 | distributed with this work for additional information
7 | regarding copyright ownership. The ASF licenses this file
8 | to you under the Apache License, Version 2.0 (the
9 | "License"); you may not use this file except in compliance
10 | with the License. You may obtain a copy of the License at
11 |
12 | http://www.apache.org/licenses/LICENSE-2.0
13 |
14 | Unless required by applicable law or agreed to in writing,
15 | software distributed under the License is distributed on an
16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | KIND, either express or implied. See the License for the
18 | specific language governing permissions and limitations
19 | under the License.
20 | */
21 |
22 | var devices = require('./device');
23 |
24 | // Usage support for when args are given
25 | devices.list().done(function(device_list) {
26 | device_list && device_list.forEach(function(dev) {
27 | console.log(dev);
28 | });
29 | }, function(err) {
30 | console.error('ERROR: ' + err);
31 | process.exit(2);
32 | });
33 |
34 |
--------------------------------------------------------------------------------
/platforms/android/cordova/lib/list-devices.bat:
--------------------------------------------------------------------------------
1 | :: Licensed to the Apache Software Foundation (ASF) under one
2 | :: or more contributor license agreements. See the NOTICE file
3 | :: distributed with this work for additional information
4 | :: regarding copyright ownership. The ASF licenses this file
5 | :: to you under the Apache License, Version 2.0 (the
6 | :: "License"); you may not use this file except in compliance
7 | :: with the License. You may obtain a copy of the License at
8 | ::
9 | :: http://www.apache.org/licenses/LICENSE-2.0
10 | ::
11 | :: Unless required by applicable law or agreed to in writing,
12 | :: software distributed under the License is distributed on an
13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | :: KIND, either express or implied. See the License for the
15 | :: specific language governing permissions and limitations
16 | :: under the License.
17 |
18 | @ECHO OFF
19 | SET script_path="%~dp0list-devices"
20 | IF EXIST %script_path% (
21 | node "%script_path%" %*
22 | ) ELSE (
23 | ECHO.
24 | ECHO ERROR: Could not find 'list-devices' script in 'cordova\lib' folder, aborting...>&2
25 | EXIT /B 1
26 | )
--------------------------------------------------------------------------------
/platforms/android/cordova/lib/list-emulator-images:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | /*
4 | Licensed to the Apache Software Foundation (ASF) under one
5 | or more contributor license agreements. See the NOTICE file
6 | distributed with this work for additional information
7 | regarding copyright ownership. The ASF licenses this file
8 | to you under the Apache License, Version 2.0 (the
9 | "License"); you may not use this file except in compliance
10 | with the License. You may obtain a copy of the License at
11 |
12 | http://www.apache.org/licenses/LICENSE-2.0
13 |
14 | Unless required by applicable law or agreed to in writing,
15 | software distributed under the License is distributed on an
16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | KIND, either express or implied. See the License for the
18 | specific language governing permissions and limitations
19 | under the License.
20 | */
21 |
22 | var emulators = require('./emulator');
23 |
24 | // Usage support for when args are given
25 | emulators.list_images().done(function(emulator_list) {
26 | emulator_list && emulator_list.forEach(function(emu) {
27 | console.log(emu.name);
28 | });
29 | }, function(err) {
30 | console.error('ERROR: ' + err);
31 | process.exit(2);
32 | });
33 |
--------------------------------------------------------------------------------
/platforms/android/cordova/lib/list-emulator-images.bat:
--------------------------------------------------------------------------------
1 | :: Licensed to the Apache Software Foundation (ASF) under one
2 | :: or more contributor license agreements. See the NOTICE file
3 | :: distributed with this work for additional information
4 | :: regarding copyright ownership. The ASF licenses this file
5 | :: to you under the Apache License, Version 2.0 (the
6 | :: "License"); you may not use this file except in compliance
7 | :: with the License. You may obtain a copy of the License at
8 | ::
9 | :: http://www.apache.org/licenses/LICENSE-2.0
10 | ::
11 | :: Unless required by applicable law or agreed to in writing,
12 | :: software distributed under the License is distributed on an
13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | :: KIND, either express or implied. See the License for the
15 | :: specific language governing permissions and limitations
16 | :: under the License.
17 |
18 | @ECHO OFF
19 | SET script_path="%~dp0list-emulator-images"
20 | IF EXIST %script_path% (
21 | node "%script_path%" %*
22 | ) ELSE (
23 | ECHO.
24 | ECHO ERROR: Could not find 'list-emulator-images' script in 'cordova\lib' folder, aborting...>&2
25 | EXIT /B 1
26 | )
27 |
--------------------------------------------------------------------------------
/platforms/android/cordova/lib/list-started-emulators:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | /*
4 | Licensed to the Apache Software Foundation (ASF) under one
5 | or more contributor license agreements. See the NOTICE file
6 | distributed with this work for additional information
7 | regarding copyright ownership. The ASF licenses this file
8 | to you under the Apache License, Version 2.0 (the
9 | "License"); you may not use this file except in compliance
10 | with the License. You may obtain a copy of the License at
11 |
12 | http://www.apache.org/licenses/LICENSE-2.0
13 |
14 | Unless required by applicable law or agreed to in writing,
15 | software distributed under the License is distributed on an
16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | KIND, either express or implied. See the License for the
18 | specific language governing permissions and limitations
19 | under the License.
20 | */
21 |
22 | var emulators = require('./emulator');
23 |
24 | // Usage support for when args are given
25 | emulators.list_started().done(function(emulator_list) {
26 | emulator_list && emulator_list.forEach(function(emu) {
27 | console.log(emu);
28 | });
29 | }, function(err) {
30 | console.error('ERROR: ' + err);
31 | process.exit(2);
32 | });
33 |
--------------------------------------------------------------------------------
/platforms/android/cordova/lib/list-started-emulators.bat:
--------------------------------------------------------------------------------
1 | :: Licensed to the Apache Software Foundation (ASF) under one
2 | :: or more contributor license agreements. See the NOTICE file
3 | :: distributed with this work for additional information
4 | :: regarding copyright ownership. The ASF licenses this file
5 | :: to you under the Apache License, Version 2.0 (the
6 | :: "License"); you may not use this file except in compliance
7 | :: with the License. You may obtain a copy of the License at
8 | ::
9 | :: http://www.apache.org/licenses/LICENSE-2.0
10 | ::
11 | :: Unless required by applicable law or agreed to in writing,
12 | :: software distributed under the License is distributed on an
13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | :: KIND, either express or implied. See the License for the
15 | :: specific language governing permissions and limitations
16 | :: under the License.
17 |
18 | @ECHO OFF
19 | SET script_path="%~dp0list-started-emulators"
20 | IF EXIST %script_path% (
21 | node "%script_path%" %*
22 | ) ELSE (
23 | ECHO.
24 | ECHO ERROR: Could not find 'list-started-emulators' script in 'cordova\lib' folder, aborting...>&2
25 | EXIT /B 1
26 | )
--------------------------------------------------------------------------------
/platforms/android/cordova/lib/start-emulator:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | /*
4 | Licensed to the Apache Software Foundation (ASF) under one
5 | or more contributor license agreements. See the NOTICE file
6 | distributed with this work for additional information
7 | regarding copyright ownership. The ASF licenses this file
8 | to you under the Apache License, Version 2.0 (the
9 | "License"); you may not use this file except in compliance
10 | with the License. You may obtain a copy of the License at
11 |
12 | http://www.apache.org/licenses/LICENSE-2.0
13 |
14 | Unless required by applicable law or agreed to in writing,
15 | software distributed under the License is distributed on an
16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | KIND, either express or implied. See the License for the
18 | specific language governing permissions and limitations
19 | under the License.
20 | */
21 |
22 | var emulator = require('./emulator'),
23 | args = process.argv;
24 |
25 | var install_target;
26 | if(args.length > 2) {
27 | if (args[2].substring(0, 9) == '--target=') {
28 | install_target = args[2].substring(9, args[2].length);
29 | } else {
30 | console.error('ERROR : argument \'' + args[2] + '\' not recognized.');
31 | process.exit(2);
32 | }
33 | }
34 |
35 | emulator.start(install_target).done(null, function(err) {
36 | console.error('ERROR: ' + err);
37 | process.exit(2);
38 | });
39 |
40 |
--------------------------------------------------------------------------------
/platforms/android/cordova/lib/start-emulator.bat:
--------------------------------------------------------------------------------
1 | :: Licensed to the Apache Software Foundation (ASF) under one
2 | :: or more contributor license agreements. See the NOTICE file
3 | :: distributed with this work for additional information
4 | :: regarding copyright ownership. The ASF licenses this file
5 | :: to you under the Apache License, Version 2.0 (the
6 | :: "License"); you may not use this file except in compliance
7 | :: with the License. You may obtain a copy of the License at
8 | ::
9 | :: http://www.apache.org/licenses/LICENSE-2.0
10 | ::
11 | :: Unless required by applicable law or agreed to in writing,
12 | :: software distributed under the License is distributed on an
13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | :: KIND, either express or implied. See the License for the
15 | :: specific language governing permissions and limitations
16 | :: under the License.
17 |
18 | @ECHO OFF
19 | SET script_path="%~dp0start-emulator"
20 | IF EXIST %script_path% (
21 | node "%script_path%" %*
22 | ) ELSE (
23 | ECHO.
24 | ECHO ERROR: Could not find 'start-emulator' script in 'cordova\lib' folder, aborting...>&2
25 | EXIT /B 1
26 | )
--------------------------------------------------------------------------------
/platforms/android/cordova/log:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | /*
4 | Licensed to the Apache Software Foundation (ASF) under one
5 | or more contributor license agreements. See the NOTICE file
6 | distributed with this work for additional information
7 | regarding copyright ownership. The ASF licenses this file
8 | to you under the Apache License, Version 2.0 (the
9 | "License"); you may not use this file except in compliance
10 | with the License. You may obtain a copy of the License at
11 |
12 | http://www.apache.org/licenses/LICENSE-2.0
13 |
14 | Unless required by applicable law or agreed to in writing,
15 | software distributed under the License is distributed on an
16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | KIND, either express or implied. See the License for the
18 | specific language governing permissions and limitations
19 | under the License.
20 | */
21 |
22 | var log = require('./lib/log'),
23 | reqs = require('./lib/check_reqs'),
24 | args = process.argv;
25 |
26 | // Usage support for when args are given
27 | if(args.length > 2) {
28 | log.help();
29 | } else {
30 | reqs.run().done(function() {
31 | return log.run();
32 | }, function(err) {
33 | console.error('ERROR: ' + err);
34 | process.exit(2);
35 | });
36 | }
37 |
--------------------------------------------------------------------------------
/platforms/android/cordova/log.bat:
--------------------------------------------------------------------------------
1 | :: Licensed to the Apache Software Foundation (ASF) under one
2 | :: or more contributor license agreements. See the NOTICE file
3 | :: distributed with this work for additional information
4 | :: regarding copyright ownership. The ASF licenses this file
5 | :: to you under the Apache License, Version 2.0 (the
6 | :: "License"); you may not use this file except in compliance
7 | :: with the License. You may obtain a copy of the License at
8 | ::
9 | :: http://www.apache.org/licenses/LICENSE-2.0
10 | ::
11 | :: Unless required by applicable law or agreed to in writing,
12 | :: software distributed under the License is distributed on an
13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | :: KIND, either express or implied. See the License for the
15 | :: specific language governing permissions and limitations
16 | :: under the License.
17 |
18 | @ECHO OFF
19 | SET script_path="%~dp0log"
20 | IF EXIST %script_path% (
21 | node %script_path% %*
22 | ) ELSE (
23 | ECHO.
24 | ECHO ERROR: Could not find 'log' script in 'cordova' folder, aborting...>&2
25 | EXIT /B 1
26 | )
--------------------------------------------------------------------------------
/platforms/android/cordova/run:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | /*
4 | Licensed to the Apache Software Foundation (ASF) under one
5 | or more contributor license agreements. See the NOTICE file
6 | distributed with this work for additional information
7 | regarding copyright ownership. The ASF licenses this file
8 | to you under the Apache License, Version 2.0 (the
9 | "License"); you may not use this file except in compliance
10 | with the License. You may obtain a copy of the License at
11 |
12 | http://www.apache.org/licenses/LICENSE-2.0
13 |
14 | Unless required by applicable law or agreed to in writing,
15 | software distributed under the License is distributed on an
16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | KIND, either express or implied. See the License for the
18 | specific language governing permissions and limitations
19 | under the License.
20 | */
21 |
22 | var run = require('./lib/run'),
23 | reqs = require('./lib/check_reqs'),
24 | args = process.argv;
25 |
26 | // Support basic help commands
27 | if (args[2] == '--help' || args[2] == '/?' || args[2] == '-h' ||
28 | args[2] == 'help' || args[2] == '-help' || args[2] == '/help') {
29 | run.help(args);
30 | } else {
31 | reqs.run().done(function() {
32 | return run.run(args);
33 | }, function(err) {
34 | console.error('ERROR: ' + err);
35 | process.exit(2);
36 | });
37 | }
38 |
--------------------------------------------------------------------------------
/platforms/android/cordova/run.bat:
--------------------------------------------------------------------------------
1 | :: Licensed to the Apache Software Foundation (ASF) under one
2 | :: or more contributor license agreements. See the NOTICE file
3 | :: distributed with this work for additional information
4 | :: regarding copyright ownership. The ASF licenses this file
5 | :: to you under the Apache License, Version 2.0 (the
6 | :: "License"); you may not use this file except in compliance
7 | :: with the License. You may obtain a copy of the License at
8 | ::
9 | :: http://www.apache.org/licenses/LICENSE-2.0
10 | ::
11 | :: Unless required by applicable law or agreed to in writing,
12 | :: software distributed under the License is distributed on an
13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | :: KIND, either express or implied. See the License for the
15 | :: specific language governing permissions and limitations
16 | :: under the License.
17 |
18 | @ECHO OFF
19 | SET script_path="%~dp0run"
20 | IF EXIST %script_path% (
21 | node %script_path% %*
22 | ) ELSE (
23 | ECHO.
24 | ECHO ERROR: Could not find 'run' script in 'cordova' folder, aborting...>&2
25 | EXIT /B 1
26 | )
--------------------------------------------------------------------------------
/platforms/android/cordova/version:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | /*
4 | Licensed to the Apache Software Foundation (ASF) under one
5 | or more contributor license agreements. See the NOTICE file
6 | distributed with this work for additional information
7 | regarding copyright ownership. The ASF licenses this file
8 | to you under the Apache License, Version 2.0 (the
9 | "License"); you may not use this file except in compliance
10 | with the License. You may obtain a copy of the License at
11 |
12 | http://www.apache.org/licenses/LICENSE-2.0
13 |
14 | Unless required by applicable law or agreed to in writing,
15 | software distributed under the License is distributed on an
16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | KIND, either express or implied. See the License for the
18 | specific language governing permissions and limitations
19 | under the License.
20 | */
21 |
22 | // Coho updates this line:
23 | var VERSION = "4.0.2";
24 |
25 | console.log(VERSION);
26 |
--------------------------------------------------------------------------------
/platforms/android/cordova/version.bat:
--------------------------------------------------------------------------------
1 | :: Licensed to the Apache Software Foundation (ASF) under one
2 | :: or more contributor license agreements. See the NOTICE file
3 | :: distributed with this work for additional information
4 | :: regarding copyright ownership. The ASF licenses this file
5 | :: to you under the Apache License, Version 2.0 (the
6 | :: "License"); you may not use this file except in compliance
7 | :: with the License. You may obtain a copy of the License at
8 | ::
9 | :: http://www.apache.org/licenses/LICENSE-2.0
10 | ::
11 | :: Unless required by applicable law or agreed to in writing,
12 | :: software distributed under the License is distributed on an
13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | :: KIND, either express or implied. See the License for the
15 | :: specific language governing permissions and limitations
16 | :: under the License.
17 |
18 | @ECHO OFF
19 | SET script_path="%~dp0version"
20 | IF EXIST %script_path% (
21 | node %script_path% %*
22 | ) ELSE (
23 | ECHO.
24 | ECHO ERROR: Could not find 'version' script in 'cordova' folder, aborting...>&2
25 | EXIT /B 1
26 | )
27 |
--------------------------------------------------------------------------------
/platforms/android/platform_www/cordova-js-src/android/nativeapiprovider.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Exports the ExposedJsApi.java object if available, otherwise exports the PromptBasedNativeApi.
22 | */
23 |
24 | var nativeApi = this._cordovaNative || require('cordova/android/promptbasednativeapi');
25 | var currentApi = nativeApi;
26 |
27 | module.exports = {
28 | get: function() { return currentApi; },
29 | setPreferPrompt: function(value) {
30 | currentApi = value ? require('cordova/android/promptbasednativeapi') : nativeApi;
31 | },
32 | // Used only by tests.
33 | set: function(value) {
34 | currentApi = value;
35 | }
36 | };
37 |
--------------------------------------------------------------------------------
/platforms/android/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 | # Project target.
13 | target=android-22
14 | android.library.reference.1=CordovaLib
15 |
--------------------------------------------------------------------------------
/platforms/android/res/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/platforms/android/res/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/platforms/android/res/drawable-land-hdpi/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/platforms/android/res/drawable-land-hdpi/screen.png
--------------------------------------------------------------------------------
/platforms/android/res/drawable-land-ldpi/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/platforms/android/res/drawable-land-ldpi/screen.png
--------------------------------------------------------------------------------
/platforms/android/res/drawable-land-mdpi/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/platforms/android/res/drawable-land-mdpi/screen.png
--------------------------------------------------------------------------------
/platforms/android/res/drawable-land-xhdpi/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/platforms/android/res/drawable-land-xhdpi/screen.png
--------------------------------------------------------------------------------
/platforms/android/res/drawable-ldpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/platforms/android/res/drawable-ldpi/icon.png
--------------------------------------------------------------------------------
/platforms/android/res/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/platforms/android/res/drawable-mdpi/icon.png
--------------------------------------------------------------------------------
/platforms/android/res/drawable-port-hdpi/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/platforms/android/res/drawable-port-hdpi/screen.png
--------------------------------------------------------------------------------
/platforms/android/res/drawable-port-ldpi/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/platforms/android/res/drawable-port-ldpi/screen.png
--------------------------------------------------------------------------------
/platforms/android/res/drawable-port-mdpi/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/platforms/android/res/drawable-port-mdpi/screen.png
--------------------------------------------------------------------------------
/platforms/android/res/drawable-port-xhdpi/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/platforms/android/res/drawable-port-xhdpi/screen.png
--------------------------------------------------------------------------------
/platforms/android/res/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/platforms/android/res/drawable-xhdpi/icon.png
--------------------------------------------------------------------------------
/platforms/android/res/drawable/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/platforms/android/res/drawable/icon.png
--------------------------------------------------------------------------------
/platforms/android/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | nodeNr12App
4 | @string/app_name
5 | @string/launcher_name
6 |
7 |
--------------------------------------------------------------------------------
/platforms/android/settings.gradle:
--------------------------------------------------------------------------------
1 | // GENERATED FILE - DO NOT EDIT
2 | include ":"
3 | include ":CordovaLib"
4 |
--------------------------------------------------------------------------------
/platforms/android/src/com/ionicframework/nr12app467575/MainActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | */
19 |
20 | package com.ionicframework.nr12app467575;
21 |
22 | import android.os.Bundle;
23 | import org.apache.cordova.*;
24 |
25 | public class MainActivity extends CordovaActivity
26 | {
27 | @Override
28 | public void onCreate(Bundle savedInstanceState)
29 | {
30 | super.onCreate(savedInstanceState);
31 | // Set by in config.xml
32 | loadUrl(launchUrl);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/platforms/android/src/com/ionicframework/nr12app665857/MainActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | */
19 |
20 | package com.ionicframework.nr12app665857;
21 |
22 | import android.os.Bundle;
23 | import org.apache.cordova.*;
24 |
25 | public class MainActivity extends CordovaActivity
26 | {
27 | @Override
28 | public void onCreate(Bundle savedInstanceState)
29 | {
30 | super.onCreate(savedInstanceState);
31 | // Set by in config.xml
32 | loadUrl(launchUrl);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/platforms/platforms.json:
--------------------------------------------------------------------------------
1 | {
2 | "android": "4.0.2"
3 | }
--------------------------------------------------------------------------------
/plugins/cordova-plugin-console/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Cordova
2 | Copyright 2012 The Apache Software Foundation
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-console/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "cordova-plugin-console",
3 | "version": "1.0.2",
4 | "description": "Cordova Console Plugin",
5 | "cordova": {
6 | "id": "cordova-plugin-console",
7 | "platforms": [
8 | "ios",
9 | "ubuntu",
10 | "wp7",
11 | "wp8",
12 | "windows8",
13 | "windows"
14 | ]
15 | },
16 | "repository": {
17 | "type": "git",
18 | "url": "https://github.com/apache/cordova-plugin-console"
19 | },
20 | "keywords": [
21 | "cordova",
22 | "console",
23 | "ecosystem:cordova",
24 | "cordova-ios",
25 | "cordova-ubuntu",
26 | "cordova-wp7",
27 | "cordova-wp8",
28 | "cordova-windows8",
29 | "cordova-windows"
30 | ],
31 | "author": "Apache Software Foundation",
32 | "license": "Apache 2.0"
33 | }
34 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-console/src/ios/CDVLogger.h:
--------------------------------------------------------------------------------
1 | /*
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | */
19 |
20 | #import
21 |
22 | @interface CDVLogger : CDVPlugin
23 |
24 | - (void)logLevel:(CDVInvokedUrlCommand*)command;
25 |
26 | @end
27 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-console/src/ios/CDVLogger.m:
--------------------------------------------------------------------------------
1 | /*
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | */
19 |
20 | #import "CDVLogger.h"
21 | #import
22 |
23 | @implementation CDVLogger
24 |
25 | /* log a message */
26 | - (void)logLevel:(CDVInvokedUrlCommand*)command
27 | {
28 | id level = [command argumentAtIndex:0];
29 | id message = [command argumentAtIndex:1];
30 |
31 | if ([level isEqualToString:@"LOG"]) {
32 | NSLog(@"%@", message);
33 | } else {
34 | NSLog(@"%@: %@", level, message);
35 | }
36 | }
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-console/src/ubuntu/console.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed under the Apache License, Version 2.0 (the "License");
3 | * you may not use this file except in compliance with the License.
4 | * You may obtain a copy of the License at
5 | *
6 | * http://www.apache.org/licenses/LICENSE-2.0
7 | *
8 | * Unless required by applicable law or agreed to in writing, software
9 | * distributed under the License is distributed on an "AS IS" BASIS,
10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | * See the License for the specific language governing permissions and
12 | * limitations under the License.
13 | */
14 |
15 | #include "console.h"
16 |
17 | #include
18 |
19 | Console::Console(Cordova *cordova) : CPlugin(cordova) {
20 | }
21 |
22 | void Console::logLevel(int scId, int ecId, QString level, QString message) {
23 | Q_UNUSED(scId)
24 | Q_UNUSED(ecId)
25 |
26 | if (level != "LOG")
27 | std::cout << "[" << level.toStdString() << "] ";
28 | std::cout << message.toStdString() << std::endl;
29 | }
30 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-console/src/ubuntu/console.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed under the Apache License, Version 2.0 (the "License");
3 | * you may not use this file except in compliance with the License.
4 | * You may obtain a copy of the License at
5 | *
6 | * http://www.apache.org/licenses/LICENSE-2.0
7 | *
8 | * Unless required by applicable law or agreed to in writing, software
9 | * distributed under the License is distributed on an "AS IS" BASIS,
10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | * See the License for the specific language governing permissions and
12 | * limitations under the License.
13 | */
14 |
15 | #ifndef CONSOLE_H_FDSVCXGFRS
16 | #define CONSOLE_H_FDSVCXGFRS
17 |
18 | #include
19 |
20 | #include
21 |
22 | class Console : public CPlugin {
23 | Q_OBJECT
24 | public:
25 | explicit Console(Cordova *cordova);
26 |
27 | virtual const QString fullName() override {
28 | return Console::fullID();
29 | }
30 |
31 | virtual const QString shortName() override {
32 | return "Console";
33 | }
34 |
35 | static const QString fullID() {
36 | return "Console";
37 | }
38 |
39 | public slots:
40 | void logLevel(int scId, int ecId, QString level, QString message);
41 | };
42 |
43 | #endif
44 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-console/tests/plugin.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
26 | Cordova Console Plugin Tests
27 | Apache 2.0
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-device/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Cordova
2 | Copyright 2012 The Apache Software Foundation
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-device/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "cordova-plugin-device",
3 | "version": "1.1.0",
4 | "description": "Cordova Device Plugin",
5 | "cordova": {
6 | "id": "cordova-plugin-device",
7 | "platforms": [
8 | "firefoxos",
9 | "tizen",
10 | "android",
11 | "amazon-fireos",
12 | "ubuntu",
13 | "ios",
14 | "blackberry10",
15 | "wp7",
16 | "wp8",
17 | "windows8",
18 | "windows",
19 | "browser"
20 | ]
21 | },
22 | "repository": {
23 | "type": "git",
24 | "url": "https://github.com/apache/cordova-plugin-device"
25 | },
26 | "keywords": [
27 | "cordova",
28 | "device",
29 | "ecosystem:cordova",
30 | "cordova-firefoxos",
31 | "cordova-tizen",
32 | "cordova-android",
33 | "cordova-amazon-fireos",
34 | "cordova-ubuntu",
35 | "cordova-ios",
36 | "cordova-blackberry10",
37 | "cordova-wp7",
38 | "cordova-wp8",
39 | "cordova-windows8",
40 | "cordova-windows",
41 | "cordova-browser"
42 | ],
43 | "author": "Apache Software Foundation",
44 | "license": "Apache 2.0"
45 | }
46 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-device/src/ios/CDVDevice.h:
--------------------------------------------------------------------------------
1 | /*
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | */
19 |
20 | #import
21 | #import
22 |
23 | @interface CDVDevice : CDVPlugin
24 | {}
25 |
26 | + (NSString*)cordovaVersion;
27 |
28 | - (void)getDeviceInfo:(CDVInvokedUrlCommand*)command;
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-device/src/tizen/DeviceProxy.js:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Licensed to the Apache Software Foundation (ASF) under one
4 | * or more contributor license agreements. See the NOTICE file
5 | * distributed with this work for additional information
6 | * regarding copyright ownership. The ASF licenses this file
7 | * to you under the Apache License, Version 2.0 (the
8 | * "License"); you may not use this file except in compliance
9 | * with the License. You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing,
14 | * software distributed under the License is distributed on an
15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | * KIND, either express or implied. See the License for the
17 | * specific language governing permissions and limitations
18 | * under the License.
19 | *
20 | */
21 |
22 | var tizen = require('cordova/platform');
23 | var cordova = require('cordova');
24 |
25 | module.exports = {
26 | getDeviceInfo: function(success, error) {
27 | setTimeout(function () {
28 | success({
29 | cordova: tizen.cordovaVersion,
30 | platform: 'tizen',
31 | model: null,
32 | version: null,
33 | uuid: null
34 | });
35 | }, 0);
36 | }
37 | };
38 |
39 | require("cordova/tizen/commandProxy").add("Device", module.exports);
40 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-device/src/ubuntu/device.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2011 Wolfgang Koller - http://www.gofg.at/
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef DEVICE_H_FDSAFAS
18 | #define DEVICE_H_FDSAFAS
19 |
20 | #include
21 |
22 | #include
23 |
24 | class Device: public CPlugin {
25 | Q_OBJECT
26 | public:
27 | explicit Device(Cordova *cordova);
28 |
29 | virtual const QString fullName() override {
30 | return Device::fullID();
31 | }
32 |
33 | virtual const QString shortName() override {
34 | return "Device";
35 | }
36 |
37 | static const QString fullID() {
38 | return "com.cordova.Device";
39 | }
40 |
41 | signals:
42 |
43 | public slots:
44 | void getInfo(int scId, int ecId);
45 | };
46 |
47 | #endif
48 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-device/src/ubuntu/device.js:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Licensed to the Apache Software Foundation (ASF) under one
4 | * or more contributor license agreements. See the NOTICE file
5 | * distributed with this work for additional information
6 | * regarding copyright ownership. The ASF licenses this file
7 | * to you under the Apache License, Version 2.0 (the
8 | * "License"); you may not use this file except in compliance
9 | * with the License. You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing,
14 | * software distributed under the License is distributed on an
15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | * KIND, either express or implied. See the License for the
17 | * specific language governing permissions and limitations
18 | * under the License.
19 | *
20 | */
21 |
22 | var cordova = require('cordova');
23 | var exec = require('cordova/exec');
24 |
25 | module.exports = {
26 | getInfo:function(win,fail,args) {
27 | Cordova.exec(function (model, cordova, platform, uuid, version) {
28 | win({name: name, model: model, cordova: cordova,
29 | platform: platform, uuid: uuid, version: version});
30 | }, null, "com.cordova.Device", "getInfo", []);
31 | }
32 | };
33 |
34 | require("cordova/exec/proxy").add("Device", module.exports);
35 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-device/tests/plugin.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
26 | Cordova Device Plugin Tests
27 | Apache 2.0
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-splashscreen/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Cordova
2 | Copyright 2012 The Apache Software Foundation
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-splashscreen/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "cordova-plugin-splashscreen",
3 | "version": "3.0.0",
4 | "description": "Cordova Splashscreen Plugin",
5 | "cordova": {
6 | "id": "cordova-plugin-splashscreen",
7 | "platforms": [
8 | "android",
9 | "amazon-fireos",
10 | "ubuntu",
11 | "ios",
12 | "blackberry10",
13 | "wp8",
14 | "windows8",
15 | "windows",
16 | "tizen"
17 | ]
18 | },
19 | "repository": {
20 | "type": "git",
21 | "url": "https://github.com/apache/cordova-plugin-splashscreen"
22 | },
23 | "keywords": [
24 | "cordova",
25 | "splashscreen",
26 | "ecosystem:cordova",
27 | "cordova-android",
28 | "cordova-amazon-fireos",
29 | "cordova-ubuntu",
30 | "cordova-ios",
31 | "cordova-blackberry10",
32 | "cordova-wp8",
33 | "cordova-windows8",
34 | "cordova-windows",
35 | "cordova-tizen"
36 | ],
37 | "engines": [
38 | {
39 | "name": "cordova-android",
40 | "version": ">=3.6.0"
41 | }
42 | ],
43 | "author": "Apache Software Foundation",
44 | "license": "Apache 2.0"
45 | }
46 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-splashscreen/src/blackberry10/index.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2013 Research In Motion Limited.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | module.exports = {
18 | show: function (success, fail, args, env) {
19 | var result = new PluginResult(args, env);
20 | result.error("Not supported on platform", false);
21 | },
22 |
23 | hide: function (success, fail, args, env) {
24 | var result = new PluginResult(args, env);
25 | window.qnx.webplatform.getApplication().windowVisible = true;
26 | result.ok(undefined, false);
27 | }
28 | };
29 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-splashscreen/src/ios/CDVSplashScreen.h:
--------------------------------------------------------------------------------
1 | /*
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | */
19 |
20 | #import
21 | #import
22 |
23 | typedef struct {
24 | BOOL iPhone;
25 | BOOL iPad;
26 | BOOL iPhone5;
27 | BOOL iPhone6;
28 | BOOL iPhone6Plus;
29 | BOOL retina;
30 |
31 | } CDV_iOSDevice;
32 |
33 | @interface CDVSplashScreen : CDVPlugin {
34 | UIActivityIndicatorView* _activityView;
35 | UIImageView* _imageView;
36 | NSString* _curImageName;
37 | BOOL _visible;
38 | }
39 |
40 | - (void)show:(CDVInvokedUrlCommand*)command;
41 | - (void)hide:(CDVInvokedUrlCommand*)command;
42 |
43 | @end
44 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-splashscreen/src/ios/CDVViewController+SplashScreen.h:
--------------------------------------------------------------------------------
1 | /*
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | */
19 |
20 | #import
21 |
22 | @interface CDVViewController (SplashScreen)
23 |
24 | @property (nonatomic, assign) BOOL enabledAutorotation;
25 | @property (nonatomic, readonly) BOOL shouldAutorotateDefaultValue;
26 |
27 |
28 | @end
29 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-splashscreen/src/tizen/SplashScreenProxy.js:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Licensed to the Apache Software Foundation (ASF) under one
4 | * or more contributor license agreements. See the NOTICE file
5 | * distributed with this work for additional information
6 | * regarding copyright ownership. The ASF licenses this file
7 | * to you under the Apache License, Version 2.0 (the
8 | * "License"); you may not use this file except in compliance
9 | * with the License. You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing,
14 | * software distributed under the License is distributed on an
15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | * KIND, either express or implied. See the License for the
17 | * specific language governing permissions and limitations
18 | * under the License.
19 | *
20 | */
21 |
22 | ( function() {
23 |
24 | win = null;
25 |
26 | module.exports = {
27 | show: function() {
28 | if ( win === null ) {
29 | win = window.open('splashscreen.html');
30 | }
31 | },
32 |
33 | hide: function() {
34 | if ( win !== null ) {
35 | win.close();
36 | win = null;
37 | }
38 | }
39 | };
40 |
41 | require("cordova/tizen/commandProxy").add("SplashScreen", module.exports);
42 |
43 | })();
44 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-splashscreen/src/ubuntu/splashscreen.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Copyright 2013 Canonical Ltd.
4 | *
5 | * Licensed to the Apache Software Foundation (ASF) under one
6 | * or more contributor license agreements. See the NOTICE file
7 | * distributed with this work for additional information
8 | * regarding copyright ownership. The ASF licenses this file
9 | * to you under the Apache License, Version 2.0 (the
10 | * "License"); you may not use this file except in compliance
11 | * with the License. You may obtain a copy of the License at
12 | *
13 | * http://www.apache.org/licenses/LICENSE-2.0
14 | *
15 | * Unless required by applicable law or agreed to in writing,
16 | * software distributed under the License is distributed on an
17 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18 | * KIND, either express or implied. See the License for the
19 | * specific language governing permissions and limitations
20 | * under the License.
21 | *
22 | */
23 |
24 | #include
25 |
26 | #include "splashscreen.h"
27 | #include
28 |
29 | #define SPLASHSCREEN_STATE_NAME "splashscreen"
30 |
31 | Splashscreen::Splashscreen(Cordova *cordova): CPlugin(cordova) {
32 | }
33 |
34 | void Splashscreen::show(int, int) {
35 | m_cordova->rootObject()->setProperty("splashscreenPath", m_cordova->getSplashscreenPath());
36 |
37 | m_cordova->pushViewState(SPLASHSCREEN_STATE_NAME);
38 | }
39 |
40 | void Splashscreen::hide(int, int) {
41 | m_cordova->popViewState(SPLASHSCREEN_STATE_NAME);
42 | }
43 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-splashscreen/src/wp/ResolutionHelper.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Licensed under the Apache License, Version 2.0 (the "License");
3 | you may not use this file except in compliance with the License.
4 | You may obtain a copy of the License at
5 |
6 | http://www.apache.org/licenses/LICENSE-2.0
7 |
8 | Unless required by applicable law or agreed to in writing, software
9 | distributed under the License is distributed on an "AS IS" BASIS,
10 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | See the License for the specific language governing permissions and
12 | limitations under the License.
13 | */
14 |
15 | using Microsoft.Phone.Info;
16 | using System;
17 | using System.Windows;
18 |
19 | namespace WPCordovaClassLib.Cordova.Commands
20 | {
21 | public enum Resolutions { WVGA, WXGA, HD };
22 |
23 | public static class ResolutionHelper
24 | {
25 | public static Resolutions CurrentResolution
26 | {
27 | get
28 | {
29 | switch (Application.Current.Host.Content.ScaleFactor)
30 | {
31 | case 100: return Resolutions.WVGA;
32 | case 160: return Resolutions.WXGA;
33 | case 150: return Resolutions.HD;
34 | }
35 | throw new InvalidOperationException("Unknown resolution");
36 | }
37 | }
38 | }
39 | }
--------------------------------------------------------------------------------
/plugins/cordova-plugin-splashscreen/tests/ios/CDVSplashScreenTest.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-splashscreen/tests/ios/CDVSplashScreenTest/.npmignore:
--------------------------------------------------------------------------------
1 | build
--------------------------------------------------------------------------------
/plugins/cordova-plugin-splashscreen/tests/ios/CDVSplashScreenTest/CDVSplashScreenTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-splashscreen/tests/ios/doc/ja/README.md:
--------------------------------------------------------------------------------
1 |
19 |
20 | # CDVSplashScreen の iOS のテスト
21 |
22 | `Node.js` `コルドバ`ios をプルするをインストールする必要があります。.
23 |
24 | コルドバ ios をインストールします。
25 |
26 | npm install
27 |
28 |
29 | 現在のフォルダーに.
30 |
31 | # Xcode からテスト
32 |
33 | 1. `CDVSplashScreenTest.xcworkspace`ファイルを起動します。
34 | 2. スキーム] ドロップダウン メニューから"CDVSplashScreenLibTests"を選択します。
35 | 3. クリックし、`再生`ボタンを押し、テストを実行する`レンチ`のアイコンを選択
36 |
37 | # コマンドラインからテスト
38 |
39 | npm test
40 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-splashscreen/tests/ios/doc/ko/README.md:
--------------------------------------------------------------------------------
1 |
19 |
20 | # CDVSplashScreen에 대 한 iOS 테스트
21 |
22 | `Node.js` `코르도바` ios에서를 설치 해야.
23 |
24 | 코르도바-ios를 설치 하는 첫번째는:
25 |
26 | npm install
27 |
28 |
29 | 현재 폴더에....
30 |
31 | # Xcode에서 테스트
32 |
33 | 1. `CDVSplashScreenTest.xcworkspace` 파일을 시작 합니다.
34 | 2. 구성표 드롭 다운 메뉴에서 "CDVSplashScreenLibTests"를 선택
35 | 3. 클릭 하 고 `재생` 버튼에는 테스트를 실행 하려면 `공구 모양` 아이콘을 선택
36 |
37 | # 명령줄에서 테스트
38 |
39 | npm test
40 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-splashscreen/tests/ios/doc/pl/README.md:
--------------------------------------------------------------------------------
1 |
19 |
20 | # iOS testy dla CDVSplashScreen
21 |
22 | Musisz zainstalować `node.js` ciągnąć w `cordova-ios`.
23 |
24 | Najpierw zainstalować cordova-ios:
25 |
26 | npm install
27 |
28 |
29 | ... w folderze bieżącym.
30 |
31 | # Badania z Xcode
32 |
33 | 1. Uruchom plik `CDVSplashScreenTest.xcworkspace` .
34 | 2. Wybierz z menu rozwijanego systemu "CDVSplashScreenLibTests"
35 | 3. Kliknij i przytrzymaj przycisk `Play` i wybrać ikonę `klucz` do testów
36 |
37 | # Badania z wiersza polecenia
38 |
39 | npm test
40 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-splashscreen/tests/ios/doc/zh/README.md:
--------------------------------------------------------------------------------
1 |
19 |
20 | # CDVSplashScreen 的 iOS 測試
21 |
22 | 您需要安裝`node.js`拉`科爾多瓦 ios`中.
23 |
24 | 第一次安裝科爾多瓦 ios:
25 |
26 | npm install
27 |
28 |
29 | 在當前資料夾中。
30 |
31 | # 從 Xcode 測試
32 |
33 | 1. 啟動`CDVSplashScreenTest.xcworkspace`檔。
34 | 2. 從方案下拉式功能表中選擇"CDVSplashScreenLibTests"
35 | 3. 按一下並堅持`播放`按鈕,然後選擇要運行的測試的`扳手`圖示
36 |
37 | # 從命令列測試
38 |
39 | npm test
40 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-splashscreen/tests/ios/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "cordova-plugin-splashscreen-test-ios",
3 | "version": "1.0.0",
4 | "description": "iOS Unit Tests for Splashscreen Plugin",
5 | "author": "Apache Software Foundation",
6 | "license": "Apache Version 2.0",
7 | "dependencies": {
8 | "cordova-ios": "^3.6.0"
9 | },
10 | "scripts": {
11 | "test": "xcodebuild test -workspace CDVSplashScreenTest.xcworkspace -scheme CDVSplashScreenLibTests -destination 'platform=iOS Simulator,name=iPhone 5' CONFIGURATION_BUILD_DIR='/tmp'"
12 | }
13 | }
--------------------------------------------------------------------------------
/plugins/cordova-plugin-splashscreen/tests/plugin.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
24 | Cordova Splashscreen Plugin Tests
25 | Apache 2.0
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-splashscreen/www/splashscreen.js:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Licensed to the Apache Software Foundation (ASF) under one
4 | * or more contributor license agreements. See the NOTICE file
5 | * distributed with this work for additional information
6 | * regarding copyright ownership. The ASF licenses this file
7 | * to you under the Apache License, Version 2.0 (the
8 | * "License"); you may not use this file except in compliance
9 | * with the License. You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing,
14 | * software distributed under the License is distributed on an
15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | * KIND, either express or implied. See the License for the
17 | * specific language governing permissions and limitations
18 | * under the License.
19 | *
20 | */
21 |
22 | var exec = require('cordova/exec');
23 |
24 | var splashscreen = {
25 | show:function() {
26 | exec(null, null, "SplashScreen", "show", []);
27 | },
28 | hide:function() {
29 | exec(null, null, "SplashScreen", "hide", []);
30 | }
31 | };
32 |
33 | module.exports = splashscreen;
34 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-statusbar/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Cordova
2 | Copyright 2012 The Apache Software Foundation
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-statusbar/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "cordova-plugin-statusbar",
3 | "version": "2.0.0",
4 | "description": "Cordova StatusBar Plugin",
5 | "cordova": {
6 | "id": "cordova-plugin-statusbar",
7 | "platforms": [
8 | "android",
9 | "ios",
10 | "wp7",
11 | "wp8",
12 | "windows"
13 | ]
14 | },
15 | "repository": {
16 | "type": "git",
17 | "url": "https://github.com/apache/cordova-plugin-statusbar"
18 | },
19 | "keywords": [
20 | "cordova",
21 | "statusbar",
22 | "ecosystem:cordova",
23 | "cordova-android",
24 | "cordova-ios",
25 | "cordova-wp7",
26 | "cordova-wp8",
27 | "cordova-windows"
28 | ],
29 | "engines": [
30 | {
31 | "name": "cordova",
32 | "version": ">=3.0.0"
33 | }
34 | ],
35 | "author": "Apache Software Foundation",
36 | "license": "Apache 2.0"
37 | }
38 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-statusbar/tests/plugin.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
26 | Cordova StatusBar Plugin Tests
27 | Apache 2.0
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-whitelist/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Cordova
2 | Copyright 2012 The Apache Software Foundation
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-whitelist/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "cordova-plugin-whitelist",
3 | "version": "1.2.0",
4 | "description": "Cordova Whitelist Plugin",
5 | "cordova": {
6 | "platforms": [
7 | "android"
8 | ]
9 | },
10 | "repository": {
11 | "type": "git",
12 | "url": "https://github.com/apache/cordova-plugin-whitelist"
13 | },
14 | "keywords": [
15 | "cordova",
16 | "whitelist",
17 | "ecosystem:cordova",
18 | "cordova-android"
19 | ],
20 | "engines": [
21 | {
22 | "name": "cordova-android",
23 | "version": ">=4.0.0-dev"
24 | }
25 | ],
26 | "author": "Apache Software Foundation",
27 | "license": "Apache 2.0"
28 | }
29 |
--------------------------------------------------------------------------------
/plugins/cordova-plugin-whitelist/whitelist.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | *
19 | */
20 |
21 | if (!document.querySelector('meta[http-equiv=Content-Security-Policy]')) {
22 | var msg = 'No Content-Security-Policy meta tag found. Please add one when using the cordova-plugin-whitelist plugin.';
23 | console.error(msg);
24 | setInterval(function() {
25 | console.warn(msg);
26 | }, 10000);
27 | }
28 |
--------------------------------------------------------------------------------
/plugins/fetch.json:
--------------------------------------------------------------------------------
1 | {
2 | "cordova-plugin-device": {
3 | "source": {
4 | "type": "registry",
5 | "id": "cordova-plugin-device"
6 | },
7 | "is_top_level": true,
8 | "variables": {}
9 | },
10 | "cordova-plugin-console": {
11 | "source": {
12 | "type": "registry",
13 | "id": "cordova-plugin-console"
14 | },
15 | "is_top_level": true,
16 | "variables": {}
17 | },
18 | "cordova-plugin-whitelist": {
19 | "source": {
20 | "type": "registry",
21 | "id": "cordova-plugin-whitelist"
22 | },
23 | "is_top_level": true,
24 | "variables": {}
25 | },
26 | "cordova-plugin-splashscreen": {
27 | "source": {
28 | "type": "registry",
29 | "id": "cordova-plugin-splashscreen"
30 | },
31 | "is_top_level": true,
32 | "variables": {}
33 | },
34 | "cordova-plugin-statusbar": {
35 | "source": {
36 | "type": "registry",
37 | "id": "cordova-plugin-statusbar"
38 | },
39 | "is_top_level": true,
40 | "variables": {}
41 | },
42 | "ionic-plugin-keyboard": {
43 | "source": {
44 | "type": "registry",
45 | "id": "ionic-plugin-keyboard"
46 | },
47 | "is_top_level": true,
48 | "variables": {}
49 | }
50 | }
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ionic-plugin-keyboard",
3 | "version": "1.0.8",
4 | "cordova": {
5 | "id": "ionic-plugin-keyboard",
6 | "platforms": [
7 | "android",
8 | "ios",
9 | "blackberry10",
10 | "wp8",
11 | "windows"
12 | ]
13 | },
14 | "description": "Ionic Keyboard Plugin",
15 | "repository": "https://github.com/driftyco/ionic-plugin-keyboard.git",
16 | "issue": "https://github.com/driftyco/ionic-plugin-keyboard/issues",
17 | "keywords": [
18 | "ionic",
19 | "cordova",
20 | "keyboard",
21 | "ecosystem:cordova",
22 | "cordova-android",
23 | "cordova-ios",
24 | "cordova-blackberry10",
25 | "cordova-wp8",
26 | "cordova-windows"
27 | ],
28 | "author": "Ionic",
29 | "license": "Apache 2.0"
30 | }
31 |
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/libKeyboard.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/libKeyboard.so
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/json_reader.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/json_reader.o
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/json_value.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/json_value.o
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/json_writer.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/json_writer.o
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/plugin.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/plugin.o
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/tokenizer.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/tokenizer.o
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/CallKeyboard.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/CallKeyboard.o
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/Logger.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/Logger.o
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/keyboard_js.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/keyboard_js.o
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/keyboard_ndk.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/keyboard_ndk.o
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/public/json/autolink.h:
--------------------------------------------------------------------------------
1 | #ifndef JSON_AUTOLINK_H_INCLUDED
2 | # define JSON_AUTOLINK_H_INCLUDED
3 |
4 | # include "config.h"
5 |
6 | # ifdef JSON_IN_CPPTL
7 | # include
8 | # endif
9 |
10 | # if !defined(JSON_NO_AUTOLINK) && !defined(JSON_DLL_BUILD) && !defined(JSON_IN_CPPTL)
11 | # define CPPTL_AUTOLINK_NAME "json"
12 | # undef CPPTL_AUTOLINK_DLL
13 | # ifdef JSON_DLL
14 | # define CPPTL_AUTOLINK_DLL
15 | # endif
16 | # include "autolink.h"
17 | # endif
18 |
19 | #endif // JSON_AUTOLINK_H_INCLUDED
20 |
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/public/json/features.h:
--------------------------------------------------------------------------------
1 | #ifndef CPPTL_JSON_FEATURES_H_INCLUDED
2 | # define CPPTL_JSON_FEATURES_H_INCLUDED
3 |
4 | # include "forwards.h"
5 |
6 | namespace Json {
7 |
8 | /** \brief Configuration passed to reader and writer.
9 | * This configuration object can be used to force the Reader or Writer
10 | * to behave in a standard conforming way.
11 | */
12 | class JSON_API Features
13 | {
14 | public:
15 | /** \brief A configuration that allows all features and assumes all strings are UTF-8.
16 | * - C & C++ comments are allowed
17 | * - Root object can be any JSON value
18 | * - Assumes Value strings are encoded in UTF-8
19 | */
20 | static Features all();
21 |
22 | /** \brief A configuration that is strictly compatible with the JSON specification.
23 | * - Comments are forbidden.
24 | * - Root object must be either an array or an object value.
25 | * - Assumes Value strings are encoded in UTF-8
26 | */
27 | static Features strictMode();
28 |
29 | /** \brief Initialize the configuration like JsonConfig::allFeatures;
30 | */
31 | Features();
32 |
33 | /// \c true if comments are allowed. Default: \c true.
34 | bool allowComments_;
35 |
36 | /// \c true if root must be either an array or an object value. Default: \c false.
37 | bool strictRoot_;
38 | };
39 |
40 | } // namespace Json
41 |
42 | #endif // CPPTL_JSON_FEATURES_H_INCLUDED
43 |
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/public/json/forwards.h:
--------------------------------------------------------------------------------
1 | #ifndef JSON_FORWARDS_H_INCLUDED
2 | # define JSON_FORWARDS_H_INCLUDED
3 |
4 | # include "config.h"
5 |
6 | namespace Json {
7 |
8 | // writer.h
9 | class FastWriter;
10 | class StyledWriter;
11 |
12 | // reader.h
13 | class Reader;
14 |
15 | // features.h
16 | class Features;
17 |
18 | // value.h
19 | typedef int Int;
20 | typedef unsigned int UInt;
21 | class StaticString;
22 | class Path;
23 | class PathArgument;
24 | class Value;
25 | class ValueIteratorBase;
26 | class ValueIterator;
27 | class ValueConstIterator;
28 | #ifdef JSON_VALUE_USE_INTERNAL_MAP
29 | class ValueAllocator;
30 | class ValueMapAllocator;
31 | class ValueInternalLink;
32 | class ValueInternalArray;
33 | class ValueInternalMap;
34 | #endif // #ifdef JSON_VALUE_USE_INTERNAL_MAP
35 |
36 | } // namespace Json
37 |
38 |
39 | #endif // JSON_FORWARDS_H_INCLUDED
40 |
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/public/json/json.h:
--------------------------------------------------------------------------------
1 | #ifndef JSON_JSON_H_INCLUDED
2 | # define JSON_JSON_H_INCLUDED
3 |
4 | # include "autolink.h"
5 | # include "value.h"
6 | # include "reader.h"
7 | # include "writer.h"
8 | # include "features.h"
9 |
10 | #endif // JSON_JSON_H_INCLUDED
11 |
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/public/tokenizer.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/public/tokenizer.cpp
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/public/tokenizer.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/public/tokenizer.h
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/libKeyboard.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/libKeyboard.so
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/json_reader.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/json_reader.o
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/json_value.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/json_value.o
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/json_writer.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/json_writer.o
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/plugin.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/plugin.o
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/tokenizer.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/tokenizer.o
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/CallKeyboard.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/CallKeyboard.o
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/Logger.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/Logger.o
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/keyboard_js.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/keyboard_js.o
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/keyboard_ndk.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/felisio/ionic-es6-webpack/30f5226c695633285ae6224b79bbd4d340fec34a/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/keyboard_ndk.o
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/blackberry10/native/src/keyboard_js.hpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2013 BlackBerry Limited
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef Keyboard_JS_HPP_
18 | #define Keyboard_JS_HPP_
19 |
20 | #include
21 | #include "../public/plugin.h"
22 | #include "keyboard_ndk.hpp"
23 | #include "Logger.hpp"
24 |
25 |
26 | class Keyboard_JS: public JSExt {
27 |
28 | public:
29 | explicit Keyboard_JS(const std::string& id);
30 | virtual ~Keyboard_JS();
31 | virtual bool CanDelete();
32 | virtual std::string InvokeMethod(const std::string& command);
33 | void NotifyEvent(const std::string& event);
34 | webworks::Logger* getLog();
35 | private:
36 | std::string m_id;
37 | webworks::Keyboard_NDK *m_pKeyboardController;
38 | webworks::Logger *m_pLogger;
39 |
40 | };
41 |
42 | #endif /* Keyboard_JS_HPP_ */
43 |
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/ios/IonicKeyboard.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface IonicKeyboard : CDVPlugin {
4 | @protected
5 | id _keyboardShowObserver, _keyboardHideObserver;
6 | }
7 |
8 | @property (readwrite, assign) BOOL hideKeyboardAccessoryBar;
9 | @property (readwrite, assign) BOOL disableScroll;
10 | //@property (readwrite, assign) BOOL styleDark;
11 |
12 | @end
13 |
14 |
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/ios/UIWebViewExtension.h:
--------------------------------------------------------------------------------
1 | @interface UIWebView (HackishAccessoryHiding)
2 | @property (nonatomic, assign) BOOL hackishlyHidesInputAccessoryView;
3 | //@property (nonatomic, assign) BOOL styleDark;
4 | @end
5 |
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/src/windows/KeyboardProxy.js:
--------------------------------------------------------------------------------
1 |
2 | /*global Windows, WinJS, cordova, module, require*/
3 |
4 | var inputPane = Windows.UI.ViewManagement.InputPane.getForCurrentView();
5 | var keyboardScrollDisabled = false;
6 |
7 | inputPane.addEventListener('hiding', function() {
8 | cordova.fireWindowEvent('native.keyboardhide');
9 | cordova.plugins.Keyboard.isVisible = false;
10 | });
11 |
12 | inputPane.addEventListener('showing', function(e) {
13 | if (keyboardScrollDisabled) {
14 | // this disables automatic scrolling of view contents to show focused control
15 | e.ensuredFocusedElementInView = true;
16 | }
17 | cordova.fireWindowEvent('native.keyboardshow', { keyboardHeight: e.occludedRect.height });
18 | cordova.plugins.Keyboard.isVisible = true;
19 | });
20 |
21 | module.exports.disableScroll = function (disable) {
22 | keyboardScrollDisabled = disable;
23 | };
24 |
25 | module.exports.show = function () {
26 | if (typeof inputPane.tryShow === 'function') {
27 | inputPane.tryShow();
28 | }
29 | };
30 |
31 | module.exports.close = function () {
32 | if (typeof inputPane.tryShow === 'function') {
33 | inputPane.tryHide();
34 | }
35 | };
36 |
37 | require("cordova/exec/proxy").add("Keyboard", module.exports);
38 |
--------------------------------------------------------------------------------
/plugins/ionic-plugin-keyboard/www/ios/keyboard.js:
--------------------------------------------------------------------------------
1 |
2 | var argscheck = require('cordova/argscheck'),
3 | utils = require('cordova/utils'),
4 | exec = require('cordova/exec');
5 |
6 |
7 | var Keyboard = function() {
8 | };
9 |
10 | Keyboard.hideKeyboardAccessoryBar = function(hide) {
11 | exec(null, null, "Keyboard", "hideKeyboardAccessoryBar", [hide]);
12 | };
13 |
14 | Keyboard.close = function() {
15 | exec(null, null, "Keyboard", "close", []);
16 | };
17 |
18 | Keyboard.show = function() {
19 | exec(null, null, "Keyboard", "show", []);
20 | };
21 |
22 | Keyboard.disableScroll = function(disable) {
23 | exec(null, null, "Keyboard", "disableScroll", [disable]);
24 | };
25 |
26 | /*
27 | Keyboard.styleDark = function(dark) {
28 | exec(null, null, "Keyboard", "styleDark", [dark]);
29 | };
30 | */
31 |
32 | Keyboard.isVisible = false;
33 |
34 | module.exports = Keyboard;
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/spec.bundle.js:
--------------------------------------------------------------------------------
1 | /*
2 | * When testing with Webpack and ES6, we have to do some
3 | * preliminary setup. Because we are writing our tests also in ES6,
4 | * we must transpile those as well, which is handled inside
5 | * `karma.conf.js` via the `karma-webpack` plugin. This is the entry
6 | * file for the Webpack tests. Similarly to how Webpack creates a
7 | * `bundle.js` file for the compressed app source files, when we
8 | * run our tests, Webpack, likewise, compiles and bundles those tests here.
9 | */
10 |
11 | import angular from 'angular';
12 | // Built by the core Angular team for mocking dependencies
13 | import mocks from 'angular-mocks';
14 |
15 | // We use the context method on `require` which Webpack created
16 | // in order to signify which files we actually want to require or import.
17 | // Below, `context` will be a/an function/object with file names as keys.
18 | // Using that regex, we scan within `client/app` and target
19 | // all files ending with `.spec.js` and trace its path.
20 | // By passing in true, we permit this process to occur recursively.
21 | let context = require.context('./client/app', true, /\.spec\.js/);
22 |
23 | // Get all files, for each file, call the context function
24 | // that will require the file and load it here. Context will
25 | // loop and require those spec files here.
26 | context.keys().forEach(context);
27 |
--------------------------------------------------------------------------------
/webpack.config.js:
--------------------------------------------------------------------------------
1 |
2 | module.exports = {
3 | devtool: 'sourcemap',
4 | output: {
5 | filename: 'bundle.js'
6 | },
7 | module: {
8 | loaders: [
9 | { test: /\.js$/, exclude: [/app\/lib/, /node_modules/], loader: 'ng-annotate!babel' },
10 | { test: /\.html$/, loader: 'raw' },
11 | { test: /\.styl$/, loader: 'style!css!stylus' },
12 | { test: /\.css$/, loader: 'style!css' }
13 | ]
14 | }
15 | };
16 |
--------------------------------------------------------------------------------
/www/app/app.js:
--------------------------------------------------------------------------------
1 | import angular from 'angular';
2 | import uiRouter from 'angular-ui-router';
3 | import 'ionic-sdk/release/js/ionic.bundle';
4 | import Components from './components/components';
5 |
6 | // Ionic Starter App
7 | //import start from './controllers';
8 | // angular.module is a global place for creating, registering and retrieving Angular modules
9 | // 'starter' is the name of this angular module example (also set in a attribute in index.html)
10 | // the 2nd parameter is an array of 'requires'
11 | // 'starter.controllers' is found in controllers.js
12 | angular.module('app', ['ionic', Components.name])
13 |
14 | .run(($ionicPlatform) => {
15 |
16 | $ionicPlatform.ready(() => {
17 | // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
18 | // for form inputs)
19 | if (window.cordova && window.cordova.plugins.Keyboard) {
20 | cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
21 | cordova.plugins.Keyboard.disableScroll(true);
22 |
23 | }
24 | if (window.StatusBar) {
25 | // org.apache.cordova.statusbar required
26 | StatusBar.styleDefault();
27 | }
28 | });
29 |
30 | })
31 |
32 | .config(($stateProvider, $urlRouterProvider) => {
33 |
34 | // if none of the above states are matched, use this as the fallback
35 | $urlRouterProvider.otherwise('/app/home');
36 | });
37 |
--------------------------------------------------------------------------------
/www/app/components/about/about.component.html:
--------------------------------------------------------------------------------
1 |