Skip to content

Commit

Permalink
Release beta V1
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanshut041 committed Feb 20, 2021
1 parent aaa36d1 commit e44daaf
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ android {
minSdkVersion 23
targetSdkVersion 30
versionCode 1
versionName "1.0"
versionName "1.0-beta-1"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
30 changes: 15 additions & 15 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.deepanshut041.peertube">
<uses-feature
android:name="android.software.leanback"
android:required="false" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<!-- <uses-feature-->
<!-- android:name="android.software.leanback"-->
<!-- android:required="false" />-->
<!-- <uses-feature-->
<!-- -->
<!-- android:name="android.hardware.touchscreen"-->
<!-- android:required="false" />-->

<uses-permission android:name="android.permission.INTERNET" />

<application
android:name="com.deepanshut041.peertube.App"
android:allowBackup="true"
android:banner="@drawable/banner"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
Expand All @@ -34,14 +34,14 @@
</intent-filter>
</activity>

<activity
android:name="com.deepanshut041.peertube.ui.tv.TvActivity"
android:theme="@style/TvSplashScreenTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
<!-- <activity-->
<!-- android:name="com.deepanshut041.peertube.ui.tv.TvActivity"-->
<!-- android:theme="@style/TvSplashScreenTheme">-->
<!-- <intent-filter>-->
<!-- <action android:name="android.intent.action.MAIN" />-->
<!-- <category android:name="android.intent.category.LEANBACK_LAUNCHER" />-->
<!-- </intent-filter>-->
<!-- </activity>-->

</application>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ import com.deepanshut041.peertube.util.getViewModel
import com.deepanshut041.peertube.util.humanReadableBigNumber
import dev.chrisbanes.accompanist.coil.CoilImage
import androidx.compose.runtime.DisposableEffect
import com.mikepenz.iconics.compose.ExperimentalIconics

val PLAYER_HEIGHT = 240.dp
const val MAX_Y_SCALE = 0.3f

@ExperimentalIconics
@ExperimentalMaterialApi
@ExperimentalAnimationApi
@Composable
Expand Down Expand Up @@ -87,7 +89,7 @@ fun VideoOverlayPlayer(
) {
if (videoResult.state == Resource.SUCCESS)
VideoPlayer(
url = videoResult.data?.files?.get(0)?.fileUrl ?: "",
url = videoResult.data?.files?.firstOrNull()?.fileUrl ?: "",
modifier = Modifier.fillMaxWidth(scaleX)
.clickable(
enabled = !stickyDraggingConfig.isExpanded,
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/drawable/tv_splash_screen.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<item android:drawable="@android:color/white" />
<item>
<bitmap
android:gravity="center"
android:src="@drawable/tv_splash_screen_image"/>
android:gravity="center"/>
</item>
</layer-list>
Binary file removed app/src/main/res/drawable/tv_splash_screen_image.png
Binary file not shown.

0 comments on commit e44daaf

Please sign in to comment.