Merge branch 'dev'
This commit is contained in:
18
README.md
18
README.md
@@ -63,6 +63,24 @@ Please visit [Aurora Wiki](https://gitlab.com/AuroraOSS/AuroraStore/-/wikis/home
|
|||||||
- [Telegram](https://t.me/AuroraSupport)
|
- [Telegram](https://t.me/AuroraSupport)
|
||||||
- [XDA Developers](https://forum.xda-developers.com/t/app-5-0-aurora-store-open-source-google-play-client.3739733/)
|
- [XDA Developers](https://forum.xda-developers.com/t/app-5-0-aurora-store-open-source-google-play-client.3739733/)
|
||||||
|
|
||||||
|
## Permissions
|
||||||
|
|
||||||
|
- `android.permission.INTERNET` to download and install/update apps from the Google Play servers
|
||||||
|
- `android.permission.ACCESS_NETWORK_STATE` to check internet availability
|
||||||
|
- `android.permission.FOREGROUND_SERVICE` to download apps without interruption
|
||||||
|
- `android.permission.FOREGROUND_SERVICE_DATA_SYNC` to download apps without interruption
|
||||||
|
- `android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS` to auto-update apps without interruption (optional)
|
||||||
|
- `android.permission.MANAGE_EXTERNAL_STORAGE` to access the OBB directory to download APK expansion files for games or large apps
|
||||||
|
- `android.permission.READ_EXTERNAL_STORAGE` to access the OBB directory to download APK expansion files for games or large apps
|
||||||
|
- `android.permission.WRITE_EXTERNAL_STORAGE` to access the OBB directory to download APK expansion files for games or large apps
|
||||||
|
- `android.permission.QUERY_ALL_PACKAGES` to check updates for all installed apps
|
||||||
|
- `android.permission.REQUEST_INSTALL_PACKAGES` to install and update apps
|
||||||
|
- `android.permission.REQUEST_DELETE_PACKAGES` to uninstall apps
|
||||||
|
- `android.permission.ENFORCE_UPDATE_OWNERSHIP` to silently update apps
|
||||||
|
- `android.permission.UPDATE_PACKAGES_WITHOUT_USER_ACTION` to silently update apps
|
||||||
|
- `android.permission.POST_NOTIFICATIONS` to notify user about ongoing downloads, available updates, and errors (optional)
|
||||||
|
- `android.permission.USE_CREDENTIALS` to allow users to sign into their personal Google account via microG
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/screenshot-01.png" height="400">
|
<img src="fastlane/metadata/android/en-US/images/phoneScreenshots/screenshot-01.png" height="400">
|
||||||
|
|||||||
@@ -717,6 +717,7 @@ class AppDetailsFragment : BaseFragment<FragmentDetailsBinding>() {
|
|||||||
|
|
||||||
updateAppDescription(app)
|
updateAppDescription(app)
|
||||||
updateAppRatingAndReviews(app)
|
updateAppRatingAndReviews(app)
|
||||||
|
updateUserReview()
|
||||||
updateAppDevInfo(app)
|
updateAppDevInfo(app)
|
||||||
updateAppPermission(app)
|
updateAppPermission(app)
|
||||||
|
|
||||||
@@ -828,26 +829,25 @@ class AppDetailsFragment : BaseFragment<FragmentDetailsBinding>() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun updateUserReview(review: Review) {
|
private fun updateUserReview(review: Review? = null) {
|
||||||
binding.layoutDetailsReview.apply {
|
binding.layoutDetailsReview.apply {
|
||||||
layoutUserReview.visibility = View.VISIBLE
|
layoutUserReview.isVisible = !authProvider.isAnonymous
|
||||||
inputTitle.setText(review.title)
|
btnPostReview.setOnClickListener {
|
||||||
inputReview.setText(review.comment)
|
viewModel.postAppReview(
|
||||||
userStars.rating = review.rating.toFloat()
|
app.packageName,
|
||||||
|
Review(
|
||||||
|
title = inputTitle.text.toString(),
|
||||||
|
rating = userStars.rating.toInt(),
|
||||||
|
comment = inputReview.text.toString()
|
||||||
|
),
|
||||||
|
app.testingProgram?.isSubscribed ?: false
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
if (!authProvider.isAnonymous && app.isInstalled) {
|
if (review != null) {
|
||||||
btnPostReview.setOnClickListener {
|
inputTitle.setText(review.title)
|
||||||
addOrUpdateReview(
|
inputReview.setText(review.comment)
|
||||||
app,
|
userStars.rating = review.rating.toFloat()
|
||||||
Review().apply {
|
|
||||||
title = inputTitle.text.toString()
|
|
||||||
rating = userStars.rating.toInt()
|
|
||||||
comment = inputReview.text.toString()
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
layoutUserReview.visibility = View.GONE
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1025,8 +1025,4 @@ class AppDetailsFragment : BaseFragment<FragmentDetailsBinding>() {
|
|||||||
private fun addAvgReviews(number: Int, max: Long, rating: Long): RelativeLayout {
|
private fun addAvgReviews(number: Int, max: Long, rating: Long): RelativeLayout {
|
||||||
return RatingView(requireContext(), number, max.toInt(), rating.toInt())
|
return RatingView(requireContext(), number, max.toInt(), rating.toInt())
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun addOrUpdateReview(app: App, review: Review, isBeta: Boolean = false) {
|
|
||||||
viewModel.postAppReview(app.packageName, review, isBeta)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user