Skip to content

Commit

Permalink
Merge pull request #39 from emreesen27/develop
Browse files Browse the repository at this point in the history
v1.0.2 is completed
  • Loading branch information
emreesen27 authored Jan 30, 2025
2 parents a8b5f0a + 25a4a4a commit 623d54d
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v1.0.2 (30.01.2025)
* Explode module updated.

## v1.0.1-Stable (08.12.2024)
* Minor UI improvements.
* [FIX] Resolved a crash caused by releasing the media session instance multiple times.
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ android {
applicationId = "com.snstudio.hyper"
minSdk = 26
targetSdk = 34
versionCode = 6
versionName = "1.0.1"
versionCode = 7
versionName = "1.0.2"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.snstudio.hyper.feature.search

import android.os.Build
import android.os.Bundle
import android.util.TypedValue
import android.view.ContextThemeWrapper
import android.view.View
Expand All @@ -10,6 +11,9 @@ import androidx.appcompat.widget.SearchView
import androidx.core.content.ContextCompat
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.lifecycleScope
import com.google.firebase.Firebase
import com.google.firebase.analytics.FirebaseAnalytics
import com.google.firebase.analytics.analytics
import com.snstudio.hyper.R
import com.snstudio.hyper.core.base.BaseFragment
import com.snstudio.hyper.core.extension.addOnScrolledToEnd
Expand Down Expand Up @@ -40,6 +44,7 @@ class SearchFragment :
BaseFragment<FragmentSearchBinding, SearchViewModel>(),
JobCompletedCallback {
private lateinit var mediaViewModel: MediaViewModel
private val firebaseAnalytics: FirebaseAnalytics = Firebase.analytics

private val mediaItemAdapter by lazy {
MediaItemAdapter(onItemCLick = { media, _ ->
Expand Down Expand Up @@ -171,6 +176,7 @@ class SearchFragment :
setOnQueryTextListener(
object : SearchView.OnQueryTextListener {
override fun onQueryTextSubmit(query: String): Boolean {
logSearchEvent(query)
viewModel.invokeSearch(query)
return true
}
Expand Down Expand Up @@ -258,4 +264,12 @@ class SearchFragment :

popupMenu.show()
}

fun logSearchEvent(query: String) {
val bundle =
Bundle().apply {
putString(FirebaseAnalytics.Param.SEARCH_TERM, query)
}
firebaseAnalytics.logEvent(FirebaseAnalytics.Event.SEARCH, bundle)
}
}
28 changes: 26 additions & 2 deletions explode/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.0.0"
lists:
dependency: transitive
description:
name: lists
sha256: "4ca5c19ae4350de036a7e996cdd1ee39c93ac0a2b840f4915459b7d0a7d4ab27"
url: "https://pub.dev"
source: hosted
version: "1.0.1"
logging:
dependency: transitive
description:
name: logging
sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340"
url: "https://pub.dev"
source: hosted
version: "1.2.0"
matcher:
dependency: transitive
description:
Expand Down Expand Up @@ -224,6 +240,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.3.2"
unicode:
dependency: transitive
description:
name: unicode
sha256: "0f69e46593d65245774d4f17125c6084d2c20b4e473a983f6e21b7d7762218f1"
url: "https://pub.dev"
source: hosted
version: "0.3.1"
vector_math:
dependency: transitive
description:
Expand Down Expand Up @@ -252,9 +276,9 @@ packages:
dependency: "direct main"
description:
name: youtube_explode_dart
sha256: "28dca07fefb4b6518beab95f0c1ef81031f921ed0fe87ebcd9c51378546edfee"
sha256: "51ca5b2c03bf56060143d4f87df90ec3227592d7ae8a8003532533ae019d4291"
url: "https://pub.dev"
source: hosted
version: "2.2.3"
version: "2.3.6"
sdks:
dart: ">=3.2.5 <4.0.0"
2 changes: 1 addition & 1 deletion explode/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ environment:
dependencies:
flutter:
sdk: flutter
youtube_explode_dart: ^2.2.3
youtube_explode_dart: ^2.3.6

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 623d54d

Please sign in to comment.