2021-10-01 20:19:42 +00:00
|
|
|
plugins {
|
2022-09-14 00:14:52 +00:00
|
|
|
id "io.sentry.android.gradle" version "3.1.5"
|
2021-10-01 20:19:42 +00:00
|
|
|
id 'com.android.application'
|
|
|
|
id 'com.mikepenz.aboutlibraries.plugin'
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2022-09-14 00:14:52 +00:00
|
|
|
namespace "com.fox2code.mmm"
|
2022-07-15 15:22:37 +00:00
|
|
|
compileSdk 33
|
2021-10-01 20:19:42 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "com.fox2code.mmm"
|
|
|
|
minSdk 21
|
2022-07-15 15:22:37 +00:00
|
|
|
targetSdk 33
|
2022-09-14 00:14:52 +00:00
|
|
|
versionCode 57
|
2022-09-14 17:34:01 +00:00
|
|
|
versionName "0.6.7"
|
2021-10-01 20:19:42 +00:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled true
|
|
|
|
shrinkResources true
|
2022-09-14 00:14:52 +00:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
2021-10-01 20:19:42 +00:00
|
|
|
}
|
|
|
|
debug {
|
|
|
|
applicationIdSuffix '.debug'
|
|
|
|
debuggable true
|
2022-09-14 00:14:52 +00:00
|
|
|
// ONLY FOR TESTING SENTRY
|
|
|
|
// minifyEnabled true
|
|
|
|
// shrinkResources true
|
|
|
|
// proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
2021-10-01 20:19:42 +00:00
|
|
|
}
|
|
|
|
}
|
2022-03-30 17:09:00 +00:00
|
|
|
|
|
|
|
flavorDimensions "type"
|
|
|
|
productFlavors {
|
|
|
|
"default" {
|
|
|
|
dimension "type"
|
|
|
|
buildConfigField "boolean", "ENABLE_AUTO_UPDATER", "true"
|
2022-08-29 15:32:28 +00:00
|
|
|
buildConfigField "boolean", "DEFAULT_ENABLE_CRASH_REPORTING", "true"
|
2022-09-14 00:14:52 +00:00
|
|
|
buildConfigField("java.util.List<String>",
|
|
|
|
"ENABLED_REPOS",
|
|
|
|
"java.util.Arrays.asList(\"magisk_alt_repo\", \"androidacy_repo\")",)
|
2022-03-30 17:09:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fdroid {
|
|
|
|
dimension "type"
|
|
|
|
applicationIdSuffix ".fdroid"
|
|
|
|
|
|
|
|
// Need to disable auto-updater for F-Droid flavor because their inclusion policy
|
|
|
|
// forbids downloading blobs from third-party websites (and F-Droid APK isn't signed
|
|
|
|
// with our keys, so the APK wouldn't install anyways).
|
|
|
|
buildConfigField "boolean", "ENABLE_AUTO_UPDATER", "false"
|
2022-04-02 10:43:30 +00:00
|
|
|
|
2022-08-29 15:32:28 +00:00
|
|
|
// Disable crash reporting for F-Droid flavor by default
|
|
|
|
buildConfigField "boolean", "DEFAULT_ENABLE_CRASH_REPORTING", "false"
|
|
|
|
|
2022-04-02 10:43:30 +00:00
|
|
|
// Repo with ads or tracking feature are disabled by default for the
|
|
|
|
// F-Droid flavor.
|
2022-09-14 00:14:52 +00:00
|
|
|
buildConfigField("java.util.List<String>",
|
|
|
|
"ENABLED_REPOS",
|
|
|
|
"java.util.Arrays.asList(\"magisk_alt_repo\")",)
|
2022-03-30 17:09:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-01 20:19:42 +00:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
2022-01-23 18:17:08 +00:00
|
|
|
lint {
|
2021-11-05 14:22:33 +00:00
|
|
|
disable 'MissingTranslation'
|
2022-04-10 07:40:23 +00:00
|
|
|
disable 'TypographyEllipsis'
|
2021-11-05 14:22:33 +00:00
|
|
|
}
|
2021-10-01 20:19:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
aboutLibraries {
|
2022-05-19 16:12:56 +00:00
|
|
|
additionalLicenses = ["LGPL_3_0_only"]
|
2021-10-01 20:19:42 +00:00
|
|
|
}
|
|
|
|
|
2022-09-14 00:14:52 +00:00
|
|
|
sentry {
|
|
|
|
// Disables or enables the handling of Proguard mapping for Sentry.
|
|
|
|
// If enabled the plugin will generate a UUID and will take care of
|
|
|
|
// uploading the mapping to Sentry. If disabled, all the logic
|
|
|
|
// related to proguard mapping will be excluded.
|
|
|
|
// Default is enabled.
|
|
|
|
includeProguardMapping = true
|
|
|
|
|
|
|
|
// Whether the plugin should attempt to auto-upload the mapping file to Sentry or not.
|
|
|
|
// If disabled the plugin will run a dry-run and just generate a UUID.
|
|
|
|
// The mapping file has to be uploaded manually via sentry-cli in this case.
|
|
|
|
// Default is enabled.
|
|
|
|
autoUploadProguardMapping = true
|
|
|
|
|
|
|
|
// Experimental flag to turn on support for GuardSquare's tools integration (Dexguard and External Proguard).
|
|
|
|
// If enabled, the plugin will try to consume and upload the mapping file produced by Dexguard and External Proguard.
|
|
|
|
// Default is disabled.
|
|
|
|
experimentalGuardsquareSupport = true
|
|
|
|
|
|
|
|
// Disables or enables the automatic configuration of Native Symbols
|
|
|
|
// for Sentry. This executes sentry-cli automatically so
|
|
|
|
// you don't need to do it manually.
|
|
|
|
// Default is disabled.
|
|
|
|
uploadNativeSymbols = true
|
|
|
|
|
|
|
|
// Does or doesn't include the source code of native code for Sentry.
|
|
|
|
// This executes sentry-cli with the --include-sources param. automatically so
|
|
|
|
// you don't need to do it manually.
|
|
|
|
// Default is disabled.
|
|
|
|
includeNativeSources = true
|
|
|
|
|
|
|
|
// Enable or disable the tracing instrumentation.
|
|
|
|
// Does auto instrumentation for specified features through bytecode manipulation.
|
|
|
|
// Default is enabled.
|
|
|
|
tracingInstrumentation {
|
|
|
|
enabled = true
|
|
|
|
}
|
|
|
|
|
|
|
|
// Enable auto-installation of Sentry components (sentry-android SDK and okhttp, timber and fragment integrations).
|
|
|
|
// Default is enabled.
|
|
|
|
// Only available v3.1.0 and above.
|
|
|
|
autoInstallation {
|
|
|
|
enabled = true
|
|
|
|
|
|
|
|
// Specifies a version of the sentry-android SDK and fragment, timber and okhttp integrations.
|
|
|
|
//
|
|
|
|
// This is also useful, when you have the sentry-android SDK already included into a transitive dependency/module and want to
|
|
|
|
// align integration versions with it (if it's a direct dependency, the version will be inferred).
|
|
|
|
//
|
|
|
|
// NOTE: if you have a higher version of the sentry-android SDK or integrations on the classpath, this setting will have no effect
|
|
|
|
// as Gradle will resolve it to the latest version.
|
|
|
|
//
|
|
|
|
// Defaults to the latest published sentry version.
|
|
|
|
sentryVersion = '6.4.1'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-23 16:14:40 +00:00
|
|
|
configurations {
|
2022-09-14 00:14:52 +00:00
|
|
|
implementation.exclude group: 'org.jetbrains', module: 'annotations'
|
|
|
|
implementation.exclude group: 'io.sentry', module: 'sentry-android-okhttp'
|
2021-10-23 16:14:40 +00:00
|
|
|
}
|
|
|
|
|
2021-10-01 20:19:42 +00:00
|
|
|
dependencies {
|
|
|
|
// UI
|
2022-09-14 00:14:52 +00:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.5.1'
|
2022-08-14 10:05:08 +00:00
|
|
|
implementation 'androidx.emoji2:emoji2:1.2.0'
|
|
|
|
implementation 'androidx.emoji2:emoji2-views-helper:1.2.0'
|
2022-01-31 21:59:47 +00:00
|
|
|
implementation 'androidx.preference:preference:1.2.0'
|
2022-06-01 11:59:49 +00:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
2021-10-01 20:19:42 +00:00
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.2.1'
|
|
|
|
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
2022-08-29 15:32:28 +00:00
|
|
|
implementation 'androidx.webkit:webkit:1.5.0'
|
2022-06-15 14:09:56 +00:00
|
|
|
implementation 'com.google.android.material:material:1.6.1'
|
2022-08-24 19:42:51 +00:00
|
|
|
implementation "com.mikepenz:aboutlibraries:${latestAboutLibsRelease}"
|
2022-02-03 20:08:30 +00:00
|
|
|
implementation "dev.rikka.rikkax.layoutinflater:layoutinflater:1.2.0"
|
2022-07-16 14:13:58 +00:00
|
|
|
implementation "dev.rikka.rikkax.insets:insets:1.3.0"
|
2022-02-12 18:47:38 +00:00
|
|
|
implementation 'com.github.Dimezis:BlurView:version-1.6.6'
|
2022-06-03 15:26:57 +00:00
|
|
|
implementation 'com.github.KieronQuinn:MonetCompat:0.4.1'
|
2022-09-14 00:14:52 +00:00
|
|
|
implementation 'com.github.Fox2Code:FoxCompat:0.1.4b'
|
2021-10-01 20:19:42 +00:00
|
|
|
|
|
|
|
// Utils
|
2022-07-20 13:25:58 +00:00
|
|
|
implementation 'androidx.work:work-runtime:2.7.1'
|
2021-12-02 16:41:07 +00:00
|
|
|
implementation 'com.squareup.okhttp3:okhttp-dnsoverhttps:4.9.3'
|
|
|
|
implementation 'com.squareup.okhttp3:okhttp-brotli:4.9.3'
|
2022-05-05 15:27:31 +00:00
|
|
|
implementation 'com.github.topjohnwu.libsu:io:5.0.1'
|
2022-09-14 00:14:52 +00:00
|
|
|
implementation 'com.github.Fox2Code:RosettaX:1.0.9'
|
2022-06-01 15:50:26 +00:00
|
|
|
implementation 'com.github.Fox2Code:AndroidANSI:1.0.1'
|
2021-10-01 20:19:42 +00:00
|
|
|
|
2022-09-14 00:14:52 +00:00
|
|
|
// Error reporting
|
|
|
|
implementation 'io.sentry:sentry-android:6.4.1'
|
|
|
|
implementation 'io.sentry:sentry-android-fragment:6.4.1'
|
|
|
|
implementation 'io.sentry:sentry-android-okhttp:6.4.1'
|
|
|
|
implementation 'io.sentry:sentry-android-core:6.4.1'
|
|
|
|
implementation 'io.sentry:sentry-android-ndk:6.4.1'
|
|
|
|
|
2021-10-01 20:19:42 +00:00
|
|
|
// Markdown
|
|
|
|
implementation "io.noties.markwon:core:4.6.2"
|
|
|
|
implementation "io.noties.markwon:html:4.6.2"
|
|
|
|
implementation "io.noties.markwon:image:4.6.2"
|
2021-10-23 16:14:40 +00:00
|
|
|
implementation "io.noties.markwon:syntax-highlight:4.6.2"
|
|
|
|
annotationProcessor "io.noties:prism4j-bundler:2.0.0"
|
2021-10-01 20:19:42 +00:00
|
|
|
implementation "com.caverock:androidsvg:1.4"
|
|
|
|
|
|
|
|
// Test
|
2022-08-29 13:58:10 +00:00
|
|
|
testImplementation 'junit:junit:4.+'
|
2021-10-01 20:19:42 +00:00
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
2022-04-02 10:43:30 +00:00
|
|
|
}
|