-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed - If camera permission is denied, clicking Scan QR button shows…
… couldn't connect Migrated to `ActivityResultContracts` instead of using deprecated `startActivityForResult()`` Migrated lib dependencies to Version Catalogs Migrated build configuration from Groovy to Kotlin
- Loading branch information
Showing
17 changed files
with
436 additions
and
328 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
plugins { | ||
alias(libs.plugins.android.application) | ||
alias(libs.plugins.kotlin.android) | ||
id("kotlin-parcelize") | ||
} | ||
|
||
android { | ||
namespace = "tech.httptoolkit.android" | ||
compileSdk = 35 | ||
|
||
defaultConfig { | ||
applicationId = "tech.httptoolkit.android.v1" | ||
minSdk = 21 | ||
targetSdk = 34 | ||
versionCode = 34 | ||
versionName = "1.5.0" | ||
|
||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
|
||
manifestPlaceholders["sentryEnabled"] = "false" | ||
manifestPlaceholders["sentryDsn"] = "null" | ||
} | ||
|
||
buildTypes { | ||
release { | ||
isMinifyEnabled = false | ||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") | ||
|
||
manifestPlaceholders["sentryEnabled"] = "true" | ||
manifestPlaceholders["sentryDsn"] = "https://6943ce7476d54485a5998ad45289a9bc@sentry.io/1809979" | ||
} | ||
} | ||
|
||
|
||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_11 | ||
targetCompatibility = JavaVersion.VERSION_11 | ||
} | ||
|
||
kotlinOptions { | ||
jvmTarget = "11" | ||
} | ||
|
||
buildFeatures { | ||
viewBinding = true | ||
buildConfig = true | ||
} | ||
lint { | ||
lintConfig = file("./lint.xml") | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar")))) | ||
implementation(libs.kotlin.stdlib.jdk7) | ||
implementation(libs.kotlin.reflect) | ||
implementation(libs.kotlinx.coroutines.core) | ||
implementation(libs.kotlinx.coroutines.android) | ||
implementation(libs.appcompat) | ||
implementation(libs.core.ktx) | ||
implementation(libs.constraintlayout) | ||
implementation(libs.localbroadcastmanager) | ||
implementation(libs.zxing.android.embedded) { isTransitive = false } | ||
implementation(libs.core) | ||
implementation(libs.klaxon) | ||
implementation(libs.okhttp) | ||
implementation(libs.material) | ||
implementation(libs.semver) | ||
implementation(libs.sentry.android) | ||
implementation(libs.slf4j.nop) | ||
implementation(libs.play.services.base) | ||
implementation(libs.installreferrer) | ||
implementation(libs.swiperefreshlayout) | ||
testImplementation(libs.junit) | ||
androidTestImplementation(libs.runner) | ||
androidTestImplementation(libs.espresso.core) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package tech.httptoolkit.android | ||
|
||
object IntentExtras { | ||
const val SCANNED_URL_EXTRA = "tech.httptoolkit.android.SCANNED_URL" | ||
const val SELECTED_PORTS_EXTRA = "tech.httptoolkit.android.SELECTED_PORTS_EXTRA" | ||
const val UNSELECTED_APPS_EXTRA = "tech.httptoolkit.android.UNSELECTED_APPS_EXTRA" | ||
const val PROXY_CONFIG_EXTRA = "tech.httptoolkit.android.PROXY_CONFIG" | ||
const val UNINTERCEPTED_APPS_EXTRA = "tech.httptoolkit.android.UNINTERCEPTED_APPS" | ||
const val INTERCEPTED_PORTS_EXTRA = "tech.httptoolkit.android.INTERCEPTED_PORTS" | ||
} |
Oops, something went wrong.