-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Release] Feature Notification- sub feature "Select Interest" "Receiv…
…e Notification" "View Notification in App" "Open Link" #38 * release-note - [feature-notification] sub feature complete "Select Interest" "Receive Notification" "View Notification in App" "Open Link on Tap" * release note - fixed app crash on subscribe in release build * release-note - version - 1.3.1
- Loading branch information
Showing
106 changed files
with
2,138 additions
and
487 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
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
app/src/androidTest/assets/features/delete_notifications.feature
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,4 @@ | ||
Feature: Delete Notifications | ||
User deletes all locally stored notifications | ||
|
||
|
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
app/src/androidTest/assets/features/view_notifications.feature
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,2 @@ | ||
Feature: View Notifications | ||
User cal view all locally stored notifications |
File renamed without changes.
File renamed without changes.
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,5 @@ | ||
|
||
� | ||
$216b9ffe-1bf7-4ec5-89a5-1c6283ec37d9o*m{"body":"test","date":"test","image":"test","interest":"test1","link":"test","subText":"test","title":"test"} | ||
� | ||
$cd2467e0-28eb-46dc-b5ad-74b08638b21do*m{"body":"test","date":"test","image":"test","interest":"test2","link":"test","subText":"test","title":"test"} |
34 changes: 34 additions & 0 deletions
34
...src/androidTest/java/com/github/syedahmedjamil/pushernotif/test/ActivityScenarioHolder.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,34 @@ | ||
package com.github.syedahmedjamil.pushernotif.test | ||
|
||
import android.content.Intent | ||
import androidx.datastore.core.DataStore | ||
import androidx.datastore.preferences.core.Preferences | ||
import androidx.test.core.app.ActivityScenario | ||
import com.github.syedahmedjamil.pushernotif.ui.MainActivity | ||
import io.cucumber.java.After | ||
import javax.inject.Inject | ||
|
||
class ActivityScenarioHolder { | ||
|
||
private lateinit var scenario: ActivityScenario<MainActivity> | ||
|
||
|
||
@Inject | ||
lateinit var dataStore: DataStore<Preferences> | ||
|
||
fun launch(intent: Intent) { | ||
scenario = ActivityScenario.launch<MainActivity>(intent) | ||
} | ||
|
||
fun getScenario(): ActivityScenario<MainActivity> { | ||
return scenario | ||
} | ||
/** | ||
* Close activity after scenario | ||
*/ | ||
@After | ||
fun close() { | ||
scenario.close() | ||
|
||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
app/src/androidTest/java/com/github/syedahmedjamil/pushernotif/test/CustomRunner.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,17 @@ | ||
package com.github.syedahmedjamil.pushernotif.test | ||
|
||
import android.app.Application | ||
import android.content.Context | ||
import com.github.syedahmedjamil.pushernotif.BaseApplication | ||
import dagger.hilt.android.testing.CustomTestApplication | ||
import io.cucumber.android.runner.CucumberAndroidJUnitRunner | ||
|
||
@CustomTestApplication(BaseApplication::class) | ||
interface CustomHiltTestApplication | ||
|
||
class CustomRunner : CucumberAndroidJUnitRunner() { | ||
|
||
override fun newApplication(cl: ClassLoader?, name: String?, context: Context?): Application { | ||
return super.newApplication(cl, CustomHiltTestApplication_Application::class.java.name, context) | ||
} | ||
} |
Oops, something went wrong.