feat: something idr
This commit is contained in:
parent
d37ebf8cdd
commit
7168e08587
10 changed files with 124 additions and 48 deletions
4
.github/workflows/beta.yml
vendored
4
.github/workflows/beta.yml
vendored
|
@ -39,7 +39,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
echo "Commits since $LAST_SHA:"
|
echo "Commits since $LAST_SHA:"
|
||||||
# Accumulate commit logs in a shell variable
|
# Accumulate commit logs in a shell variable
|
||||||
COMMIT_LOGS=$(git log $LAST_SHA..HEAD --pretty=format:"· %s")
|
COMMIT_LOGS=$(git log $LAST_SHA..HEAD --pretty=format:"● %s")
|
||||||
# URL-encode the newline characters for GitHub Actions
|
# URL-encode the newline characters for GitHub Actions
|
||||||
COMMIT_LOGS="${COMMIT_LOGS//'%'/'%25'}"
|
COMMIT_LOGS="${COMMIT_LOGS//'%'/'%25'}"
|
||||||
COMMIT_LOGS="${COMMIT_LOGS//$'\n'/'%0A'}"
|
COMMIT_LOGS="${COMMIT_LOGS//$'\n'/'%0A'}"
|
||||||
|
@ -104,7 +104,7 @@ jobs:
|
||||||
#Telegram
|
#Telegram
|
||||||
curl -F "chat_id=${{ secrets.TELEGRAM_CHANNEL_ID }}" \
|
curl -F "chat_id=${{ secrets.TELEGRAM_CHANNEL_ID }}" \
|
||||||
-F "document=@app/build/outputs/apk/google/alpha/app-google-alpha.apk" \
|
-F "document=@app/build/outputs/apk/google/alpha/app-google-alpha.apk" \
|
||||||
-F "caption=Alpha-Build: **${VERSION}** Change logs :${commit_messages}" \
|
-F "caption=Alpha-Build: ${VERSION}: ${commit_messages}" \
|
||||||
https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendDocument
|
https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendDocument
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -60,7 +60,7 @@ class AnimeWatchAdapter(
|
||||||
val binding = holder.binding
|
val binding = holder.binding
|
||||||
_binding = binding
|
_binding = binding
|
||||||
//Comments
|
//Comments
|
||||||
binding.animeComments.visibility = View.GONE
|
binding.animeComments.visibility = View.VISIBLE
|
||||||
binding.animeComments.setOnClickListener {
|
binding.animeComments.setOnClickListener {
|
||||||
startActivity(
|
startActivity(
|
||||||
fragment.requireContext(),
|
fragment.requireContext(),
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:width="24dp"
|
android:width="24dp"
|
||||||
android:height="24dp"
|
android:height="24dp"
|
||||||
|
android:tint="?attr/colorControlNormal"
|
||||||
android:viewportWidth="32"
|
android:viewportWidth="32"
|
||||||
android:viewportHeight="32">
|
android:viewportHeight="32">
|
||||||
<path
|
<path
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:width="24dp"
|
android:width="24dp"
|
||||||
android:height="24dp"
|
android:height="24dp"
|
||||||
|
android:tint="?attr/colorControlNormal"
|
||||||
android:viewportWidth="24"
|
android:viewportWidth="24"
|
||||||
android:viewportHeight="24">
|
android:viewportHeight="24">
|
||||||
<path
|
<path
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:width="24dp"
|
android:width="24dp"
|
||||||
android:height="24dp"
|
android:height="24dp"
|
||||||
android:tint="#000000"
|
android:tint="?attr/colorControlNormal"
|
||||||
android:viewportWidth="24"
|
android:viewportWidth="24"
|
||||||
android:viewportHeight="24">
|
android:viewportHeight="24">
|
||||||
<path
|
<path
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:width="24dp"
|
android:width="24dp"
|
||||||
android:height="24dp"
|
android:height="24dp"
|
||||||
|
android:tint="?attr/colorControlNormal"
|
||||||
android:viewportWidth="24"
|
android:viewportWidth="24"
|
||||||
android:viewportHeight="24">
|
android:viewportHeight="24">
|
||||||
<path
|
<path
|
||||||
|
|
12
app/src/main/res/drawable/ic_round_upvote_active_24.xml
Normal file
12
app/src/main/res/drawable/ic_round_upvote_active_24.xml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<vector
|
||||||
|
android:alpha="0.9"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportHeight="24"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:tint="?attr/colorControlNormal"
|
||||||
|
android:width="24dp"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<path
|
||||||
|
android:fillColor="#000000"
|
||||||
|
android:pathData="M4,14h4v7a1,1 0,0 0,1 1h6a1,1 0,0 0,1 -1v-7h4a1.001,1.001 0,0 0,0.781 -1.625l-8,-10c-0.381,-0.475 -1.181,-0.475 -1.562,0l-8,10A1.001,1.001 0,0 0,4 14z"/>
|
||||||
|
</vector>
|
11
app/src/main/res/drawable/ic_round_upvote_inactive_24.xml
Normal file
11
app/src/main/res/drawable/ic_round_upvote_inactive_24.xml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<vector android:alpha="0.9"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportHeight="24"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:tint="?attr/colorControlNormal"
|
||||||
|
android:width="24dp"
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<path
|
||||||
|
android:fillColor="#000000"
|
||||||
|
android:pathData="M12.781,2.375c-0.381,-0.475 -1.181,-0.475 -1.562,0l-8,10A1.001,1.001 0,0 0,4 14h4v7a1,1 0,0 0,1 1h6a1,1 0,0 0,1 -1v-7h4a1.001,1.001 0,0 0,0.781 -1.625l-8,-10zM15,12h-1v8h-4v-8H6.081L12,4.601 17.919,12H15z"/>
|
||||||
|
</vector>
|
|
@ -11,42 +11,26 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:layout_marginTop="8dp"
|
|
||||||
android:layout_marginStart="32dp"
|
|
||||||
android:layout_marginEnd="32dp"
|
|
||||||
tools:ignore="UseCompoundDrawables">
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginEnd="16dp"
|
|
||||||
android:src="@drawable/ic_round_comment_24"
|
|
||||||
tools:ignore="ContentDescription" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/commentTitle"
|
android:id="@+id/commentTitle"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="48dp"
|
||||||
|
android:layout_marginStart="32dp"
|
||||||
|
android:layout_marginEnd="32dp"
|
||||||
android:fontFamily="@font/poppins_bold"
|
android:fontFamily="@font/poppins_bold"
|
||||||
|
android:gravity="center"
|
||||||
android:text="@string/comments"
|
android:text="@string/comments"
|
||||||
|
android:textColor="?attr/colorPrimary"
|
||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/commentsList"
|
android:id="@+id/commentsList"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="16dp"
|
|
||||||
android:layout_marginTop="12dp"
|
android:layout_marginTop="12dp"
|
||||||
android:layout_marginEnd="16dp"
|
android:layout_marginBottom="58dp"
|
||||||
android:layout_marginBottom="16dp"
|
tools:listitem="@layout/item_comments" />
|
||||||
tools:listitem="@layout/item_comments"
|
|
||||||
android:orientation="vertical"/>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@ -55,6 +39,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:paddingBottom="8dp"
|
android:paddingBottom="8dp"
|
||||||
|
android:paddingTop="8dp"
|
||||||
android:layout_gravity="bottom|end"
|
android:layout_gravity="bottom|end"
|
||||||
android:background="@color/nav_bg">
|
android:background="@color/nav_bg">
|
||||||
|
|
||||||
|
@ -63,7 +48,7 @@
|
||||||
android:layout_width="42dp"
|
android:layout_width="42dp"
|
||||||
android:layout_height="42dp"
|
android:layout_height="42dp"
|
||||||
android:scaleType="center"
|
android:scaleType="center"
|
||||||
android:layout_marginStart="32dp"
|
android:layout_marginStart="12dp"
|
||||||
app:srcCompat="@drawable/ic_round_add_circle_24"
|
app:srcCompat="@drawable/ic_round_add_circle_24"
|
||||||
tools:ignore="ContentDescription,ImageContrastCheck" />
|
tools:ignore="ContentDescription,ImageContrastCheck" />
|
||||||
|
|
||||||
|
@ -87,7 +72,7 @@
|
||||||
android:id="@+id/commentSend"
|
android:id="@+id/commentSend"
|
||||||
android:layout_width="42dp"
|
android:layout_width="42dp"
|
||||||
android:layout_height="42dp"
|
android:layout_height="42dp"
|
||||||
android:layout_marginEnd="32dp"
|
android:layout_marginEnd="12dp"
|
||||||
android:background="@drawable/ic_round_send_24"
|
android:background="@drawable/ic_round_send_24"
|
||||||
tools:ignore="ContentDescription" />
|
tools:ignore="ContentDescription" />
|
||||||
|
|
||||||
|
|
|
@ -5,12 +5,10 @@
|
||||||
android:id="@+id/commentsCardView"
|
android:id="@+id/commentsCardView"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="24dp"
|
android:layout_marginStart="6dp"
|
||||||
android:layout_marginEnd="24dp"
|
android:layout_marginEnd="6dp"
|
||||||
android:layout_marginBottom="12dp"
|
android:layout_marginBottom="12dp"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:background="@drawable/card_outline"
|
|
||||||
android:backgroundTint="?attr/colorSurfaceVariant"
|
|
||||||
android:padding="6dp"
|
android:padding="6dp"
|
||||||
android:paddingStart="12dp"
|
android:paddingStart="12dp"
|
||||||
android:paddingEnd="12dp">
|
android:paddingEnd="12dp">
|
||||||
|
@ -61,7 +59,7 @@
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/commentText"
|
android:id="@+id/commentText"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:fontFamily="@font/poppins_semi_bold"
|
android:fontFamily="@font/poppins_semi_bold"
|
||||||
android:maxLines="3"
|
android:maxLines="3"
|
||||||
|
@ -69,17 +67,84 @@
|
||||||
android:text="@string/slogan"
|
android:text="@string/slogan"
|
||||||
android:textSize="12sp" />
|
android:textSize="12sp" />
|
||||||
|
|
||||||
<ImageView
|
<LinearLayout
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<TextView
|
||||||
android:id="@+id/commentReply"
|
android:id="@+id/commentReply"
|
||||||
android:layout_width="18dp"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="18dp"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="end"
|
|
||||||
|
android:alpha="0.6"
|
||||||
android:fontFamily="@font/poppins_semi_bold"
|
android:fontFamily="@font/poppins_semi_bold"
|
||||||
app:srcCompat="@drawable/ic_round_reply_24"
|
android:text="Reply"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
android:layout_marginTop="-6dp"
|
tools:ignore="HardcodedText" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/commentEdit"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:alpha="0.6"
|
||||||
|
android:fontFamily="@font/poppins_semi_bold"
|
||||||
|
android:text="Edit"
|
||||||
|
android:textSize="12sp"
|
||||||
|
android:layout_marginStart="12dp"
|
||||||
|
tools:ignore="HardcodedText" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/commentDelete"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:alpha="0.6"
|
||||||
|
android:fontFamily="@font/poppins_semi_bold"
|
||||||
|
android:text="Delete"
|
||||||
|
android:textSize="12sp"
|
||||||
|
android:layout_marginStart="12dp"
|
||||||
|
tools:ignore="HardcodedText" />
|
||||||
|
</LinearLayout>
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/commentTotalReplies"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:alpha="0.6"
|
||||||
|
android:fontFamily="@font/poppins_semi_bold"
|
||||||
|
android:text="View x more replies"
|
||||||
|
android:textSize="12sp"
|
||||||
|
android:layout_marginStart="12dp"
|
||||||
|
android:layout_marginTop="6dp"
|
||||||
|
tools:ignore="HardcodedText" />
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical">
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/commentUpVote"
|
||||||
|
android:layout_width="20dp"
|
||||||
|
android:layout_height="20dp"
|
||||||
|
android:alpha="0.4"
|
||||||
|
app:srcCompat="@drawable/ic_round_upvote_inactive_24"
|
||||||
|
tools:ignore="ContentDescription" />
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/commentTotalVotes"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:fontFamily="@font/poppins_semi_bold"
|
||||||
|
android:text="10"
|
||||||
|
android:textSize="12sp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:alpha="0.6"
|
||||||
|
tools:ignore="HardcodedText" />
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/commentDownVote"
|
||||||
|
android:layout_width="20dp"
|
||||||
|
android:layout_height="20dp"
|
||||||
|
android:alpha="0.4"
|
||||||
|
app:srcCompat="@drawable/ic_round_upvote_inactive_24"
|
||||||
|
android:rotation="180"
|
||||||
tools:ignore="ContentDescription" />
|
tools:ignore="ContentDescription" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
Loading…
Add table
Add a link
Reference in a new issue