This repository has been archived by the owner on Mar 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #173 from YTVanced/dev
1.3.0 release
- Loading branch information
Showing
128 changed files
with
4,164 additions
and
2,717 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"project_info": { | ||
"project_number": "840099702732", | ||
"firebase_url": "https://vanced-manager-official.firebaseio.com", | ||
"project_id": "vanced-manager-official", | ||
"storage_bucket": "vanced-manager-official.appspot.com" | ||
}, | ||
"client": [ | ||
{ | ||
"client_info": { | ||
"mobilesdk_app_id": "1:840099702732:android:ca65567b49f622bc359f69", | ||
"android_client_info": { | ||
"package_name": "com.vanced.manager" | ||
} | ||
}, | ||
"oauth_client": [ | ||
{ | ||
"client_id": "840099702732-4fjjofq6on2bpd7jb6f96bk0mkrjkkf6.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
], | ||
"api_key": [ | ||
{ | ||
"current_key": "AIzaSyAPI1RUaoCHmmWz9-TLvTKYPYs0ZVKkS2U" | ||
} | ||
], | ||
"services": { | ||
"appinvite_service": { | ||
"other_platform_oauth_client": [ | ||
{ | ||
"client_id": "840099702732-4fjjofq6on2bpd7jb6f96bk0mkrjkkf6.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"configuration_version": "1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
app/src/main/java/com/vanced/manager/adapter/ChangelogAdapter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.vanced.manager.adapter | ||
|
||
import android.view.LayoutInflater | ||
import android.view.View | ||
import android.view.ViewGroup | ||
import android.widget.TextView | ||
import androidx.recyclerview.widget.RecyclerView | ||
import com.vanced.manager.R | ||
import com.vanced.manager.ui.viewmodels.HomeViewModel | ||
|
||
class ChangelogAdapter(private val variant: String, viewModel: HomeViewModel?): RecyclerView.Adapter<ChangelogAdapter.ChangelogViewHolder>() { | ||
|
||
private val nonrootChangelogs = arrayOf(viewModel?.vanced?.get()?.changelog?.get(), viewModel?.music?.get()?.changelog?.get(), viewModel?.microg?.get()?.changelog?.get(), viewModel?.manager?.get()?.changelog?.get()) | ||
private val rootChangelogs = arrayOf(viewModel?.vanced?.get()?.changelog?.get(), viewModel?.manager?.get()?.changelog?.get()) | ||
|
||
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ChangelogViewHolder { | ||
val layoutInflater = LayoutInflater.from(parent.context) | ||
val view = layoutInflater.inflate(R.layout.view_changelog, parent, false) | ||
|
||
return ChangelogViewHolder(view) | ||
} | ||
|
||
override fun getItemCount(): Int = if (variant == "root") 2 else 4 | ||
|
||
override fun onBindViewHolder(holder: ChangelogViewHolder, position: Int) { | ||
holder.changelog.text = | ||
if (variant == "root") | ||
rootChangelogs[position] | ||
else | ||
nonrootChangelogs[position] | ||
|
||
} | ||
|
||
open class ChangelogViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) { | ||
val changelog: TextView = itemView.findViewById(R.id.changelog_text) | ||
} | ||
|
||
} |
22 changes: 0 additions & 22 deletions
22
app/src/main/java/com/vanced/manager/adapter/SectionPageAdapter.kt
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
app/src/main/java/com/vanced/manager/adapter/SectionPageRootAdapter.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.