6 Commits
v0.5 ... v0.5.1

Author SHA1 Message Date
14640a825f Merge branch 'development' into 'master'
0.5.1 version

See merge request agosto182/p2play!7
2019-12-13 15:56:33 +00:00
8fbfd57f78 Update new version 2019-12-13 09:55:42 -06:00
a66acfbcea Most liked videos 2019-12-13 09:53:10 -06:00
d410be7d4e Fastlane spanish lang 2019-11-01 09:13:26 -06:00
a26efeba63 Fastlane changes 2019-11-01 08:17:48 -06:00
49b7841a97 Fastlane added 2019-10-30 12:01:48 -06:00
22 changed files with 87 additions and 3 deletions

View File

@ -11,8 +11,8 @@ android {
minSdkVersion 21
//noinspection OldTargetApi
targetSdkVersion 27
versionCode 6
versionName "0.5"
versionCode 7
versionName "0.5.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {

View File

@ -235,10 +235,27 @@ class MainActivity : AppCompatActivity(), NavigationView.OnNavigationItemSelecte
}
}
// Most liked
private fun getMostLiked(){
swipeContainer.isRefreshing = true
section = "liked"
setTitle(R.string.nav_likes)
AsyncTask.execute {
val videos = client.getMostLikedVideos(this.pagination)
runOnUiThread {
this.addVideos(videos)
}
}
}
override fun onBackPressed() {
if (drawer_layout.isDrawerOpen(GravityCompat.START)) {
drawer_layout.closeDrawer(GravityCompat.START)
} else {
}
else if(!section.equals("trending")) {
this.getTrengindVideos()
}
else {
super.onBackPressed()
}
}
@ -324,6 +341,7 @@ class MainActivity : AppCompatActivity(), NavigationView.OnNavigationItemSelecte
}
R.id.nav_history -> getHistory()
R.id.nav_myVideos -> getMyVideos()
R.id.nav_likes -> getMostLiked()
}
drawer_layout.closeDrawer(GravityCompat.START)
@ -392,6 +410,7 @@ class MainActivity : AppCompatActivity(), NavigationView.OnNavigationItemSelecte
else
this.getLastVideos()
}
"liked" -> this.getMostLiked()
}
}

View File

@ -34,6 +34,7 @@ import org.libre.agosto.p2play.models.VideoModel
@Suppress("NAME_SHADOWING")
class ReproductorActivity : AppCompatActivity() {
lateinit var video: VideoModel
private val _actions: Actions = Actions()

View File

@ -21,6 +21,7 @@ import java.io.InputStream
import java.io.Serializable
import java.net.URL
@Suppress("DEPRECATION")
class CommentariesAdapter(private val myDataset: ArrayList<CommentaryModel>) :
RecyclerView.Adapter<CommentariesAdapter.ViewHolder>() {

View File

@ -194,4 +194,8 @@ class Videos: Client() {
con.disconnect()
return videos
}
fun getMostLikedVideos(start:Int = 0): ArrayList<VideoModel>{
return this.getVideos(start,"-likes")
}
}

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M1,21h4L5,9L1,9v12zM23,10c0,-1.1 -0.9,-2 -2,-2h-6.31l0.95,-4.57 0.03,-0.32c0,-0.41 -0.17,-0.79 -0.44,-1.06L14.17,1 7.59,7.59C7.22,7.95 7,8.45 7,9v10c0,1.1 0.9,2 2,2h9c0.83,0 1.54,-0.5 1.84,-1.22l3.02,-7.05c0.09,-0.23 0.14,-0.47 0.14,-0.73v-1.91l-0.01,-0.01L23,10z"/>
</vector>

View File

@ -36,6 +36,10 @@
android:id="@+id/nav_trending"
android:icon="@drawable/ic_trending_up_black_24dp"
android:title="@string/nav_trending" />
<item
android:id="@+id/nav_likes"
android:icon="@drawable/ic_thumb_up_black_24dp"
android:title="@string/nav_likes" />
<item
android:id="@+id/nav_recent"
android:icon="@drawable/ic_add_circle_black_24dp"

View File

@ -102,6 +102,7 @@
<string name="hostIndicator">Host:</string>
<string name="reportDialog">Razon para reportar:</string>
<string name="reportDialogMsg">Has reportado el video</string>
<string name="nav_likes">Mas gustados</string>
<!-- End Settings strings -->
</resources>

View File

@ -73,6 +73,7 @@
<string name="nav_menu_myLibrary">My Library</string>
<string name="nav_menu_videos">Videos</string>
<string name="nav_menu_more">More</string>
<string name="nav_likes">Most liked</string>
<!-- End Menu strings -->
<!-- Start MiniMenu strings -->
<string name="action_settings">Settings</string>

View File

@ -0,0 +1,20 @@
P2Play is an Android Application for Peertube.
What is Peertube? https://github.com/Chocobozzz/PeerTube/
Features
* Show recent, popular and local list of videos.
* Reproduce videos
* Login and register in your instance
* Show uploaded videos
* Subscribe to accounts
* Show your subscription videos
* Show your history
* Rate videos
* Show and make commentaries
* Splash screen
* Search videos
* Infinite scroll
* Share videos
* Report videos
* Peertube profiles

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -0,0 +1 @@
Unofficial client for Peertube

View File

@ -0,0 +1 @@
P2Play - Peertube client

View File

@ -0,0 +1,20 @@
P2Play es una aplicacion android para Peertube.
¿Que es Peertube? https://github.com/Chocobozzz/PeerTube/
Caracteristicas
* Show recent, popular and local list of videos.
* Reproduce videos
* Login and register in your instance
* Show uploaded videos
* Subscribe to accounts
* Show your subscription videos
* Show your history
* Rate videos
* Show and make commentaries
* Splash screen
* Search videos
* Infinite scroll
* Share videos
* Report videos
* Peertube profiles

View File

@ -0,0 +1 @@
Cliente no oficial de Peertube

View File

@ -0,0 +1 @@
P2Play - Cliente peertube