Skip to content

Commit

Permalink
Remove OssLicensesCompatActivity
Browse files Browse the repository at this point in the history
  • Loading branch information
EdricChan03 committed Dec 13, 2024
1 parent d4c86ab commit 9423f2e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 72 deletions.
11 changes: 0 additions & 11 deletions app/src/main/java/com/edricchan/studybuddy/utils/Intents.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package com.edricchan.studybuddy.utils

import android.content.Context
import android.provider.Settings
import androidx.core.net.toUri
import com.edricchan.studybuddy.BuildConfig
import com.edricchan.studybuddy.exts.android.buildIntent
import com.edricchan.studybuddy.ui.common.licenses.OssLicensesCompatActivity

/** Creates an [android.content.Intent] that opens the given [packageName]'s app details. */
fun appDetailsIntent(packageName: String = BuildConfig.APPLICATION_ID) = buildIntent {
Expand All @@ -18,12 +16,3 @@ fun appDetailsIntent(packageName: String = BuildConfig.APPLICATION_ID) = buildIn
* @receiver The package name to use.
*/
val String.appDetailsIntent get() = appDetailsIntent(this)

/**
* Creates an [android.content.Intent] that opens the
* [licenses activity][OssLicensesCompatActivity].
*/
@Suppress("DeprecatedCallableAddReplaceWith")
@Deprecated("Use the LibrariesContainer composable if possible")
val Context.licenseIntent
get() = buildIntent<OssLicensesCompatActivity>(this)
9 changes: 1 addition & 8 deletions ui/common/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application>
<activity
android:name=".licenses.OssLicensesCompatActivity"
android:label="@string/activity_license_title" />
</application>
</manifest>
<manifest />

This file was deleted.

0 comments on commit 9423f2e

Please sign in to comment.