Skip to content

Commit

Permalink
v4.0.0
Browse files Browse the repository at this point in the history
Removed support nonroot using
  • Loading branch information
n00byara committed May 13, 2024
1 parent 14fa9f1 commit 35145c3
Show file tree
Hide file tree
Showing 22 changed files with 26 additions and 900 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ android {
minSdk = 30
targetSdk = 34
versionCode = 1
versionName = "3.0.7"
versionName = "4.0.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down
34 changes: 1 addition & 33 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<uses-permission
android:name="android.permission.QUERY_ALL_PACKAGES"
tools:ignore="QueryAllPackagesPermission" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />

<application
android:name="com.highcapable.yukihookapi.hook.xposed.application.ModuleApplication"
Expand All @@ -18,35 +15,6 @@
android:theme="@style/Theme.NotificationCode"
tools:targetApi="31" >

<receiver
android:name=".service.BootReceiver"
android:enabled="true"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action._BOOT_COMPLETED" />
</intent-filter>
</receiver>

<service
android:name=".service.NotificationService"
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"
android:exported="true">
<intent-filter>
<action android:name="android.service.notification.NotificationListenerService" />
</intent-filter>
</service>

<activity
android:name=".permission.PermissionRequestActivity"
android:exported="false"
android:screenOrientation="portrait"
android:theme="@style/Theme.NotificationCode" />
<activity
android:name=".ui.activities.GlobalSettingsActivity"
android:exported="false"
android:label="@string/title_activity_global_settings"
android:screenOrientation="portrait"
android:theme="@style/Theme.NotificationCode" />
<activity
android:name=".ui.activities.SettingsActivity"
android:exported="true"
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/java/ru/n00byara/notificationcode/Constants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ object Constants {
const val SWITCH_CODE = "switch_code"
const val SWITCH_PHONE = "switch_phone"
const val SWITHC_TRACK_NUMBER = "switch_track_number"
const val USE_CASE = "use_case"
const val EXTRA_TEXT = "android.text"
const val EXTRA_TITLE = "android.title"
const val SHAZAM_APP_NAME = "Shazam"
const val SHAZAM_CHANNEL_ID = "notification_shazam_match_v1"
const val SHAZAM_PACKAGE = "com.shazam.android"
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,4 @@ class ApplicationsList(private val context: Context) {

return result
}

fun getAllApplications(): List<InstalledAppInfo> {
val result = mutableListOf<InstalledAppInfo>()

this.allInstalledApplications.forEach { applicationInfo ->
val appInfo = InstalledAppInfo(this.pm, applicationInfo)

if (!appInfo.isSystem) {
result.add(appInfo)
}
}

return result
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ object RegExps {
val regExpForCompositeCode = ".*?\n?.*?(.*(\\d{3})[-\\s](\\d{3}).*).*?\n?.*?"

val regExsForPhone = listOf(
".*?\n?.*?(\\+\\d?.\\(\\d{3}\\)?.\\d{3}[\\s|\\-]\\d{2}[\\s|\\-]\\d{2}).*?\n?.*?",
".*?\n?.*?(\\+?\\d?.\\(\\d{3}\\)?.\\d{3}[\\s|\\-]\\d{2}[\\s|\\-]\\d{2}).*?\n?.*?",
".*?\n?.*?(\\d{2}-\\d{2}-\\d{2}).*?\n?.*?"
)

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package ru.n00byara.notificationcode.ui.activities

import android.content.Intent
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
Expand All @@ -10,7 +9,6 @@ import androidx.compose.material3.Scaffold
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import androidx.lifecycle.Observer
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
Expand Down Expand Up @@ -38,17 +36,6 @@ class SettingsActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

lifecycle.addObserver(settingsScreenViewModel)

settingsActivityViewModel.shouldFinishLiveData.observe(
this,
Observer {
val intent = Intent(this, GlobalSettingsActivity::class.java)
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
this.startActivity(intent)
}
)

setContent {
NotificationCodeTheme {
val topBarModel by settingsActivityViewModel.topBarUiState.collectAsState()
Expand Down

This file was deleted.

Loading

0 comments on commit 35145c3

Please sign in to comment.