Skip to content

Commit 4533d00

Browse files
authored
Merge pull request #182 from elimu-ai/content-provider-1.4.36
chore(deps): content-provider 1.4.36
2 parents b13dba2 + b216b6c commit 4533d00

File tree

3 files changed

+19
-13
lines changed

3 files changed

+19
-13
lines changed

app/src/main/java/ai/elimu/kukariri/assessment/WordAssessmentActivity.kt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,20 @@ class WordAssessmentActivity : AppCompatActivity() {
5757

5858
// Get a list of the Words that have been previously learned
5959
val wordLearningEventGsons = EventProviderUtil.getWordLearningEventGsons(
60-
applicationContext, BuildConfig.ANALYTICS_APPLICATION_ID
60+
context = applicationContext,
61+
analyticsApplicationId = BuildConfig.ANALYTICS_APPLICATION_ID
6162
)
6263

6364
// Get a set of the Words that have been previously learned
6465
val idsOfWordsInWordLearningEvents = EventProviderUtil.getIdsOfWordsInWordLearningEvents(
65-
applicationContext, BuildConfig.ANALYTICS_APPLICATION_ID
66+
context = applicationContext,
67+
analyticsApplicationId = BuildConfig.ANALYTICS_APPLICATION_ID
6668
)
6769

6870
// Get a list of assessment events for the words that have been previously learned
6971
val wordAssessmentEventGsons = EventProviderUtil.getWordAssessmentEventGsons(
70-
applicationContext, BuildConfig.ANALYTICS_APPLICATION_ID
72+
context = applicationContext,
73+
analyticsApplicationId = BuildConfig.ANALYTICS_APPLICATION_ID
7174
)
7275

7376
// Determine which of the previously learned Words are pending a review (based on WordAssessmentEvents)
@@ -80,7 +83,8 @@ class WordAssessmentActivity : AppCompatActivity() {
8083

8184
// Fetch list of Words from the ContentProvider, and exclude those not in the idsOfWordsPendingReview set
8285
val allWordGsons = getAllWordGsons(
83-
applicationContext, BuildConfig.CONTENT_PROVIDER_APPLICATION_ID
86+
context = applicationContext,
87+
contentProviderApplicationId = BuildConfig.CONTENT_PROVIDER_APPLICATION_ID
8488
)
8589
for (wordGson in allWordGsons) {
8690
if (idsOfWordsPendingReview.contains(wordGson.id)) {

app/src/main/java/ai/elimu/kukariri/receiver/ScreenOnReceiver.kt

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,20 @@ class ScreenOnReceiver : BroadcastReceiver() {
3737

3838
// Get a list of the Words that have been previously learned
3939
val wordLearningEventGsons = EventProviderUtil.getWordLearningEventGsons(
40-
context,
41-
BuildConfig.ANALYTICS_APPLICATION_ID
40+
context = context,
41+
analyticsApplicationId = BuildConfig.ANALYTICS_APPLICATION_ID
4242
)
4343

4444
// Get a set of the Words that have been previously learned
4545
val idsOfWordsInWordLearningEvents = EventProviderUtil.getIdsOfWordsInWordLearningEvents(
46-
context,
47-
BuildConfig.ANALYTICS_APPLICATION_ID
46+
context = context,
47+
analyticsApplicationId = BuildConfig.ANALYTICS_APPLICATION_ID
4848
)
4949

5050
// Get a list of assessment events for the words that have been previously learned
5151
val wordAssessmentEventGsons = EventProviderUtil.getWordAssessmentEventGsons(
52-
context,
53-
BuildConfig.ANALYTICS_APPLICATION_ID
52+
context = context,
53+
analyticsApplicationId = BuildConfig.ANALYTICS_APPLICATION_ID
5454
)
5555

5656
// Determine which of the previously learned Words are pending a review (based on WordAssessmentEvents)
@@ -66,8 +66,10 @@ class ScreenOnReceiver : BroadcastReceiver() {
6666

6767
// Get list of adjectives/nouns/verbs pending review
6868
val wordGsonsPendingReview: MutableList<WordGson?> = ArrayList()
69-
val allWordGsons: List<WordGson> =
70-
getAllWordGsons(context, BuildConfig.CONTENT_PROVIDER_APPLICATION_ID)
69+
val allWordGsons: List<WordGson> = getAllWordGsons(
70+
context = context,
71+
contentProviderApplicationId = BuildConfig.CONTENT_PROVIDER_APPLICATION_ID
72+
)
7173
for (wordGson in allWordGsons) {
7274
if (idsOfWordsPendingReview.contains(wordGson.id)) {
7375
// Only include adjectives/nouns/verbs

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[versions]
2-
elimuContentProvider = "1.4.32"
2+
elimuContentProvider = "1.4.36"
33
gradle = "8.8.2"
44
jacocoAndroid = "0.2.1"
55
junit = "4.13.2"

0 commit comments

Comments
 (0)