RECEIVED: "+ c.getTime().toString() +"";
67 | // webView.loadData(customHtml, "text/html", "UTF-8");
68 | }
69 |
70 | }
71 |
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/java/org/apache/cordova/batterystatus/BatteryListener.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 | package org.apache.cordova.batterystatus;
20 |
21 | import android.content.BroadcastReceiver;
22 | import android.content.Context;
23 | import android.content.Intent;
24 | import android.content.IntentFilter;
25 | import android.util.Log;
26 |
27 | import org.apache.cordova.CallbackContext;
28 | import org.apache.cordova.CordovaPlugin;
29 | import org.apache.cordova.PluginResult;
30 | import org.json.JSONArray;
31 | import org.json.JSONException;
32 | import org.json.JSONObject;
33 |
34 | public class BatteryListener extends CordovaPlugin {
35 |
36 | private static final String LOG_TAG = "BatteryManager";
37 |
38 | BroadcastReceiver receiver;
39 |
40 | private CallbackContext batteryCallbackContext = null;
41 |
42 | /**
43 | * Constructor.
44 | */
45 | public BatteryListener() {
46 | this.receiver = null;
47 | }
48 |
49 | /**
50 | * Executes the request.
51 | *
52 | * @param action The action to execute.
53 | * @param args JSONArry of arguments for the plugin.
54 | * @param callbackContext The callback context used when calling back into JavaScript.
55 | * @return True if the action was valid, false if not.
56 | */
57 | public boolean execute(String action, JSONArray args, CallbackContext callbackContext) {
58 | if (action.equals("start")) {
59 | if (this.batteryCallbackContext != null) {
60 | callbackContext.error( "Battery listener already running.");
61 | return true;
62 | }
63 | this.batteryCallbackContext = callbackContext;
64 |
65 | // We need to listen to power events to update battery status
66 | IntentFilter intentFilter = new IntentFilter();
67 | intentFilter.addAction(Intent.ACTION_BATTERY_CHANGED);
68 | if (this.receiver == null) {
69 | this.receiver = new BroadcastReceiver() {
70 | @Override
71 | public void onReceive(Context context, Intent intent) {
72 | updateBatteryInfo(intent);
73 | }
74 | };
75 | webView.getContext().registerReceiver(this.receiver, intentFilter);
76 | }
77 |
78 | // Don't return any result now, since status results will be sent when events come in from broadcast receiver
79 | PluginResult pluginResult = new PluginResult(PluginResult.Status.NO_RESULT);
80 | pluginResult.setKeepCallback(true);
81 | callbackContext.sendPluginResult(pluginResult);
82 | return true;
83 | }
84 |
85 | else if (action.equals("stop")) {
86 | removeBatteryListener();
87 | this.sendUpdate(new JSONObject(), false); // release status callback in JS side
88 | this.batteryCallbackContext = null;
89 | callbackContext.success();
90 | return true;
91 | }
92 |
93 | return false;
94 | }
95 |
96 | /**
97 | * Stop battery receiver.
98 | */
99 | public void onDestroy() {
100 | removeBatteryListener();
101 | }
102 |
103 | /**
104 | * Stop battery receiver.
105 | */
106 | public void onReset() {
107 | removeBatteryListener();
108 | }
109 |
110 | /**
111 | * Stop the battery receiver and set it to null.
112 | */
113 | private void removeBatteryListener() {
114 | if (this.receiver != null) {
115 | try {
116 | webView.getContext().unregisterReceiver(this.receiver);
117 | this.receiver = null;
118 | } catch (Exception e) {
119 | Log.e(LOG_TAG, "Error unregistering battery receiver: " + e.getMessage(), e);
120 | }
121 | }
122 | }
123 |
124 | /**
125 | * Creates a JSONObject with the current battery information
126 | *
127 | * @param batteryIntent the current battery information
128 | * @return a JSONObject containing the battery status information
129 | */
130 | private JSONObject getBatteryInfo(Intent batteryIntent) {
131 | JSONObject obj = new JSONObject();
132 | try {
133 | obj.put("level", batteryIntent.getIntExtra(android.os.BatteryManager.EXTRA_LEVEL, 0));
134 | obj.put("isPlugged", batteryIntent.getIntExtra(android.os.BatteryManager.EXTRA_PLUGGED, -1) > 0 ? true : false);
135 | } catch (JSONException e) {
136 | Log.e(LOG_TAG, e.getMessage(), e);
137 | }
138 | return obj;
139 | }
140 |
141 | /**
142 | * Updates the JavaScript side whenever the battery changes
143 | *
144 | * @param batteryIntent the current battery information
145 | * @return
146 | */
147 | private void updateBatteryInfo(Intent batteryIntent) {
148 | sendUpdate(this.getBatteryInfo(batteryIntent), true);
149 | }
150 |
151 | /**
152 | * Create a new plugin result and send it back to JavaScript
153 | *
154 | * @param connection the network info to set as navigator.connection
155 | */
156 | private void sendUpdate(JSONObject info, boolean keepCallback) {
157 | if (this.batteryCallbackContext != null) {
158 | PluginResult result = new PluginResult(PluginResult.Status.OK, info);
159 | result.setKeepCallback(keepCallback);
160 | this.batteryCallbackContext.sendPluginResult(result);
161 | }
162 | }
163 | }
164 |
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/java/org/apache/cordova/file/DirectoryManager.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 | package org.apache.cordova.file;
20 |
21 | import android.os.Environment;
22 | import android.os.StatFs;
23 |
24 | import java.io.File;
25 |
26 | /**
27 | * This class provides file directory utilities.
28 | * All file operations are performed on the SD card.
29 | *
30 | * It is used by the FileUtils class.
31 | */
32 | public class DirectoryManager {
33 |
34 | @SuppressWarnings("unused")
35 | private static final String LOG_TAG = "DirectoryManager";
36 |
37 | /**
38 | * Determine if a file or directory exists.
39 | * @param name The name of the file to check.
40 | * @return T=exists, F=not found
41 | */
42 | public static boolean testFileExists(String name) {
43 | boolean status;
44 |
45 | // If SD card exists
46 | if ((testSaveLocationExists()) && (!name.equals(""))) {
47 | File path = Environment.getExternalStorageDirectory();
48 | File newPath = constructFilePaths(path.toString(), name);
49 | status = newPath.exists();
50 | }
51 | // If no SD card
52 | else {
53 | status = false;
54 | }
55 | return status;
56 | }
57 |
58 | /**
59 | * Get the free disk space
60 | *
61 | * @return Size in KB or -1 if not available
62 | */
63 | public static long getFreeDiskSpace(boolean checkInternal) {
64 | String status = Environment.getExternalStorageState();
65 | long freeSpace = 0;
66 |
67 | // If SD card exists
68 | if (status.equals(Environment.MEDIA_MOUNTED)) {
69 | freeSpace = freeSpaceCalculation(Environment.getExternalStorageDirectory().getPath());
70 | }
71 | else if (checkInternal) {
72 | freeSpace = freeSpaceCalculation("/");
73 | }
74 | // If no SD card and we haven't been asked to check the internal directory then return -1
75 | else {
76 | return -1;
77 | }
78 |
79 | return freeSpace;
80 | }
81 |
82 | /**
83 | * Given a path return the number of free KB
84 | *
85 | * @param path to the file system
86 | * @return free space in KB
87 | */
88 | private static long freeSpaceCalculation(String path) {
89 | StatFs stat = new StatFs(path);
90 | long blockSize = stat.getBlockSize();
91 | long availableBlocks = stat.getAvailableBlocks();
92 | return availableBlocks * blockSize / 1024;
93 | }
94 |
95 | /**
96 | * Determine if SD card exists.
97 | *
98 | * @return T=exists, F=not found
99 | */
100 | public static boolean testSaveLocationExists() {
101 | String sDCardStatus = Environment.getExternalStorageState();
102 | boolean status;
103 |
104 | // If SD card is mounted
105 | if (sDCardStatus.equals(Environment.MEDIA_MOUNTED)) {
106 | status = true;
107 | }
108 |
109 | // If no SD card
110 | else {
111 | status = false;
112 | }
113 | return status;
114 | }
115 |
116 | /**
117 | * Create a new file object from two file paths.
118 | *
119 | * @param file1 Base file path
120 | * @param file2 Remaining file path
121 | * @return File object
122 | */
123 | private static File constructFilePaths (String file1, String file2) {
124 | File newPath;
125 | if (file2.startsWith(file1)) {
126 | newPath = new File(file2);
127 | }
128 | else {
129 | newPath = new File(file1 + "/" + file2);
130 | }
131 | return newPath;
132 | }
133 | }
134 |
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/java/org/apache/cordova/file/EncodingException.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 org.apache.cordova.file;
21 |
22 | @SuppressWarnings("serial")
23 | public class EncodingException extends Exception {
24 |
25 | public EncodingException(String message) {
26 | super(message);
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/java/org/apache/cordova/file/FileExistsException.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 org.apache.cordova.file;
21 |
22 | @SuppressWarnings("serial")
23 | public class FileExistsException extends Exception {
24 |
25 | public FileExistsException(String msg) {
26 | super(msg);
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/java/org/apache/cordova/file/FileHelper.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 | package org.apache.cordova.file;
20 |
21 | import android.database.Cursor;
22 | import android.net.Uri;
23 | import android.webkit.MimeTypeMap;
24 |
25 | import org.apache.cordova.CordovaInterface;
26 | import org.apache.cordova.LOG;
27 |
28 | import java.io.FileInputStream;
29 | import java.io.IOException;
30 | import java.io.InputStream;
31 | import java.util.Locale;
32 |
33 | public class FileHelper {
34 | private static final String LOG_TAG = "FileUtils";
35 | private static final String _DATA = "_data";
36 |
37 | /**
38 | * Returns the real path of the given URI string.
39 | * If the given URI string represents a content:// URI, the real path is retrieved from the media store.
40 | *
41 | * @param uriString the URI string of the audio/image/video
42 | * @param cordova the current application context
43 | * @return the full path to the file
44 | */
45 | @SuppressWarnings("deprecation")
46 | public static String getRealPath(String uriString, CordovaInterface cordova) {
47 | String realPath = null;
48 |
49 | if (uriString.startsWith("content://")) {
50 | String[] proj = { _DATA };
51 | Cursor cursor = cordova.getActivity().managedQuery(Uri.parse(uriString), proj, null, null, null);
52 | int column_index = cursor.getColumnIndexOrThrow(_DATA);
53 | cursor.moveToFirst();
54 | realPath = cursor.getString(column_index);
55 | if (realPath == null) {
56 | LOG.e(LOG_TAG, "Could get real path for URI string %s", uriString);
57 | }
58 | } else if (uriString.startsWith("file://")) {
59 | realPath = uriString.substring(7);
60 | if (realPath.startsWith("/android_asset/")) {
61 | LOG.e(LOG_TAG, "Cannot get real path for URI string %s because it is a file:///android_asset/ URI.", uriString);
62 | realPath = null;
63 | }
64 | } else {
65 | realPath = uriString;
66 | }
67 |
68 | return realPath;
69 | }
70 |
71 | /**
72 | * Returns the real path of the given URI.
73 | * If the given URI is a content:// URI, the real path is retrieved from the media store.
74 | *
75 | * @param uri the URI of the audio/image/video
76 | * @param cordova the current application context
77 | * @return the full path to the file
78 | */
79 | public static String getRealPath(Uri uri, CordovaInterface cordova) {
80 | return FileHelper.getRealPath(uri.toString(), cordova);
81 | }
82 |
83 | /**
84 | * Returns an input stream based on given URI string.
85 | *
86 | * @param uriString the URI string from which to obtain the input stream
87 | * @param cordova the current application context
88 | * @return an input stream into the data at the given URI or null if given an invalid URI string
89 | * @throws IOException
90 | */
91 | public static InputStream getInputStreamFromUriString(String uriString, CordovaInterface cordova) throws IOException {
92 | if (uriString.startsWith("content")) {
93 | Uri uri = Uri.parse(uriString);
94 | return cordova.getActivity().getContentResolver().openInputStream(uri);
95 | } else if (uriString.startsWith("file://")) {
96 | int question = uriString.indexOf("?");
97 | if (question > -1) {
98 | uriString = uriString.substring(0,question);
99 | }
100 | if (uriString.startsWith("file:///android_asset/")) {
101 | Uri uri = Uri.parse(uriString);
102 | String relativePath = uri.getPath().substring(15);
103 | return cordova.getActivity().getAssets().open(relativePath);
104 | } else {
105 | return new FileInputStream(getRealPath(uriString, cordova));
106 | }
107 | } else {
108 | return new FileInputStream(getRealPath(uriString, cordova));
109 | }
110 | }
111 |
112 | /**
113 | * Removes the "file://" prefix from the given URI string, if applicable.
114 | * If the given URI string doesn't have a "file://" prefix, it is returned unchanged.
115 | *
116 | * @param uriString the URI string to operate on
117 | * @return a path without the "file://" prefix
118 | */
119 | public static String stripFileProtocol(String uriString) {
120 | if (uriString.startsWith("file://")) {
121 | uriString = uriString.substring(7);
122 | }
123 | return uriString;
124 | }
125 |
126 | public static String getMimeTypeForExtension(String path) {
127 | String extension = path;
128 | int lastDot = extension.lastIndexOf('.');
129 | if (lastDot != -1) {
130 | extension = extension.substring(lastDot + 1);
131 | }
132 | // Convert the URI string to lower case to ensure compatibility with MimeTypeMap (see CB-2185).
133 | extension = extension.toLowerCase(Locale.getDefault());
134 | if (extension.equals("3ga")) {
135 | return "audio/3gpp";
136 | }
137 | return MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension);
138 | }
139 |
140 | /**
141 | * Returns the mime type of the data specified by the given URI string.
142 | *
143 | * @param uriString the URI string of the data
144 | * @return the mime type of the specified data
145 | */
146 | public static String getMimeType(String uriString, CordovaInterface cordova) {
147 | String mimeType = null;
148 |
149 | Uri uri = Uri.parse(uriString);
150 | if (uriString.startsWith("content://")) {
151 | mimeType = cordova.getActivity().getContentResolver().getType(uri);
152 | } else {
153 | mimeType = getMimeTypeForExtension(uri.getPath());
154 | }
155 |
156 | return mimeType;
157 | }
158 | }
159 |
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/java/org/apache/cordova/file/InvalidModificationException.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 |
21 | package org.apache.cordova.file;
22 |
23 | @SuppressWarnings("serial")
24 | public class InvalidModificationException extends Exception {
25 |
26 | public InvalidModificationException(String message) {
27 | super(message);
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/java/org/apache/cordova/file/LocalFilesystemURL.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 | package org.apache.cordova.file;
20 |
21 | import android.net.Uri;
22 |
23 | import java.util.List;
24 |
25 | public class LocalFilesystemURL {
26 |
27 | public static final String FILESYSTEM_PROTOCOL = "cdvfile";
28 |
29 | Uri URL;
30 | String filesystemName;
31 | String fullPath;
32 |
33 | public LocalFilesystemURL(Uri URL) {
34 | this.URL = URL;
35 | this.filesystemName = this.filesystemNameForLocalURL(URL);
36 | this.fullPath = this.fullPathForLocalURL(URL);
37 | }
38 |
39 | private String fullPathForLocalURL(Uri URL) {
40 | if (FILESYSTEM_PROTOCOL.equals(URL.getScheme()) && "localhost".equals(URL.getHost())) {
41 | String path = URL.getPath();
42 | if (URL.getQuery() != null) {
43 | path = path + "?" + URL.getQuery();
44 | }
45 | return path.substring(path.indexOf('/', 1));
46 | } else if ("content".equals(URL.getScheme())) {
47 | String path = '/' + URL.getHost() + URL.getPath();
48 | // Re-encode path component to handle Android 4.4+ Content URLs
49 | return Uri.encode(path,"/");
50 | }
51 | return null;
52 | }
53 |
54 | private String filesystemNameForLocalURL(Uri URL) {
55 | if (FILESYSTEM_PROTOCOL.equals(URL.getScheme()) && "localhost".equals(URL.getHost())) {
56 | List pathComponents = URL.getPathSegments();
57 | if (pathComponents != null && pathComponents.size() > 0) {
58 | return pathComponents.get(0);
59 | }
60 | return null;
61 | } else if ("content".equals(URL.getScheme())) {
62 | return "content";
63 | }
64 | return null;
65 | }
66 |
67 | public LocalFilesystemURL(String strURL) {
68 | this(Uri.parse(strURL));
69 | }
70 |
71 | public String toString() {
72 | return "cdvfile://localhost/" + this.filesystemName + this.fullPath;
73 | }
74 | }
75 |
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/java/org/apache/cordova/file/NoModificationAllowedException.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 org.apache.cordova.file;
21 |
22 | @SuppressWarnings("serial")
23 | public class NoModificationAllowedException extends Exception {
24 |
25 | public NoModificationAllowedException(String message) {
26 | super(message);
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/java/org/apache/cordova/file/TypeMismatchException.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 |
21 | package org.apache.cordova.file;
22 |
23 | @SuppressWarnings("serial")
24 | public class TypeMismatchException extends Exception {
25 |
26 | public TypeMismatchException(String message) {
27 | super(message);
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/java/org/apache/cordova/globalization/GlobalizationError.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 org.apache.cordova.globalization;
21 |
22 | import org.json.JSONException;
23 | import org.json.JSONObject;
24 |
25 | /**
26 | * @description Exception class representing defined Globalization error codes
27 | * @Globalization error codes:
28 | * GlobalizationError.UNKNOWN_ERROR = 0;
29 | * GlobalizationError.FORMATTING_ERROR = 1;
30 | * GlobalizationError.PARSING_ERROR = 2;
31 | * GlobalizationError.PATTERN_ERROR = 3;
32 | */
33 | public class GlobalizationError extends Exception{
34 | /**
35 | *
36 | */
37 | private static final long serialVersionUID = 1L;
38 | public static final String UNKNOWN_ERROR = "UNKNOWN_ERROR";
39 | public static final String FORMATTING_ERROR = "FORMATTING_ERROR";
40 | public static final String PARSING_ERROR = "PARSING_ERROR";
41 | public static final String PATTERN_ERROR = "PATTERN_ERROR";
42 |
43 | int error = 0; //default unknown error thrown
44 | /**
45 | * Default constructor
46 | */
47 | public GlobalizationError() {}
48 | /**
49 | * Create an exception returning an error code
50 | *
51 | * @param s
52 | */
53 | public GlobalizationError(String s) {
54 | if (s.equalsIgnoreCase(FORMATTING_ERROR)){
55 | error = 1;
56 | }else if (s.equalsIgnoreCase(PARSING_ERROR)){
57 | error = 2;
58 | }else if (s.equalsIgnoreCase(PATTERN_ERROR)){
59 | error = 3;
60 | }
61 | }
62 | /**
63 | * get error string based on error code
64 | *
65 | * @param String msg
66 | */
67 | public String getErrorString(){
68 | String msg = "";
69 | switch (error){
70 | case 0:
71 | msg = UNKNOWN_ERROR;
72 | break;
73 | case 1:
74 | msg = FORMATTING_ERROR;
75 | break;
76 | case 2:
77 | msg = PARSING_ERROR;
78 | break;
79 | case 3:
80 | msg = PATTERN_ERROR;
81 | break;
82 | }
83 | return msg;
84 | }
85 | /**
86 | * get error code
87 | *
88 | * @param String msg
89 | */
90 | public int getErrorCode(){
91 | return error;
92 | }
93 |
94 | /**
95 | * get the json version of this object to return to javascript
96 | * @return
97 | */
98 | public JSONObject toJson() {
99 | JSONObject obj = new JSONObject();
100 | try {
101 | obj.put("code", getErrorCode());
102 | obj.put("message", getErrorString());
103 | } catch (JSONException e) {
104 | // never happens
105 | }
106 | return obj;
107 | }
108 | }
109 |
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/java/org/apache/cordova/mediacapture/FileHelper.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 | package org.apache.cordova.mediacapture;
20 |
21 | import android.net.Uri;
22 | import android.webkit.MimeTypeMap;
23 |
24 | import org.apache.cordova.CordovaInterface;
25 |
26 | import java.util.Locale;
27 |
28 | // TODO: Replace with CordovaResourceApi.getMimeType() post 3.1.
29 | public class FileHelper {
30 | public static String getMimeTypeForExtension(String path) {
31 | String extension = path;
32 | int lastDot = extension.lastIndexOf('.');
33 | if (lastDot != -1) {
34 | extension = extension.substring(lastDot + 1);
35 | }
36 | // Convert the URI string to lower case to ensure compatibility with MimeTypeMap (see CB-2185).
37 | extension = extension.toLowerCase(Locale.getDefault());
38 | if (extension.equals("3ga")) {
39 | return "audio/3gpp";
40 | }
41 | return MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension);
42 | }
43 |
44 | /**
45 | * Returns the mime type of the data specified by the given URI string.
46 | *
47 | * @param uriString the URI string of the data
48 | * @return the mime type of the specified data
49 | */
50 | public static String getMimeType(Uri uri, CordovaInterface cordova) {
51 | String mimeType = null;
52 | if ("content".equals(uri.getScheme())) {
53 | mimeType = cordova.getActivity().getContentResolver().getType(uri);
54 | } else {
55 | mimeType = getMimeTypeForExtension(uri.getPath());
56 | }
57 |
58 | return mimeType;
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lab11/iot-gateway/327cf283bf5ffc2696d3468f6e5bfc42c41a238f/app/Gateway/app/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lab11/iot-gateway/327cf283bf5ffc2696d3468f6e5bfc42c41a238f/app/Gateway/app/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lab11/iot-gateway/327cf283bf5ffc2696d3468f6e5bfc42c41a238f/app/Gateway/app/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lab11/iot-gateway/327cf283bf5ffc2696d3468f6e5bfc42c41a238f/app/Gateway/app/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/res/layout/activity_gateway.xml:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/res/menu/gateway.xml:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/res/menu/menu_ui_list.xml:
--------------------------------------------------------------------------------
1 |
7 |
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Gateway
5 | Settings
6 | ListActivity
7 |
8 | Nearby Interactive Devices
9 |
10 |
11 |
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/res/xml/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | Summon
39 |
40 | Application that opens Web App urls advertised by nearby BLE peripherals
41 |
42 |
43 | Lab11, University of Michigan
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/app/Gateway/app/src/main/res/xml/preferences.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
10 |
11 |
12 |
16 |
20 |
24 |
28 |
32 |
36 |
40 |
45 |
46 |
47 |
52 |
57 |
58 |
59 |
64 |
65 |
66 |
67 |
72 |
73 |
76 |
77 |
--------------------------------------------------------------------------------
/app/Gateway/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:1.0.0'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/app/Gateway/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Settings specified in this file will override any Gradle settings
5 | # configured through the IDE.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
--------------------------------------------------------------------------------
/app/Gateway/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lab11/iot-gateway/327cf283bf5ffc2696d3468f6e5bfc42c41a238f/app/Gateway/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/app/Gateway/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Tue Dec 16 12:10:06 EST 2014
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
7 |
--------------------------------------------------------------------------------
/app/Gateway/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 | if $cygwin ; then
47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 | fi
49 |
50 | # Attempt to set APP_HOME
51 | # Resolve links: $0 may be a link
52 | PRG="$0"
53 | # Need this for relative symlinks.
54 | while [ -h "$PRG" ] ; do
55 | ls=`ls -ld "$PRG"`
56 | link=`expr "$ls" : '.*-> \(.*\)$'`
57 | if expr "$link" : '/.*' > /dev/null; then
58 | PRG="$link"
59 | else
60 | PRG=`dirname "$PRG"`"/$link"
61 | fi
62 | done
63 | SAVED="`pwd`"
64 | cd "`dirname \"$PRG\"`/" >&-
65 | APP_HOME="`pwd -P`"
66 | cd "$SAVED" >&-
67 |
68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69 |
70 | # Determine the Java command to use to start the JVM.
71 | if [ -n "$JAVA_HOME" ] ; then
72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 | # IBM's JDK on AIX uses strange locations for the executables
74 | JAVACMD="$JAVA_HOME/jre/sh/java"
75 | else
76 | JAVACMD="$JAVA_HOME/bin/java"
77 | fi
78 | if [ ! -x "$JAVACMD" ] ; then
79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80 |
81 | Please set the JAVA_HOME variable in your environment to match the
82 | location of your Java installation."
83 | fi
84 | else
85 | JAVACMD="java"
86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87 |
88 | Please set the JAVA_HOME variable in your environment to match the
89 | location of your Java installation."
90 | fi
91 |
92 | # Increase the maximum file descriptors if we can.
93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 | MAX_FD_LIMIT=`ulimit -H -n`
95 | if [ $? -eq 0 ] ; then
96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 | MAX_FD="$MAX_FD_LIMIT"
98 | fi
99 | ulimit -n $MAX_FD
100 | if [ $? -ne 0 ] ; then
101 | warn "Could not set maximum file descriptor limit: $MAX_FD"
102 | fi
103 | else
104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 | fi
106 | fi
107 |
108 | # For Darwin, add options to specify how the application appears in the dock
109 | if $darwin; then
110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 | fi
112 |
113 | # For Cygwin, switch paths to Windows format before running java
114 | if $cygwin ; then
115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 | function splitJvmOpts() {
159 | JVM_OPTS=("$@")
160 | }
161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163 |
164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
165 |
--------------------------------------------------------------------------------
/app/Gateway/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/app/Gateway/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app', ':SeekBarPref'
2 | project(':SeekBarPref').projectDir = new File('SeekBarPreference')
--------------------------------------------------------------------------------
/app/Peripheral/.gitignore:
--------------------------------------------------------------------------------
1 | .gradle
2 | /local.properties
3 | .idea
4 | *.iml
5 | *.iws
6 | .DS_Store
7 | /build
8 |
--------------------------------------------------------------------------------
/app/Peripheral/.idea/.name:
--------------------------------------------------------------------------------
1 | Peripheral
--------------------------------------------------------------------------------
/app/Peripheral/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/Peripheral/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/app/Peripheral/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/Peripheral/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
19 |
20 |
--------------------------------------------------------------------------------
/app/Peripheral/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | Android API 8 Platform
14 |
15 |