diff --git a/BUILDING.md b/BUILDING.md index 16738b9..74854cf 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -159,6 +159,81 @@ Prerequisites: Android Studio with SDK installed 5. Use Android Studio to build and run on emulator or device. +## Building Android for deep links + +You must add the following intent filter to the `android/app/src/main/AndroidManifest.xml` file: + +```xml + + + + + + +``` + +You must also add the following to the `android/app/build.gradle` file: + +```gradle +android { + // ... existing config ... + + lintOptions { + disable 'UnsanitizedFilenameFromContentProvider' + abortOnError false + baseline file("lint-baseline.xml") + + // Ignore Capacitor module issues + ignore 'DefaultLocale' + ignore 'UnsanitizedFilenameFromContentProvider' + ignore 'LintBaseline' + ignore 'LintBaselineFixed' + } +} +``` + +Modify `/android/build.gradle` to use a stable version of AGP and make sure Kotlin version is compatible. + +```gradle +buildscript { + repositories { + google() + mavenCentral() + } + dependencies { + // Use a stable version of AGP + classpath 'com.android.tools.build:gradle:8.1.0' + + // Make sure Kotlin version is compatible + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0" + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +// Add this to handle version conflicts +configurations.all { + resolutionStrategy { + force 'org.jetbrains.kotlin:kotlin-stdlib:1.8.0' + force 'org.jetbrains.kotlin:kotlin-stdlib-common:1.8.0' + } +} +``` + +## Building Android from the console + +```bash +./gradlew clean +./gradlew build -Dlint.baselines.continue=true + +npx cap +``` + ## Development To run the application in development mode: