summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJarle Boe2016-08-15 03:57:56 -0500
committerJarle Boe2016-08-15 03:57:56 -0500
commit8b474d6e88275be1b1c724eca010809cd2519c5a (patch)
treead3fad3cc87564cabc77b4fb6b2c663e9885e428
downloadbluetooth-low-energy-android-project-zero-sample-code-8b474d6e88275be1b1c724eca010809cd2519c5a.tar.gz
bluetooth-low-energy-android-project-zero-sample-code-8b474d6e88275be1b1c724eca010809cd2519c5a.tar.xz
bluetooth-low-energy-android-project-zero-sample-code-8b474d6e88275be1b1c724eca010809cd2519c5a.zip
Version 1.0
-rw-r--r--BLE Project Zero for Android_1.0.0_manifest.html328
-rw-r--r--build.gradle23
-rw-r--r--gradlew.bat90
-rw-r--r--settings.gradle1
4 files changed, 442 insertions, 0 deletions
diff --git a/BLE Project Zero for Android_1.0.0_manifest.html b/BLE Project Zero for Android_1.0.0_manifest.html
new file mode 100644
index 0000000..35dc7c0
--- /dev/null
+++ b/BLE Project Zero for Android_1.0.0_manifest.html
@@ -0,0 +1,328 @@
1<!--
2Texas Instruments Manifest Format 2.0
3-->
4
5<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
6<html>
7
8<head>
9<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
10<!-- @Start Style -->
11<!-- Default style in case someone doesnt have Internet Access -->
12<style type="text/css" id="internalStyle">
13 body, div, p {
14 font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif;
15 font-size: 13px;
16 line-height: 1.3;
17 }
18 body {
19 margin: 20px;
20 }
21 h1 {
22 font-size: 150%;
23 }
24 h2 {
25 font-size: 120%;
26 }
27 h3 {
28 font-size: 100%;
29 }
30 img {
31 border: 0px;
32 vertical-align: middle;
33 }
34 table, th, td, tr {
35 border: 1px solid black;
36 font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif;
37 font-size: 13px;
38 line-height: 1.3;
39 empty-cells: show;
40 padding: 5px;
41 }
42 table {
43 border-collapse: collapse;
44 width: 100%;
45 }
46 tr {
47 page-break-inside: avoid;
48 }
49 #TIlogoLeft {
50 background-color: black;
51 padding: 0;
52 width: 20%;
53 }
54 #TIlogoRight {
55 background-color: red;
56 padding: 0;
57 }
58 #ProductName {
59 text-align: center;
60 }
61 #ReleaseDate {
62 text-align: center;
63 }
64 .LogoSection {
65 margin: 0;
66 padding: 0;
67 }
68 .HeaderSection {
69 margin: 25px 0 25px 0;
70 padding: 0;
71 }
72 .LegendSection {
73 margin: 25px 0 25px 0;
74 }
75 .ExportSection {
76 margin: 25px 0 25px 0;
77 }
78 .DisclaimerSection {
79 margin: 25px 0 25px 0;
80 }
81 .CreditSection {
82 margin: 25px 0 25px 0;
83 }
84 .LicenseSection {
85 margin: 25px 0 25px 0;
86 }
87 .ManifestTable {
88 margin: 25px 0 25px 0;
89 }
90</style>
91<!-- Override style from TI if they have Internet Access -->
92<link type="text/css" rel="stylesheet" href="timanifeststyle.css">
93<!-- @End Style -->
94<title>Texas Instruments Manifest</title>
95</head>
96
97<body><!-- Logo display, will need to fix up the URLs, this is just for testing.. Image alternate display not wporking well yet -->
98<div class="LogoSection">
99<table>
100 <tbody>
101 <tr>
102 <td id="TIlogoLeft">
103 <a href="http://www.ti.com/">
104 <!-- img src="tilogo.gif" alt="Texas Instruments Incorporated" -->
105 <img alt="" src="data:image/gif;base64,R0lGODlh3gA2AKIAAAAAAP///7u7u29vbz8/PwYGBujo6BgYGCH5BAAAAAAALAAAAADeADYAAAP/CLrc/jDKSau9OOvNu/9gKI5kaZ5oqq5s675wLM90bd94ru987//AoHBILBqPyKRyyWw6n9CodHorDALYLIHKJVqz2q44eAUHtoDB4DBu48rgLQErcNtnX7NhMDcICIB3gix5ZmtqAAZZew8EAo+QkQIDNVZqiIM1cHGKZ4YPAmaiAWw0c1gFmZqjB3SbZ6kNe6WhsAeOlDV0qjSFAXUAp7lwuREFtVsFgMvLB7fNAM+BCs+lDLd8BNYOuxfV22PL0RiWlwO1u3kDqejAE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OF5Py752JNXvrblNphzEHnmnF/a+ecTbA465qKPXnnppkuOeuqKr8465K+z7nrsfc9Ouyq23z5I7rrfwXvvbhSQAAA7" />
106 </a>
107 </td>
108 <td id="TILogoRight">
109 <!-- img src="titagline.gif" alt="Technology for Innovators(tm)"-->
110 <img alt="" src="data:image/gif;base64,R0lGODlhOgEaALMAAP8AAP////92dv+3t/+Njf/W1v/t7f8hIf/19f+jo//Hx/8/P/9cXP/j4//6+v/+/iH5BAAAAAAALAAAAAA6ARoAAAT/EMhJq7046827/2AojmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEgsGo/IpHLJbDqft0NDMCBQodis1jcADBKE7nYcCpjPgU5AQBKkVYOHAeRudqtXsh60/vRHdSoBBCGBNAkLe4o4f2psgG8pjR6GM5OLmDB/DA0GBoQADAgICRIBBQUOYgwGCg2kEgudBgUHAIGcBg0MsZ0NCnMGYgsBtqEGAbCynrW3AQONgcIFBgiErK6wAAfUtLbCscWiowoAyLDczLZu0AIJCAYOoJn0G38ObAwPEvLEts/O1vUhsA8AAjGonEmA9W6hGAVpEjiQoKBAhT8HJSRkVyEQQAAJ//a5YeMPQIFyACqCnJjSIgFCB4oB+HOSokWOAB6wIWCxnk8MfYh5QsYg5sVHfQLVMSqhztJIxWIaC6QzJy8KfZgqrNT0zR+nUNl8fSMvZ6IDwJCJRfoI7IR4Cub9nDsha6RwR02xUZpGq1utUWUq9FKgYV6/abgOHjt45tquEgY0SDDHoJg+fxhXolKNrmfH/EoR5EdAKmjQfB1qvPmGIQIJ3g4gC2egVF7LqxtP8Ng2cViTKFUCIGbNFKEEmB/VbDlYdqLRn+du8oTg6jjbmfe+CbTM2+BcuySgbQVtQoOCt7s3U8wbsqGs3ZppZLnylwFe8Uql825ogANPckUnYDoOCogxQGXADajggjcw4AA8DSSyTQASMmjhhTQscBWGHHbo4YcghijiiCSWaOKJKKao4oostugiFBEAADs=" />
111 </td>
112 </tr>
113 </tbody>
114</table>
115</div><div class="HeaderSection">
116<h1 id="ProductName">
117<!-- @Start Product -->
118BLE Project Zero for Android Manifest
119<!-- @End Product -->
120</h1>
121
122<h2 id="ReleaseDate">
123<!-- @Start Date -->
12405-24-2016
125<!-- @End Date -->
126</h2>
127
128
129<h2 id="SRASID">
130<!-- @Start Date -->
131Manifest ID - SRAS00002897
132<!-- @End Date -->
133</h2>
134</div><div class="LegendSection">
135<h2>Legend</h2>
136<p>(explanation of the fields in the Manifest Table below)</p>
137<table>
138<tbody>
139<tr>
140<td>
141<b>Software Name </b>
142</td>
143<td>
144The name of the application or file
145</td>
146</tr>
147<tr>
148<td>
149<b>Version</b>
150</td>
151<td>
152Version of the application or file
153</td>
154</tr>
155<tr>
156<td>
157<b>License Type</b>
158</td>
159<td>
160Type of license(s) under which TI will be providing
161software to the licensee (e.g. BSD-3-Clause, GPL-2.0, TI TSPA License, TI
162Commercial License). The license could be under Commercial terms or Open Source. See Open Source Reference License Disclaimer in
163the Disclaimers Section. Whenever possible, TI will use an <a href="http://spdx.org/licenses/"> SPDX Short Identifier </a> for an Open Source
164License. TI Commercial license terms are not usually included in the manifest and are conveyed through a variety
165of means such as a clickwrap license upon install,
166a signed license agreement and so forth.
167</td>
168</tr>
169<tr>
170<td>
171<b>Location</b>
172</td>
173<td>
174The directory name and path on the media or a specific file where the Software is located. Typically fully qualified path names
175are not used and instead the relevant top level directory of the application is given.
176A notation often used in the manifests is [as installed]/directory/*. Note that the asterisk implies that all
177files under that directory are licensed as the License Type field denotes. Any exceptions to this will
178generally be denoted as [as installed]/directory/* except as noted below which means as shown in subsequent rows of
179the manifest.
180</td>
181</tr>
182<tr>
183<td>
184<b>Delivered As</b>
185</td>
186<td>
187This field will either be &#8220;Source&#8221;, &#8220;Binary&#8221; or &#8220;Source
188and Binary&#8221; and is the primary form the content of the Software is delivered
189in. If the Software is delivered in an archive format, this field
190applies to the contents of the archive. If the word Limited is used
191with Source, as in &#8220;Limited Source&#8221; or &#8220;Limited Source and Binary&#8221; then
192only portions of the Source for the application are provided.
193</td>
194</tr>
195<tr>
196<td>
197<b>Modified by TI</b>
198</td>
199<td>
200This field will either be &#8220;Yes&#8221; or &#8220;No&#8221;. A &#8220;Yes&#8221; means
201TI has made changes to the Software. A &#8220;No&#8221; means TI has not made any
202changes. Note: This field is not applicable for Software &#8220;Obtained
203from&#8221; TI.
204</td>
205</tr>
206<tr>
207<td>
208<b>Obtained from</b>
209</td>
210<td>
211This field specifies from where or from whom TI obtained
212the Software. It may be a URL to an Open Source site, a 3<sup>rd</sup>
213party licensor, or TI. See Links Disclaimer in the Disclaimers
214Section.
215</td>
216</tr>
217</tbody>
218</table>
219</div><div class="DisclaimerSection">
220<h2>Disclaimers</h2>
221<h3>Export Control Classification Number (ECCN)</h3>
222<p>Any use of ECCNs listed in the Manifest is at the user&#8217;s risk
223and without recourse to TI. Your
224company, as the exporter of record, is responsible for determining the
225correct classification of any item at
226the time of export. Any export classification by TI of Software is for
227TI&#8217;s internal use only and shall not be construed as a representation
228or warranty
229regarding the proper export classification for such Software or whether
230an export
231license or other documentation is required for exporting such Software</p>
232<h3>Links in the Manifest</h3>
233<p>Any
234links appearing on this Manifest
235(for example in the &#8220;Obtained from&#8221; field) were verified at the time
236the Manifest was created. TI makes no guarantee that any listed links
237will
238remain active in the future.</p>
239<h3>Open Source License References</h3>
240<p>Your company is responsible for confirming the
241applicable license terms for any open source Software
242listed in this Manifest that was not &#8220;Obtained from&#8221; TI. Any open
243source license
244specified in this Manifest for Software that was
245not &#8220;Obtained from&#8221; TI is for TI&#8217;s internal use only and shall not be
246construed as a representation or warranty regarding the proper open
247source license terms
248for such Software.</p>
249</div><div class="ExportSection">
250<h2>Export Information</h2>
251<p>ECCN for Software included in this release:</p>
252Publicly Available - Open Source or TI TSPA License
253</div><div class="ManifestTable">
254<!-- h2>Manifest Table</h2 -->
255
256 <table>
257 <tbody>
258
259 <h2>
260 BLE Project Zero for Android Manifest Table
261 </h2>
262
263
264 <p>
265
266 See the Legend above for a description of these columns.
267
268 </p>
269
270 <table id="targetpackages" name="targetpackages">
271 <thead>
272 <tr>
273 <td><b>Software Name</b></td>
274 <td><b>Version</b></td>
275 <td><b>License Type</b></td>
276 <td><b>Delivered As</b></td>
277 <td><b>Modified by TI</b></td>
278 <td></td>
279 <td></td>
280 </tr>
281 </thead>
282
283
284 <tbody>
285 <tr>
286 <td id="name" name="name" rowspan="2">
287 Project Zero application
288 </td>
289 <td id="version" name="version" rowspan="2">
290 1.0.0
291 </td>
292 <td id="license" name="license" rowspan="2">
293 BSD-3-Clause
294 </td>
295 <td id="delivered" name="delivered" rowspan="2">
296 Source and Binary
297 </td>
298 <td id="modified" name="modified" rowspan="2">
299 N/A
300 </td>
301 <td><b>Location</b></td>
302 <td id="location" name="location">
303 ./app/src, ./app/build/outputs/apk
304 </td>
305 </tr>
306 <tr>
307 <td><b>Obtained from</b></td>
308 <td id="obtained" name="obtained">
309 TI
310 </td>
311 </tr>
312
313 </tbody>
314 </table>
315
316 </p>
317 </p>
318 <p>
319
320</div><div class="CreditSection">
321<h2>Credits</h2>
322<BR> <BR><BR><BR><BR>
323</div><div class="LicenseSection">
324<h2>Licenses</h2>
325<BR><h3><b> BLE Project Zero for Android Licenses </b></h3><BR> <BR><BR><BR>BSD-3-Clause license:<BR>Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/<BR><BR>Redistribution and use in source and binary forms, with or without<BR>modification, are permitted provided that the following conditions<BR>are met:<BR><BR> Redistributions of source code must retain the above copyright<BR> notice, this list of conditions and the following disclaimer.<BR><BR> Redistributions in binary form must reproduce the above copyright<BR> notice, this list of conditions and the following disclaimer in the<BR> documentation and/or other materials provided with the<BR> distribution.<BR><BR> Neither the name of Texas Instruments Incorporated nor the names of<BR> its contributors may be used to endorse or promote products derived<BR> from this software without specific prior written permission.<BR><BR>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS<BR>"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT<BR>LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR<BR>A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT<BR>OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,<BR>SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT<BR>LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,<BR>DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY<BR>THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT<BR>(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE<BR>OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.<BR><BR><BR>
326</div>
327
328</body></html> \ No newline at end of file
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..03bced9
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,23 @@
1// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
3buildscript {
4 repositories {
5 jcenter()
6 }
7 dependencies {
8 classpath 'com.android.tools.build:gradle:2.1.0'
9
10 // NOTE: Do not place your application dependencies here; they belong
11 // in the individual module build.gradle files
12 }
13}
14
15allprojects {
16 repositories {
17 jcenter()
18 }
19}
20
21task clean(type: Delete) {
22 delete rootProject.buildDir
23}
diff --git a/gradlew.bat b/gradlew.bat
new file mode 100644
index 0000000..8a0b282
--- /dev/null
+++ b/gradlew.bat
@@ -0,0 +1,90 @@
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
9if "%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.
12set DEFAULT_JVM_OPTS=
13
14set DIRNAME=%~dp0
15if "%DIRNAME%" == "" set DIRNAME=.
16set APP_BASE_NAME=%~n0
17set APP_HOME=%DIRNAME%
18
19@rem Find java.exe
20if defined JAVA_HOME goto findJavaFromJavaHome
21
22set JAVA_EXE=java.exe
23%JAVA_EXE% -version >NUL 2>&1
24if "%ERRORLEVEL%" == "0" goto init
25
26echo.
27echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28echo.
29echo Please set the JAVA_HOME variable in your environment to match the
30echo location of your Java installation.
31
32goto fail
33
34:findJavaFromJavaHome
35set JAVA_HOME=%JAVA_HOME:"=%
36set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37
38if exist "%JAVA_EXE%" goto init
39
40echo.
41echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42echo.
43echo Please set the JAVA_HOME variable in your environment to match the
44echo location of your Java installation.
45
46goto fail
47
48:init
49@rem Get command-line arguments, handling Windowz variants
50
51if not "%OS%" == "Windows_NT" goto win9xME_args
52if "%@eval[2+2]" == "4" goto 4NT_args
53
54:win9xME_args
55@rem Slurp the command line arguments.
56set CMD_LINE_ARGS=
57set _SKIP=2
58
59:win9xME_args_slurp
60if "x%~1" == "x" goto execute
61
62set CMD_LINE_ARGS=%*
63goto execute
64
65:4NT_args
66@rem Get arguments from the 4NT Shell from JP Software
67set CMD_LINE_ARGS=%$
68
69:execute
70@rem Setup the command line
71
72set 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
79if "%ERRORLEVEL%"=="0" goto mainEnd
80
81:fail
82rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83rem the _cmd.exe /c_ return code!
84if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85exit /b 1
86
87:mainEnd
88if "%OS%"=="Windows_NT" endlocal
89
90:omega
diff --git a/settings.gradle b/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/settings.gradle
@@ -0,0 +1 @@
include ':app'