Skip to content

Commit

Permalink
[build]: moved files in app module to kotlin directory
Browse files Browse the repository at this point in the history
  • Loading branch information
F0x1d committed May 1, 2024
1 parent a1d34d9 commit d3602a3
Show file tree
Hide file tree
Showing 121 changed files with 16 additions and 51 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
package com.f0x1d.logfox.extensions

import android.os.Build.VERSION.*
import android.os.Build.VERSION_CODES.*
import android.os.Build.VERSION.SDK_INT
import android.os.Build.VERSION_CODES.O
import android.os.Build.VERSION_CODES.Q
import android.os.Build.VERSION_CODES.R
import android.os.Build.VERSION_CODES.S
import android.os.Build.VERSION_CODES.TIRAMISU
import androidx.annotation.ChecksSdkIntAtLeast

@get:ChecksSdkIntAtLeast(api = TIRAMISU) val isAtLeastAndroid13 = SDK_INT >= TIRAMISU
Expand All @@ -17,4 +21,4 @@ import androidx.annotation.ChecksSdkIntAtLeast
@get:ChecksSdkIntAtLeast(api = R) val canPickJSON = SDK_INT >= R

@get:ChecksSdkIntAtLeast(api = S) val uiModeManagerAvailable = SDK_INT >= S
@get:ChecksSdkIntAtLeast(api = S) val mutablePendingIntentAvailable = uiModeManagerAvailable
@get:ChecksSdkIntAtLeast(api = S) val mutablePendingIntentAvailable = uiModeManagerAvailable
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ import androidx.navigation.NavDeepLinkBuilder
import com.f0x1d.logfox.LogFoxApp
import com.f0x1d.logfox.R
import com.f0x1d.logfox.database.entity.AppCrash
import com.f0x1d.logfox.extensions.*
import com.f0x1d.logfox.extensions.COPY_CRASH_INTENT_ID
import com.f0x1d.logfox.extensions.context.doIfNotificationsAllowed
import com.f0x1d.logfox.extensions.context.notificationManager
import com.f0x1d.logfox.extensions.context.notificationManagerCompat
import com.f0x1d.logfox.extensions.makeBroadcastPendingIntent
import com.f0x1d.logfox.receiver.CopyReceiver

@SuppressLint("MissingPermission")
Expand Down Expand Up @@ -58,4 +59,4 @@ fun Context.cancelAllCrashNotifications() = notificationManager.apply {
activeNotifications.forEach {
if (it.tag != null && it.tag.contains(".")) cancel(it.tag, it.id)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ import android.content.Context
import androidx.core.app.NotificationCompat
import com.f0x1d.logfox.LogFoxApp
import com.f0x1d.logfox.R
import com.f0x1d.logfox.extensions.*
import com.f0x1d.logfox.extensions.PAUSE_RECORDING_INTENT_ID
import com.f0x1d.logfox.extensions.RESUME_RECORDING_INTENT_ID
import com.f0x1d.logfox.extensions.STOP_RECORDING_INTENT_ID
import com.f0x1d.logfox.extensions.context.doIfNotificationsAllowed
import com.f0x1d.logfox.extensions.context.notificationManagerCompat
import com.f0x1d.logfox.extensions.makeBroadcastPendingIntent
import com.f0x1d.logfox.receiver.RecordingReceiver

private const val RECORDING_NOTIFICATIONS_TAG = "recording"
Expand Down Expand Up @@ -78,4 +81,4 @@ fun Context.sendRecordingPausedNotification() = doIfNotificationsAllowed {
fun Context.cancelRecordingNotification() = notificationManagerCompat.cancel(
RECORDING_NOTIFICATIONS_TAG,
RECORDING_NOTIFICATIONS_ID
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.WindowCompat
import androidx.viewbinding.ViewBinding
import com.f0x1d.logfox.extensions.applyNavigationBarTheme
import com.f0x1d.logfox.extensions.context.resolveBoolean
import com.google.android.material.bottomsheet.BottomSheetBehavior
import com.google.android.material.bottomsheet.BottomSheetDialog
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
Expand Down Expand Up @@ -49,4 +47,4 @@ abstract class BaseBottomSheet<T : ViewBinding>: BottomSheetDialogFragment() {
super.onDestroyView()
mutableBinding = null
}
}
}
17 changes: 0 additions & 17 deletions app/src/test/java/com/f0x1d/logfox/ExampleUnitTest.kt

This file was deleted.

0 comments on commit d3602a3

Please sign in to comment.