Skip to content

Commit 7fc7030

Browse files
Release 1.5.0
2 parents 8d76e62 + 65da646 commit 7fc7030

15 files changed

+273
-132
lines changed

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@
66
path = core
77
url = https://github.com/ConnectSDK/Connect-SDK-Android-Core.git
88
branch = master
9+
[submodule "modules/firetv"]
10+
path = modules/firetv
11+
url = https://github.com/ConnectSDK/Connect-SDK-Android-FireTV.git
12+
branch = master

AUTHORS.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
Ibrahim Adnan -- [GitHub](https://github.com/iadnan) | [Twitter](https://twitter.com/ibrahimadnan)
2+
3+
iOS SDK, iOS sample apps, documentation
4+
5+
---
6+
7+
Eugene Nikolskyi -- [GitHub](https://github.com/eunikolsky)
8+
9+
iOS SDK, iOS sample apps, documentation
10+
11+
---
12+
13+
Oleksii Frolov -- [GitHub](https://github.com/frolov-alexey)
14+
15+
Android SDK, Android sample apps, documentation
16+
17+
---
18+
119
Henry Levak -- [GitHub](https://github.com/henrylevak) | [Twitter](http://www.twitter.com/HenryLevak)
220

321
Product Manager, Provider of Bubble Teas

AndroidManifest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22
package="com.connectsdk"
3-
android:versionCode="10"
4-
android:versionName="1.4.4" >
3+
android:versionCode="11"
4+
android:versionName="1.5.0" >
55

66
<uses-sdk
77
android:minSdkVersion="10"
8-
android:targetSdkVersion="10" />
8+
android:targetSdkVersion="22" />
99

1010
<application />
1111
</manifest>

CHANGELOG.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,28 @@
11
# Connect SDK Android Changelog
22

3+
## 1.5.0 -- 09 Jul 2015
4+
5+
- Added Amazon Fling SDK support to play and control media on Fire TV devices
6+
- Added playlist support for WebOS TVs
7+
- Added media player loop capability for WebOS TVs
8+
- Added feature to pin web apps on WebOS TVs
9+
- Extended play state subscription to handle media playback errors on WebOS TVs
10+
- Fixed launching input picker for new versions of WebOS TVs
11+
- Fixed discovery for Chromecast
12+
- Deprecated old media player methods
13+
- Miscellaneous bug fixes
14+
- [See commits between 1.4.4 and 1.5.0](https://github.com/ConnectSDK/Connect-SDK-Android/compare/1.4.4...1.5.0)
15+
16+
[View files at version 1.5.0](https://github.com/ConnectSDK/Connect-SDK-Android/tree/1.5.0)
17+
318
## 1.4.4 -- 29 Apr 2015
419

520
- Added LG Music Flow speaker support (Google Cast for Audio and DLNA)
621
- Added AirPlay pin mode support
722
- Added pairing type for DeviceService
823
- Replaced DefaultHttpClient with HttpURLConnection
924
- Added a new exception class - NotSupportedServiceCommandError
10-
- Fixed DLNA subscribtion methods
25+
- Fixed DLNA subscription methods
1126
- Fixed lint warnings
1227
- Miscellaneous bug fixes
1328
- [See commits between 1.4.3 and 1.4.4](https://github.com/ConnectSDK/Connect-SDK-Android/compare/1.4.3...1.4.4)
@@ -19,7 +34,7 @@
1934
- Reverted Roku 6.1 fix for playing video as Roku has fixed its media player
2035
- Added proper encoding of special characters for metadata in DLNAService
2136
- Added getPlayState implementation into AirPlayService
22-
- Implemeted sending number key for NetcastTV
37+
- Implemented sending number key for NetcastTV
2338
- Miscellaneous bug fixes
2439
- [See commits between 1.4.2 and 1.4.3](https://github.com/ConnectSDK/Connect-SDK-Android/compare/1.4.2...1.4.3)
2540

CONTRIBUTING.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Please do not use GitHub issues for general questions about the SDK. Instead, use any of the following services to reach out to the development team.
66

77
- [@ConnectSDK](https://twitter.com/ConnectSDK)
8-
- [Stack Overflow TV Tag](http://www.stackoverflow.com/tags/tv)
8+
- Stack Overflow: [Connect-SDK tag](https://stackoverflow.com/tags/connect-sdk) (or [TV tag](https://stackoverflow.com/tags/tv))
99
1010

1111
##Versioning
@@ -14,17 +14,7 @@ We use [semantic versioning](http://semver.org/) in our tagged releases.
1414

1515
##Branching Strategy
1616

17-
- master
18-
+ latest stable, QA'd, tagged release of the SDK
19-
+ assume that this is safe for production use
20-
- sdk_MAJOR.MINOR
21-
+ stable branch working towards the next major/minor/patch release
22-
+ safe for checking out new features, but do not use in any production apps
23-
- sdk_MAJOR.MINOR-dev
24-
+ unstable development branch working towards the next major/minor/patch release
25-
+ may not compile/run without errors
26-
+ for development only
27-
+ submit pull requests against this branch
17+
We use the [successful git branching model](http://nvie.com/posts/a-successful-git-branching-model/), except without release branches, and the `develop` branch is named `dev`.
2818

2919
##Bug Reports & Feature Requests
3020

@@ -36,11 +26,15 @@ If you experience a crash, please attach your symbolicated crash log or stack tr
3626

3727
##Pull Requests
3828

39-
If you would like to submit code, please fork the repository on GitHub and develop on the latest sdk-X.Y-dev branch. We do not accept pull requests on the master branch, as we only merge QA'd & tagged code into the master branch. See the description of our branching strategy above.
29+
If you would like to submit code, please fork the repository on GitHub and develop in a feature branch, created from the latest `dev` commit. We do not accept pull requests on the `master` branch, as we only merge QA'd and tagged code into the `master` branch.
30+
31+
###Tests
32+
33+
Please include unit tests for the new/changed functionality with your pull request. It will help to verify the code is working as designed and make sure there are no regressions in future releases.
4034

4135
###Use of third party libraries
4236

43-
Connect SDK does include some third party libraries, but we try to avoid using them. If you'd like to integrate a library with a pull request, make sure that library has an open source license (MIT, Apache 2.0, etc).
37+
Connect SDK includes some third party libraries. If you'd like to integrate a library with a pull request, make sure that library has an open source license (MIT, Apache 2.0, etc).
4438

4539
###Licensing
4640

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Apache License
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright (c) 2013-2014 LG Electronics.
189+
Copyright (c) 2013-2015 LG Electronics.
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 45 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#Connect SDK Android
22
Connect SDK is an open source framework that connects your mobile apps with multiple TV platforms. Because most TV platforms support a variety of protocols, Connect SDK integrates and abstracts the discovery and connectivity between all supported protocols.
3+
This project can be built in Android Studio or directly with Gradle. Eclipse IDE is not supported since 1.5.0 version.
34

45
For more information, visit our [website](http://www.connectsdk.com/).
56

@@ -12,25 +13,32 @@ This project has the following dependencies, some of which require manual setup.
1213

1314
This project has the following dependencies.
1415
* [Connect-SDK-Android-Core](https://github.com/ConnectSDK/Connect-SDK-Android-Core) submodule
16+
- Requires [Java-WebSocket library](https://github.com/TooTallNate/Java-WebSocket)
17+
- Requires [jmDNS library](https://github.com/openhab/jmdns)
1518
* [Connect-SDK-Android-Google-Cast](https://github.com/ConnectSDK/Connect-SDK-Android-Google-Cast) submodule
1619
- Requires [GoogleCast.framework](https://developers.google.com/cast/docs/downloads)
17-
* [Java-WebSocket library](https://github.com/TooTallNate/Java-WebSocket)
20+
* [Connect-SDK-Android-FireTV](https://github.com/ConnectSDK/Connect-SDK-Android-FireTV) submodule
21+
- Requires [AmazonFling.framework](https://developer.amazon.com/public/apis/experience/fling/docs/amazon-fling-sdk-download)
1822

1923
##Including Connect SDK in your app with Android Studio
2024
Edit your project's build.gradle to add this in the "dependencies" section
2125
```groovy
2226
dependencies {
2327
//...
24-
compile 'com.connectsdk:connect-sdk-android:1.4.+'
28+
compile 'com.connectsdk:connect-sdk-android:1.5.0'
2529
}
2630
```
31+
This prebuilt library doesn't have Amazon Fling SDK support, because it’s not available on maven. You need to set the project up from sources
32+
if you want to have Amazon Fling SDK support.
33+
2734
##Including Connect SDK in your app with Android Studio from sources
2835
1. Open your terminal and execute these commands
29-
- cd your_project_folder
30-
- git clone https://github.com/ConnectSDK/Connect-SDK-Android.git
31-
- cd Connect-SDK-Android
32-
- git submodule init
33-
- git submodule update
36+
```
37+
cd your_project_folder
38+
git clone https://github.com/ConnectSDK/Connect-SDK-Android.git
39+
cd Connect-SDK-Android
40+
git submodule update --init
41+
```
3442
3543
2. On the root of your project directory create/modify the settings.gradle file. It should contain something like the following:
3644
```groovy
@@ -45,33 +53,9 @@ dependencies {
4553
}
4654
```
4755
48-
4. Sync project with gradle files
49-
5. Add permissions to your manifest
50-
51-
##Including Connect SDK in your app with Eclipse
52-
53-
1. Clone repository (or download & unzip)
54-
2. Set up the submodules by running the following commands in Terminal
55-
- `git submodule init`
56-
- `git submodule update`
57-
3. Open Eclipse
58-
4. Click File > Import
59-
5. Select `Existing Android Code Into Workspace` and click `Next`
60-
6. Browse to the `Connect-SDK-Android` project folder and click `Open`
61-
7. Check all projects and click `Finish`
62-
8. Follow the setup instructions for each of the service submodules
63-
- [Connect-SDK-Android-Google-Cast](https://github.com/ConnectSDK/Connect-SDK-Android-Google-Cast)
64-
9. Right-click the `Connect-SDK-Android-Core` project and select `Properties`, in the `Library` pane of the `Android` tab add
65-
- Connect-SDK-Android
66-
10. Right-click the `Connect-SDK-Android-Google-Cast` project and select `Properties`, in the `Library` pane of the `Android` tab add following libraries
67-
- Connect-SDK-Android-Core
68-
- android-support-v7-appcompat
69-
- android-support-v7-mediarouter
70-
- google-play-services_lib
71-
11. **IN YOUR PROJECT** select `Properties`, in the `Library` pane of the `Android` tab add following libraries
72-
- Connect-SDK-Android-Core
73-
- Connect-SDK-Android-Google-Cast
74-
12. Set up your manifest file as per the instructions below
56+
4. Setup [FireTV submodule](https://github.com/ConnectSDK/Connect-SDK-Android-FireTV)
57+
5. Sync project with gradle files
58+
6. Add permissions to your manifest
7559
7660
###Permissions to include in manifest
7761
* Required for SSDP & Chromecast/Zeroconf discovery
@@ -97,11 +81,11 @@ This metadata tag is necessary to enable Chromecast support.
9781
```xml
9882
<application ... >
9983
...
100-
84+
10185
<meta-data
10286
android:name="com.google.android.gms.version"
10387
android:value="@integer/google_play_services_version" />
104-
88+
10589
</application>
10690
```
10791

@@ -112,49 +96,44 @@ Add the following line to your proguard configuration file (otherwise `Discovery
11296
-keep class com.connectsdk.** { * ; }
11397
```
11498

115-
##Migrating from 1.3 to 1.4 release
116-
117-
1. Open terminal and go to your local Connect-SDK-Android repo
118-
2. Pull the latest updates by running command `git pull` in Terminal
119-
3. Set up the submodules by running the following commands in Terminal
120-
- `git submodule init`
121-
- `git submodule update`
122-
4. Open Eclipse
123-
5. Click `File > Import`
124-
6. Select `Existing Android Code Into Workspace` and click `Next`
125-
7. Browse to the `Connect-SDK-Android/core` folder and click `Open` to import core submodule
126-
8. Click `Finish`
127-
9. Do the steps 5-8 for Connect-SDK-Android-Google-Cast which is located in `Connect-SDK-Android/modules/google_cast` folder
128-
10. Right click on `Connect-SDK-Android` project and select `Properties`, in the `Library` pane of the `Android` tab
129-
- remove all libraries references
130-
11. Right-click the `Connect-SDK-Android-Core` project and select `Properties`, in the `Library` pane of the `Android` tab add
131-
- Connect-SDK-Android
132-
12. Right-click the `Connect-SDK-Android-Google-Cast` project and select `Properties`, in the `Library` pane of the `Android` tab add following libraries
133-
- Connect-SDK-Android-Core
134-
- android-support-v7-appcompat
135-
- android-support-v7-mediarouter
136-
- google-play-services_lib
137-
13. **IN YOUR PROJECT** select `Properties`, in the Library pane of the Android tab
138-
- remove Connect-SDK-Android
139-
- add Connect-SDK-Android-Core
140-
- add Connect-SDK-Android-Google-Cast.
99+
###Tests
100+
Connect SDK has unit tests for some parts of the code, and we are continuing to increase the test coverage.
101+
These tests are based on third party libraries such as Robolectric, Mockito and PowerMock. You can easily run these tests with Gradle:
102+
```
103+
gradle test
104+
```
105+
Also the project has a target for generating test coverage report with Jacoco. Use this command for generating it.
106+
```
107+
gradle jacocoTestReport
108+
```
109+
The test coverage report will be in this folder `Connect-SDK-Android/build/reports/jacoco/jacocoTestReport/html`.
141110

142111
##Contact
143112
* Twitter [@ConnectSDK](https://www.twitter.com/ConnectSDK)
144-
* Ask a question with the "tv" tag on [Stack Overflow](http://stackoverflow.com/tags/tv)
113+
* Ask a question on Stack Overflow with the [Connect-SDK tag](https://stackoverflow.com/tags/connect-sdk) (or [TV tag](https://stackoverflow.com/tags/tv))
145114
* General Inquiries [email protected]
146115
* Developer Support [email protected]
147116
* Partnerships [email protected]
148117

149118
##Credits
150-
Connect SDK for Android makes use of the following open-source projects.
119+
Connect SDK for Android makes use of the following projects, some of which are open-source.
151120

121+
* [Amazon Fling SDK](https://developer.amazon.com/fling)
122+
- [Amazon Fling SDK Terms of Service](https://developer.amazon.com/public/support/pml.html)
123+
* [Android-DLNA](https://code.google.com/p/android-dlna/) (Apache License, Version 2.0)
124+
* [Google Cast SDK](https://developers.google.com/cast/)
125+
- [Google Cast SDK Additional Developer Terms of Service](https://developers.google.com/cast/docs/terms)
126+
- [Google APIs Terms of Service](https://developers.google.com/terms/)
152127
* [Java-WebSocket](https://github.com/TooTallNate/Java-WebSocket) (MIT)
153128
* [JmDNS](http://jmdns.sourceforge.net) (Apache License, Version 2.0)
154-
* [Android-DLNA](https://code.google.com/p/android-dlna/) (Apache License, Version 2.0)
129+
130+
These projects are used in tests:
131+
* [Mockito](http://mockito.org/) (MIT)
132+
* [Robolectric](http://robolectric.org) (MIT)
133+
* [PowerMock](https://github.com/jayway/powermock) (Apache License, Version 2.0)
155134

156135
##License
157-
Copyright (c) 2013-2014 LG Electronics.
136+
Copyright (c) 2013-2015 LG Electronics.
158137

159138
Licensed under the Apache License, Version 2.0 (the "License");
160139
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)