๐Ÿ”— Redirect Bluesky links to your preferred client
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

More resource commonization

+47 -70
+1 -1
gradle/libs.versions.toml
··· 12 12 linkSheet = "2.2.0" 13 13 material-components = "1.11.0-alpha02" 14 14 mvvmFlowCompose = "0.16.1" 15 - patreonSupportersRetrieval = "8436bbdbdc" 15 + patreonSupportersRetrieval = "d2e9143db2" 16 16 preferences = "1.2.1" 17 17 hiddenApiBypass = "4.3" 18 18 ktor = "2.3.3"
+4 -20
lemmyredirect/src/main/AndroidManifest.xml
··· 1 1 <?xml version="1.0" encoding="utf-8"?> 2 - <manifest xmlns:android="http://schemas.android.com/apk/res/android" 3 - xmlns:tools="http://schemas.android.com/tools"> 4 - <application 5 - android:name=".LemmyRedirectApp" 6 - android:icon="@mipmap/ic_launcher" 7 - android:roundIcon="@mipmap/ic_launcher_round" 8 - android:label="@string/app_name" 9 - tools:targetApi="31"> 10 - <activity 11 - android:name=".util.FetchInstancesActivity" 12 - android:exported="true"> 13 - <intent-filter> 14 - <action android:name="android.intent.action.MAIN" /> 15 - </intent-filter> 16 - </activity> 17 - 2 + <manifest xmlns:tools="http://schemas.android.com/tools" 3 + xmlns:android="http://schemas.android.com/apk/res/android"> 4 + <application tools:ignore="MissingApplicationIcon"> 18 5 <activity 19 6 android:name="dev.zwander.shared.RedirectActivity" 20 - android:excludeFromRecents="true" 21 - android:exported="true" 22 - android:launchMode="singleInstance" 23 - android:theme="@style/AppTheme.Transparent"> 7 + android:exported="true"> 24 8 <intent-filter android:label="@string/http_filter"> 25 9 <action android:name="android.intent.action.VIEW" /> 26 10
+1 -1
lemmyredirect/src/main/java/dev/zwander/lemmyredirect/LemmyRedirectApp.kt lemmyredirect/src/main/java/dev/zwander/lemmyredirect/MainApp.kt
··· 5 5 import dev.zwander.lemmyredirect.util.LaunchStrategyUtils 6 6 import dev.zwander.shared.App 7 7 8 - class LemmyRedirectApp : App( 8 + class MainApp : App( 9 9 launchStrategyUtils = LaunchStrategyUtils, 10 10 fetchActivity = FetchInstancesActivity::class.java, 11 11 defaultLaunchStrategy = Jerboa.JerboaStable,
+4 -20
mastodonredirect/src/main/AndroidManifest.xml
··· 1 1 <?xml version="1.0" encoding="utf-8"?> 2 - <manifest xmlns:android="http://schemas.android.com/apk/res/android" 3 - xmlns:tools="http://schemas.android.com/tools"> 4 - <application 5 - android:name=".MastodonRedirectApp" 6 - android:icon="@mipmap/ic_launcher" 7 - android:roundIcon="@mipmap/ic_launcher_round" 8 - android:label="@string/app_name" 9 - tools:targetApi="31"> 10 - <activity 11 - android:name=".util.FetchInstancesActivity" 12 - android:exported="true"> 13 - <intent-filter> 14 - <action android:name="android.intent.action.MAIN" /> 15 - </intent-filter> 16 - </activity> 17 - 2 + <manifest xmlns:tools="http://schemas.android.com/tools" 3 + xmlns:android="http://schemas.android.com/apk/res/android"> 4 + <application tools:ignore="MissingApplicationIcon"> 18 5 <activity 19 6 android:name="dev.zwander.shared.RedirectActivity" 20 - android:excludeFromRecents="true" 21 - android:exported="true" 22 - android:launchMode="singleInstance" 23 - android:theme="@style/AppTheme.Transparent"> 7 + android:exported="true"> 24 8 <intent-filter android:label="@string/http_filter"> 25 9 <action android:name="android.intent.action.VIEW" /> 26 10
+1 -1
mastodonredirect/src/main/java/dev/zwander/mastodonredirect/MastodonRedirectApp.kt mastodonredirect/src/main/java/dev/zwander/mastodonredirect/MainApp.kt
··· 5 5 import dev.zwander.mastodonredirect.util.Megalodon 6 6 import dev.zwander.shared.App 7 7 8 - class MastodonRedirectApp : App( 8 + class MainApp : App( 9 9 launchStrategyUtils = LaunchStrategyUtils, 10 10 fetchActivity = FetchInstancesActivity::class.java, 11 11 defaultLaunchStrategy = Megalodon.MegalodonStable,
+36 -27
shared/src/main/AndroidManifest.xml
··· 4 4 5 5 <queries> 6 6 <package android:name="moe.shizuku.privileged.api" /> 7 - <package android:name="fe.linksheet" /> 8 - <package android:name="fe.linksheet.debug" /> 9 - <package android:name="fe.linksheet.nightly" /> 10 7 11 8 <intent> 12 9 <action android:name="${applicationId}.intent.action.OPEN_FEDI_LINK" /> 13 10 </intent> 14 11 </queries> 15 12 13 + <!-- Manifest will show some resolve errors but the app should still compile, 14 + as long as the target variant has the component/resource. --> 16 15 <application 17 16 android:supportsRtl="true" 18 17 android:allowBackup="true" 19 - android:theme="@style/Theme.Redirector"> 20 - <provider 21 - android:name="rikka.shizuku.ShizukuProvider" 22 - android:authorities="${applicationId}.shizuku" 23 - android:enabled="true" 24 - android:exported="true" 25 - android:multiprocess="false" 26 - android:permission="android.permission.INTERACT_ACROSS_USERS_FULL" /> 27 - 18 + android:theme="@style/Theme.Redirector" 19 + android:name="${applicationId}.MainApp" 20 + android:label="@string/app_name" 21 + android:icon="@mipmap/ic_launcher" 22 + android:roundIcon="@mipmap/ic_launcher_round"> 28 23 <activity android:name=".BaseActivity" 29 24 android:exported="true" /> 30 25 31 - <activity-alias 32 - android:name="${applicationId}.MainActivity" 33 - android:targetActivity=".BaseActivity" 34 - android:exported="true"> 35 - <intent-filter> 36 - <action android:name="android.intent.action.MAIN" /> 37 - 38 - <category android:name="android.intent.category.LAUNCHER" /> 39 - </intent-filter> 40 - </activity-alias> 41 - 42 - <activity-alias 43 - android:name=".RedirectActivityBase" 44 - android:targetActivity=".RedirectActivity" 26 + <activity android:name=".RedirectActivity" 27 + android:exported="true" 45 28 android:excludeFromRecents="true" 46 - android:exported="true" 47 29 android:launchMode="singleInstance" 48 30 android:theme="@style/AppTheme.Transparent"> 49 31 <intent-filter android:label="@string/open_link"> ··· 64 46 <data android:scheme="web+activity+http" /> 65 47 <data android:scheme="web+activity+https" /> 66 48 </intent-filter> 49 + </activity> 50 + 51 + <activity 52 + android:name="${applicationId}.util.FetchInstancesActivity" 53 + android:exported="true"> 54 + <intent-filter> 55 + <action android:name="android.intent.action.MAIN" /> 56 + </intent-filter> 57 + </activity> 58 + 59 + <activity-alias 60 + android:name="${applicationId}.MainActivity" 61 + android:targetActivity=".BaseActivity" 62 + android:exported="true"> 63 + <intent-filter> 64 + <action android:name="android.intent.action.MAIN" /> 65 + 66 + <category android:name="android.intent.category.LAUNCHER" /> 67 + </intent-filter> 67 68 </activity-alias> 69 + 70 + <provider 71 + android:name="rikka.shizuku.ShizukuProvider" 72 + android:authorities="${applicationId}.shizuku" 73 + android:enabled="true" 74 + android:exported="true" 75 + android:multiprocess="false" 76 + android:permission="android.permission.INTERACT_ACROSS_USERS_FULL" /> 68 77 69 78 <meta-data 70 79 android:name="com.bugsnag.android.API_KEY"