Skip to content

Commit

Permalink
Refactored code style
Browse files Browse the repository at this point in the history
Took 11 minutes
  • Loading branch information
JulesPvx committed May 28, 2024
1 parent d97065c commit aab302b
Show file tree
Hide file tree
Showing 47 changed files with 108,546 additions and 108,500 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ android {
isMinifyEnabled = true
isShrinkResources = true

/*proguardFiles(
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)*/
)

ndk {
debugSymbolLevel = "FULL"
Expand Down
56 changes: 28 additions & 28 deletions app/google-services.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
{
"project_info": {
"project_number": "971847955728",
"project_id": "soundtap-android",
"storage_bucket": "soundtap-android.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:971847955728:android:79a90c95099fdfb65ca195",
"android_client_info": {
"package_name": "fr.angel.soundtap"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyBVDiAsQB2J83hr_wg3VkHKW693G-eyZaw"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
}
"project_info": {
"project_number": "971847955728",
"project_id": "soundtap-android",
"storage_bucket": "soundtap-android.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:971847955728:android:79a90c95099fdfb65ca195",
"android_client_info": {
"package_name": "fr.angel.soundtap"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyBVDiAsQB2J83hr_wg3VkHKW693G-eyZaw"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
}
3 changes: 2 additions & 1 deletion app/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.4.1" type="baseline" client="gradle" dependencies="true" name="AGP (8.4.1)" variant="all" version="8.4.1">
<issues name="AGP (8.4.1)" by="lint 8.4.1" client="gradle" dependencies="true" format="6"
type="baseline" variant="all" version="8.4.1">

</issues>
152 changes: 76 additions & 76 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,89 +1,89 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<queries>
<package android:name="com.spotify.music" />
<intent>
<category android:name="android.intent.category.APP_MUSIC" />
<action android:name="android.intent.action.MAIN" />
</intent>
</queries>
<queries>
<package android:name="com.spotify.music" />
<intent>
<category android:name="android.intent.category.APP_MUSIC" />
<action android:name="android.intent.action.MAIN" />
</intent>
</queries>

<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<uses-permission android:name="com.google.android.gms.permission.AD_ID" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<uses-permission android:name="com.google.android.gms.permission.AD_ID" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />

<!-- android:enableOnBackInvokedCallback="true" -> Removed due to instability -->
<!-- android:enableOnBackInvokedCallback="true" -> Removed due to instability -->

<application
android:name=".SoundTapApplication"
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:largeHeap="true"
android:theme="@style/Theme.SoundTap">
<activity
android:name=".MainActivity"
android:exported="true"
android:theme="@style/Theme.SoundTap">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<application
android:name=".SoundTapApplication"
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.SoundTap">
<activity
android:name=".MainActivity"
android:exported="true"
android:theme="@style/Theme.SoundTap">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<service
android:name=".service.SoundTapAccessibilityService"
android:exported="true"
android:label="@string/accessibility_service_label"
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
<intent-filter>
<action android:name="android.accessibilityservice.AccessibilityService" />
</intent-filter>
<meta-data
android:name="android.accessibilityservice"
android:resource="@xml/accessibility_service_config" />
</service>
<service
android:name=".service.SoundTapAccessibilityService"
android:exported="true"
android:label="@string/accessibility_service_label"
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
<intent-filter>
<action android:name="android.accessibilityservice.AccessibilityService" />
</intent-filter>
<meta-data
android:name="android.accessibilityservice"
android:resource="@xml/accessibility_service_config" />
</service>

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

<service
android:name=".tiles.ServiceTile"
android:exported="true"
android:icon="@drawable/round_power_settings_new_24"
android:label="@string/app_name"
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
<service
android:name=".tiles.ServiceTile"
android:exported="true"
android:icon="@drawable/round_power_settings_new_24"
android:label="@string/app_name"
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">

<meta-data
android:name="android.service.quicksettings.TOGGLEABLE_TILE"
android:value="true" />
<meta-data
android:name="android.service.quicksettings.TOGGLEABLE_TILE"
android:value="true" />

<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE" />
</intent-filter>
</service>
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE" />
</intent-filter>
</service>

<receiver
android:name=".service.HeadsetConnectionBroadcastReceiver"
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="android.bluetooth.headset.profile.action.CONNECTION_STATE_CHANGED" />
</intent-filter>
</receiver>
</application>
</manifest>
<receiver
android:name=".service.HeadsetConnectionBroadcastReceiver"
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="android.bluetooth.headset.profile.action.CONNECTION_STATE_CHANGED" />
</intent-filter>
</receiver>
</application>
</manifest>
14 changes: 7 additions & 7 deletions app/src/main/java/fr/angel/soundtap/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ class MainActivity : ComponentActivity() {
SoundTapTheme {
Scaffold(
modifier =
Modifier
.fillMaxSize()
.nestedScroll(scrollBehavior.nestedScrollConnection),
Modifier
.fillMaxSize()
.nestedScroll(scrollBehavior.nestedScrollConnection),
topBar = {
CenterAlignedTopAppBar(
navigationIcon = {
Expand All @@ -125,10 +125,10 @@ class MainActivity : ComponentActivity() {
title = {
Text(
modifier =
Modifier.padding(
horizontal = 16.dp,
vertical = 8.dp,
),
Modifier.padding(
horizontal = 16.dp,
vertical = 8.dp,
),
text = "SoundTap",
style = MaterialTheme.typography.displayMedium,
fontFamily = FontPilowlava,
Expand Down
Loading

0 comments on commit aab302b

Please sign in to comment.