Compare commits
	
		
			10 Commits
		
	
	
		
			68a3aa085a
			...
			v125051211
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| e4b6119f65 | |||
| ea70c64873 | |||
|  | f4a1805474 | ||
| a602f7adf2 | |||
|  | cf6ef51edf | ||
| 0b7f832573 | |||
| 22c966bf16 | |||
| bdf2bb8b31 | |||
| ceae91206d | |||
| 11c0e744dc | 
| @@ -11,7 +11,7 @@ jobs: | |||||||
|           fetch-depth: 0 |           fetch-depth: 0 | ||||||
|       - name: "Check android app changes" |       - name: "Check android app changes" | ||||||
|         id: check-android-changes |         id: check-android-changes | ||||||
|         uses: tj-actions/changed-files@v45 |         uses: tj-actions/changed-files@v46 | ||||||
|         with: |         with: | ||||||
|           files: | |           files: | | ||||||
|             androidApp/src/** |             androidApp/src/** | ||||||
|   | |||||||
| @@ -31,8 +31,9 @@ jobs: | |||||||
|           fetch-depth: 0 |           fetch-depth: 0 | ||||||
|       - name: "Check translations changes" |       - name: "Check translations changes" | ||||||
|         id: check-translations-changes |         id: check-translations-changes | ||||||
|         uses: tj-actions/changed-files@v45 |         uses: tj-actions/changed-files@v46 | ||||||
|         with: |         with: | ||||||
|  |           base_sha: ${{ github.event.pull_request.base.sha }} | ||||||
|           files: | |           files: | | ||||||
|             androidApp/src/main/res/values/strings.xml |             androidApp/src/main/res/values/strings.xml | ||||||
|       - name: upload translation sources |       - name: upload translation sources | ||||||
|   | |||||||
| @@ -31,9 +31,6 @@ jobs: | |||||||
|       - name: Change url until I find a better way to do it |       - name: Change url until I find a better way to do it | ||||||
|         run: | |         run: | | ||||||
|           sed -i "s/const val DEFAULT_URL = \"http:\/\/10\.0\.2\.2\:8888\"/const val DEFAULT_URL = \"http:\/\/172\.17\.0\.1\:8888\"/g" ./androidApp/src/androidTest/kotlin/bou/amine/apps/readerforselfossv2/android/CommonTests.kt |           sed -i "s/const val DEFAULT_URL = \"http:\/\/10\.0\.2\.2\:8888\"/const val DEFAULT_URL = \"http:\/\/172\.17\.0\.1\:8888\"/g" ./androidApp/src/androidTest/kotlin/bou/amine/apps/readerforselfossv2/android/CommonTests.kt | ||||||
|           echo '-----------' |  | ||||||
|           cat ./androidApp/src/androidTest/kotlin/bou/amine/apps/readerforselfossv2/android/CommonTests.kt |  | ||||||
|           echo '-----------' |  | ||||||
|       - name: Tests |       - name: Tests | ||||||
|         uses: reactivecircus/android-emulator-runner@v2 |         uses: reactivecircus/android-emulator-runner@v2 | ||||||
|         with: |         with: | ||||||
|   | |||||||
							
								
								
									
										27
									
								
								CHANGELOG.md
									
									
									
									
									
								
							
							
						
						
									
										27
									
								
								CHANGELOG.md
									
									
									
									
									
								
							| @@ -1,3 +1,30 @@ | |||||||
|  | **v125040991 | ||||||
|  |  | ||||||
|  | - fix: Connectivity toast message was causing issues. | ||||||
|  | - Changelog for v125030901 | ||||||
|  |  | ||||||
|  | -------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  | **v125030901 | ||||||
|  |  | ||||||
|  | - Merge pull request 'fix-reload' (#195) from fix-reload into master | ||||||
|  | - fix: Infinite scroll needs loading stats. | ||||||
|  | - fix: do not reload items on resume. | ||||||
|  | - Merge pull request 'tests' (#193) from tests into master | ||||||
|  | - ci: Instrumentation tests coverage in ci. | ||||||
|  | - ci: Instrumentation tests coverage in ci. | ||||||
|  | - ci: Instrumentation tests coverage in ci. | ||||||
|  | - chore: better handling of coroutine dispatchers. | ||||||
|  | - ci: Instrumentation tests coverage in ci. | ||||||
|  | - chore: comment robolectric tests for now. | ||||||
|  | - fix: Fixed source deletion test. | ||||||
|  | - Merge pull request 'Fix alignment changes resetting reader article position' (#190) from davidoskky/ReaderForSelfoss-multiplatform:alignment into master | ||||||
|  | - Refactor star icon handling | ||||||
|  | - Don't restart activity changing alignment | ||||||
|  | - Changelog for v125030711 | ||||||
|  |  | ||||||
|  | -------------------------------------------------------------------- | ||||||
|  |  | ||||||
| **v125030711 | **v125030711 | ||||||
|  |  | ||||||
| - Merge pull request 'fix: initial status loading issues.' (#192) from connectivity into master | - Merge pull request 'fix: initial status loading issues.' (#192) from connectivity into master | ||||||
|   | |||||||
| @@ -120,6 +120,7 @@ class HomeActivity : | |||||||
|         binding.swipeRefreshLayout.setOnRefreshListener { |         binding.swipeRefreshLayout.setOnRefreshListener { | ||||||
|             repository.offlineOverride = false |             repository.offlineOverride = false | ||||||
|             lastFetchDone = false |             lastFetchDone = false | ||||||
|  |             items.clear() | ||||||
|             getElementsAccordingToTab() |             getElementsAccordingToTab() | ||||||
|             binding.swipeRefreshLayout.isRefreshing = false |             binding.swipeRefreshLayout.isRefreshing = false | ||||||
|         } |         } | ||||||
| @@ -386,6 +387,7 @@ class HomeActivity : | |||||||
|                     lastFetchDone = false |                     lastFetchDone = false | ||||||
|  |  | ||||||
|                     elementsShown = ItemType.fromInt(position + 1) |                     elementsShown = ItemType.fromInt(position + 1) | ||||||
|  |                     items = ArrayList() | ||||||
|                     getElementsAccordingToTab() |                     getElementsAccordingToTab() | ||||||
|                     binding.recyclerView.scrollToPosition(0) |                     binding.recyclerView.scrollToPosition(0) | ||||||
|  |  | ||||||
| @@ -458,23 +460,28 @@ class HomeActivity : | |||||||
|         appendResults: Boolean, |         appendResults: Boolean, | ||||||
|         itemType: ItemType, |         itemType: ItemType, | ||||||
|     ) { |     ) { | ||||||
|         CountingIdlingResourceSingleton.increment() |         @Suppress("detekt:ComplexCondition") | ||||||
|         binding.swipeRefreshLayout.isRefreshing = true |         if ((appendResults && items.size > 0) || (!appendResults && items.size == 0)) { | ||||||
|         CoroutineScope(Dispatchers.IO).launch { |  | ||||||
|             repository.displayedItems = itemType |  | ||||||
|             items = |  | ||||||
|                 if (appendResults) { |  | ||||||
|                     repository.getOlderItems() |  | ||||||
|                 } else { |  | ||||||
|                     repository.getNewerItems() |  | ||||||
|                 } |  | ||||||
|             CountingIdlingResourceSingleton.increment() |             CountingIdlingResourceSingleton.increment() | ||||||
|             launch(Dispatchers.Main) { |             binding.swipeRefreshLayout.isRefreshing = true | ||||||
|                 binding.swipeRefreshLayout.isRefreshing = false |             CoroutineScope(Dispatchers.IO).launch { | ||||||
|                 handleListResult() |                 repository.displayedItems = itemType | ||||||
|  |                 items = | ||||||
|  |                     if (appendResults) { | ||||||
|  |                         repository.getOlderItems() | ||||||
|  |                     } else { | ||||||
|  |                         repository.getNewerItems() | ||||||
|  |                     } | ||||||
|  |                 CountingIdlingResourceSingleton.increment() | ||||||
|  |                 launch(Dispatchers.Main) { | ||||||
|  |                     binding.swipeRefreshLayout.isRefreshing = false | ||||||
|  |                     handleListResult() | ||||||
|  |                     CountingIdlingResourceSingleton.decrement() | ||||||
|  |                 } | ||||||
|                 CountingIdlingResourceSingleton.decrement() |                 CountingIdlingResourceSingleton.decrement() | ||||||
|             } |             } | ||||||
|             CountingIdlingResourceSingleton.decrement() |         } else { | ||||||
|  |             handleListResult() | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
| @@ -534,7 +541,10 @@ class HomeActivity : | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     private fun reloadBadges() { |     private fun reloadBadges() { | ||||||
|         if (appSettingsService.isDisplayUnreadCountEnabled() || appSettingsService.isDisplayAllCountEnabled()) { |         if (appSettingsService.isInfiniteLoadingEnabled() || | ||||||
|  |             appSettingsService.isDisplayUnreadCountEnabled() || | ||||||
|  |             appSettingsService.isDisplayAllCountEnabled() | ||||||
|  |         ) { | ||||||
|             CountingIdlingResourceSingleton.increment() |             CountingIdlingResourceSingleton.increment() | ||||||
|             CoroutineScope(Dispatchers.IO).launch { |             CoroutineScope(Dispatchers.IO).launch { | ||||||
|                 repository.reloadBadges() |                 repository.reloadBadges() | ||||||
|   | |||||||
| @@ -82,13 +82,14 @@ class MyApp : | |||||||
|                         } else { |                         } else { | ||||||
|                             R.string.network_connectivity_lost |                             R.string.network_connectivity_lost | ||||||
|                         } |                         } | ||||||
|  |                     launch(Dispatchers.Main) { | ||||||
|                     Toast |                         Toast | ||||||
|                         .makeText( |                             .makeText( | ||||||
|                             applicationContext, |                                 applicationContext, | ||||||
|                             toastMessage, |                                 toastMessage, | ||||||
|                             Toast.LENGTH_SHORT, |                                 Toast.LENGTH_SHORT, | ||||||
|                         ).show() |                             ).show() | ||||||
|  |                     } | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|   | |||||||
| @@ -30,7 +30,7 @@ import org.kodein.di.instance | |||||||
|  |  | ||||||
| class ItemCardAdapter( | class ItemCardAdapter( | ||||||
|     override val app: Activity, |     override val app: Activity, | ||||||
|     override val items: ArrayList<SelfossModel.Item>, |     override var items: ArrayList<SelfossModel.Item>, | ||||||
|     override val updateHomeItems: (ArrayList<SelfossModel.Item>) -> Unit, |     override val updateHomeItems: (ArrayList<SelfossModel.Item>) -> Unit, | ||||||
| ) : ItemsAdapter<ItemCardAdapter.ViewHolder>() { | ) : ItemsAdapter<ItemCardAdapter.ViewHolder>() { | ||||||
|     override lateinit var binding: CardItemBinding |     override lateinit var binding: CardItemBinding | ||||||
|   | |||||||
| @@ -21,7 +21,7 @@ import org.kodein.di.instance | |||||||
|  |  | ||||||
| class ItemListAdapter( | class ItemListAdapter( | ||||||
|     override val app: Activity, |     override val app: Activity, | ||||||
|     override val items: ArrayList<SelfossModel.Item>, |     override var items: ArrayList<SelfossModel.Item>, | ||||||
|     override val updateHomeItems: (ArrayList<SelfossModel.Item>) -> Unit, |     override val updateHomeItems: (ArrayList<SelfossModel.Item>) -> Unit, | ||||||
| ) : ItemsAdapter<ItemListAdapter.ViewHolder>() { | ) : ItemsAdapter<ItemListAdapter.ViewHolder>() { | ||||||
|     override lateinit var binding: ListItemBinding |     override lateinit var binding: ListItemBinding | ||||||
|   | |||||||
| @@ -21,7 +21,7 @@ import org.kodein.di.DIAware | |||||||
| abstract class ItemsAdapter<VH : RecyclerView.ViewHolder?> : | abstract class ItemsAdapter<VH : RecyclerView.ViewHolder?> : | ||||||
|     RecyclerView.Adapter<VH>(), |     RecyclerView.Adapter<VH>(), | ||||||
|     DIAware { |     DIAware { | ||||||
|     abstract val items: ArrayList<SelfossModel.Item> |     abstract var items: ArrayList<SelfossModel.Item> | ||||||
|     abstract val repository: Repository |     abstract val repository: Repository | ||||||
|     abstract val binding: ViewBinding |     abstract val binding: ViewBinding | ||||||
|     abstract val appSettingsService: AppSettingsService |     abstract val appSettingsService: AppSettingsService | ||||||
| @@ -31,8 +31,7 @@ abstract class ItemsAdapter<VH : RecyclerView.ViewHolder?> : | |||||||
|     protected val c: Context get() = app.baseContext |     protected val c: Context get() = app.baseContext | ||||||
|  |  | ||||||
|     fun updateAllItems(items: ArrayList<SelfossModel.Item>) { |     fun updateAllItems(items: ArrayList<SelfossModel.Item>) { | ||||||
|         this.items.clear() |         this.items = items | ||||||
|         this.items.addAll(items) |  | ||||||
|         updateHomeItems(items) |         updateHomeItems(items) | ||||||
|         notifyDataSetChanged() |         notifyDataSetChanged() | ||||||
|     } |     } | ||||||
|   | |||||||
							
								
								
									
										17
									
								
								fastlane/metadata/android/en-US/changelogs/v125030901.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								fastlane/metadata/android/en-US/changelogs/v125030901.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | |||||||
|  | **v125030901** | ||||||
|  |  | ||||||
|  | - Merge pull request 'fix-reload' (#195) from fix-reload into master | ||||||
|  | - fix: Infinite scroll needs loading stats. | ||||||
|  | - fix: do not reload items on resume. | ||||||
|  | - Merge pull request 'tests' (#193) from tests into master | ||||||
|  | - ci: Instrumentation tests coverage in ci. | ||||||
|  | - ci: Instrumentation tests coverage in ci. | ||||||
|  | - ci: Instrumentation tests coverage in ci. | ||||||
|  | - chore: better handling of coroutine dispatchers. | ||||||
|  | - ci: Instrumentation tests coverage in ci. | ||||||
|  | - chore: comment robolectric tests for now. | ||||||
|  | - fix: Fixed source deletion test. | ||||||
|  | - Merge pull request 'Fix alignment changes resetting reader article position' (#190) from davidoskky/ReaderForSelfoss-multiplatform:alignment into master | ||||||
|  | - Refactor star icon handling | ||||||
|  | - Don't restart activity changing alignment | ||||||
|  | - Changelog for v125030711 | ||||||
| @@ -0,0 +1,4 @@ | |||||||
|  | **v125040991** | ||||||
|  |  | ||||||
|  | - fix: Connectivity toast message was causing issues. | ||||||
|  | - Changelog for v125030901 | ||||||
		Reference in New Issue
	
	Block a user