-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
Recording
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/workspace.xml | ||
/.idea/libraries | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,53 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion 24 | ||
buildToolsVersion "24.0.2" | ||
compileSdkVersion 25 | ||
buildToolsVersion '25.0.2' | ||
defaultConfig { | ||
applicationId "com.lab.itv.subchannel" | ||
applicationId "news.androidtv.subchannel" | ||
minSdkVersion 21 | ||
targetSdkVersion 24 | ||
targetSdkVersion 25 | ||
versionCode 1 | ||
versionName "1.0" | ||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
multiDexEnabled true | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
packagingOptions { | ||
exclude 'META-INF/DEPENDENCIES.txt' | ||
exclude 'META-INF/LICENSE.txt' | ||
exclude 'META-INF/NOTICE.txt' | ||
exclude 'META-INF/NOTICE' | ||
exclude 'META-INF/LICENSE' | ||
exclude 'META-INF/DEPENDENCIES' | ||
exclude 'META-INF/notice.txt' | ||
exclude 'META-INF/license.txt' | ||
exclude 'META-INF/dependencies.txt' | ||
exclude 'META-INF/LGPL2.1' | ||
exclude 'META-INF/plexus/components.xml' | ||
} | ||
} | ||
|
||
dependencies { | ||
compile fileTree(dir: 'libs', include: ['*.jar']) | ||
compile 'com.android.support:leanback-v17:24.2.1' | ||
compile 'com.android.support:appcompat-v7:24.2.1' | ||
compile 'com.github.bumptech.glide:glide:3.4.+' | ||
compile 'com.android.support:appcompat-v7:25.1.0' | ||
compile('com.github.jreddit:jreddit:1.0.3') { | ||
exclude group: 'org.apache.httpcomponents', module: 'httpclient' | ||
exclude module: 'junit' | ||
} | ||
compile 'org.apache.httpcomponents:httpclient-android:4.3.5.1' | ||
compile 'com.github.fleker:settingsmanager:1.3.+' | ||
compile 'com.github.itvlab:youtube-tv-player:7c430d4cb7' | ||
compile 'com.google.android.libraries.tv:companionlibrary:0.1' | ||
|
||
testCompile 'junit:junit:4.10' | ||
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { | ||
exclude group: 'com.android.support', module: 'support-annotations' | ||
}) | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package news.androidtv.subchannel; | ||
|
||
import android.content.Context; | ||
import android.support.test.InstrumentationRegistry; | ||
import android.support.test.runner.AndroidJUnit4; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
/** | ||
* Instrumentation test, which will execute on an Android device. | ||
* | ||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a> | ||
*/ | ||
@RunWith(AndroidJUnit4.class) | ||
public class ExampleInstrumentedTest { | ||
@Test | ||
public void useAppContext() throws Exception { | ||
// Context of the app under test. | ||
Context appContext = InstrumentationRegistry.getTargetContext(); | ||
|
||
assertEquals("news.androidtv.subchannel", appContext.getPackageName()); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,65 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.lab.itv.subchannel"> | ||
package="news.androidtv.subchannel"> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.RECORD_AUDIO" /> | ||
|
||
<uses-feature | ||
android:name="android.hardware.touchscreen" | ||
android:required="false" /> | ||
<uses-feature | ||
android:name="android.software.leanback" | ||
android:required="true" /> | ||
<uses-feature | ||
android:name="android.software.live_tv" | ||
android:required="true" /> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<!-- Required to restart job service --> | ||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | ||
<uses-permission android:name="com.android.providers.tv.permission.WRITE_EPG_DATA" /> | ||
<uses-permission android:name="com.android.providers.tv.permission.READ_EPG_DATA" /> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:banner="@drawable/ic_banner" | ||
android:label="@string/app_name" | ||
android:supportsRtl="true" | ||
android:theme="@style/Theme.Leanback"> | ||
<activity | ||
android:name=".MainActivity" | ||
android:banner="@drawable/app_icon_your_company" | ||
android:icon="@drawable/app_icon_your_company" | ||
android:label="@string/app_name" | ||
android:logo="@drawable/app_icon_your_company" | ||
android:screenOrientation="landscape"> | ||
android:theme="@style/AppTheme" > | ||
<activity android:name=".MainActivity" > | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LEANBACK_LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity android:name=".DetailsActivity" /> | ||
<activity android:name=".PlaybackOverlayActivity" /> | ||
<activity android:name=".BrowseErrorActivity" /> | ||
|
||
<service | ||
android:name=".services.TifPlaybackService" | ||
android:enabled="true" | ||
android:exported="true" | ||
android:permission="android.permission.BIND_TV_INPUT"> | ||
<intent-filter> | ||
<action android:name="android.media.tv.TvInputService" /> | ||
</intent-filter> | ||
<meta-data | ||
android:name="android.media.tv.input" | ||
android:resource="@xml/subchannel" /> | ||
</service> | ||
|
||
<service android:name=".services.SubredditJobService" | ||
android:permission="android.permission.BIND_JOB_SERVICE" | ||
android:enabled="true" | ||
/> | ||
|
||
<activity | ||
android:name=".SetupActivity" | ||
android:exported="true" | ||
android:enabled="true" | ||
android:label="Init"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
</intent-filter> | ||
</activity> | ||
</application> | ||
|
||
</manifest> |