Skip to content

Commit

Permalink
Merge pull request #4 from RevealedSoulEven/Tt
Browse files Browse the repository at this point in the history
Tt
  • Loading branch information
RevealedSoulEven authored Aug 28, 2023
2 parents 59c3c44 + e144c93 commit 727cb9d
Show file tree
Hide file tree
Showing 298 changed files with 8,331 additions and 4,800 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "dobby"]
path = native/jni/external/dobby
url = https://github.com/jmpews/Dobby
87 changes: 45 additions & 42 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,59 +6,64 @@ plugins {
alias(libs.plugins.kotlinAndroid)
}

val appVersionName = "1.2.1"
val appVersionCode = 9

android {
namespace = "me.rhunk.snapenhance"
compileSdk = 33
namespace = rootProject.ext["applicationId"].toString()
compileSdk = 34

buildFeatures {
aidl = true
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = "1.4.8"
}

defaultConfig {
applicationId = "me.rhunk.snapenhance"
applicationId = rootProject.ext["applicationId"].toString()
minSdk = 28
//noinspection OldTargetApi
targetSdk = 33

versionCode = appVersionCode
versionName = appVersionName
targetSdk = 34
multiDexEnabled = true
}


buildTypes {
release {
isMinifyEnabled = true
proguardFiles += file("proguard-rules.pro")
}
debug {
isDebuggable = true
isMinifyEnabled = false
isShrinkResources = false
}
}

flavorDimensions += "abi"

//noinspection ChromeOsAbiSupport
productFlavors {
packaging {
jniLibs {
excludes += "**/*_neon.so"
}
resources {
excludes += "DebugProbesKt.bin"
excludes += "okhttp3/internal/publicsuffix/**"
excludes += "META-INF/*.version"
excludes += "META-INF/services/**"
excludes += "META-INF/*.kotlin_builtins"
excludes += "META-INF/*.kotlin_module"
}
}
create("armv8") {
ndk {
abiFilters.add("arm64-v8a")
}
packaging {
jniLibs {
excludes += "**/*_neon.so"
}
abiFilters += "arm64-v8a"
}
dimension = "abi"
}

create("armv7") {
ndk {
abiFilters.add("armeabi-v7a")
}
packaging {
jniLibs {
excludes += "**/*_neon.so"
}
abiFilters += "armeabi-v7a"
}
dimension = "abi"
}
Expand All @@ -70,7 +75,7 @@ android {

applicationVariants.all {
outputs.map { it as BaseVariantOutputImpl }.forEach { variant ->
variant.outputFileName = "app-${appVersionName}-${variant.name}.apk"
variant.outputFileName = "app-${rootProject.ext["appVersionName"]}-${variant.name}.apk"
}
}

Expand All @@ -85,24 +90,22 @@ android {
}

dependencies {
compileOnly(files("libs/LSPosed-api-1.0-SNAPSHOT.jar"))
implementation(libs.coroutines)
implementation(libs.kotlin.reflect)
implementation(libs.recyclerview)
implementation(project(":core"))
implementation(libs.androidx.material.icons.core)
implementation(libs.androidx.material.ripple)
implementation(libs.androidx.material.icons.extended)
implementation(libs.androidx.material3)
implementation(libs.androidx.activity.ktx)
implementation(libs.androidx.navigation.compose)
implementation(libs.androidx.documentfile)
implementation(libs.gson)
implementation(libs.ffmpeg.kit)
implementation(libs.coil.compose)
implementation(libs.coil.video)
implementation(libs.osmdroid.android)
implementation(libs.okhttp)
implementation(libs.androidx.documentfile)

implementation(project(":mapper"))
}

tasks.register("getVersion") {
doLast {
val versionFile = File("app/build/version.txt")
versionFile.writeText(android.defaultConfig.versionName.toString())
}
debugImplementation("androidx.compose.ui:ui-tooling:1.4.3")
implementation("androidx.compose.ui:ui-tooling-preview:1.4.3")
implementation(kotlin("reflect"))
}

afterEvaluate {
Expand All @@ -120,4 +123,4 @@ afterEvaluate {
}
}
}
}
}
2 changes: 2 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-dontwarn de.robv.android.xposed.**
-keep class me.rhunk.** { *; }
38 changes: 19 additions & 19 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,22 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />

<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
<uses-permission android:name="android.permission.INTERNET" />

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
tools:ignore="ScopedStorage" />
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
tools:ignore="ScopedStorage" />
<queries>
<package android:name="com.snapchat.android" />
</queries>

<application
android:usesCleartextTraffic="true"
android:requestLegacyExternalStorage="true"
android:label="@string/app_name"
tools:targetApi="31"
tools:targetApi="34"
android:enableOnBackInvokedCallback="true"
android:icon="@mipmap/launcher_icon">
<meta-data
android:name="xposedmodule"
Expand All @@ -26,10 +27,10 @@
android:value="Enhanced Snapchat" />
<meta-data
android:name="xposedminversion"
android:value="53" />
android:value="93" />
<meta-data
android:name="xposedscope"
android:resource="@array/sc_scope" />
android:resource="@array/xposed_scope" />

<service
android:name=".bridge.BridgeService"
Expand All @@ -38,32 +39,31 @@
</service>

<activity
android:name=".ui.download.DownloadManagerActivity"
android:name=".ui.manager.MainActivity"
android:theme="@style/AppTheme"
android:launchMode="singleTask"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ui.map.MapActivity"
android:name=".ui.setup.SetupActivity"
android:launchMode="singleTask"
android:exported="true"
android:excludeFromRecents="true" />
<activity
android:name=".ui.config.ConfigActivity"
android:theme="@style/AppTheme"
android:excludeFromRecents="true"
android:exported="true" />
android:excludeFromRecents="true" />
<activity
android:name=".ui.spoof.DeviceSpooferActivity"
android:theme="@style/AppTheme"
android:excludeFromRecents="true"
android:exported="true" />
android:name=".ui.MapActivity"
android:exported="true"
android:excludeFromRecents="true" />
<activity android:name=".bridge.ForceStartActivity"
android:theme="@android:style/Theme.NoDisplay"
android:excludeFromRecents="true"
android:exported="true" />

<receiver android:name=".messaging.StreaksReminder" />
</application>

</manifest>
108 changes: 0 additions & 108 deletions app/src/main/aidl/me/rhunk/snapenhance/bridge/BridgeInterface.aidl

This file was deleted.

Loading

0 comments on commit 727cb9d

Please sign in to comment.