@@ -35,6 +35,8 @@ android {
3535 ndkVersion " 23.1.7779620"
3636 compileSdkVersion 34
3737 defaultConfig {
38+ // Explicit applicationId so we can override it for debug builds below.
39+ applicationId " com.tailscale.ipn"
3840 minSdkVersion 26
3941 targetSdkVersion 35
4042 versionCode 468
@@ -86,6 +88,7 @@ android {
8688 }
8789 debug {
8890 manifestPlaceholders. leanbackRequired = false
91+ packaging. jniLibs. keepDebugSymbols. add(" **/*.so" )
8992 }
9093 release {
9194 manifestPlaceholders. leanbackRequired = false
@@ -105,6 +108,15 @@ android {
105108 }
106109
107110 testBuildType " applicationTest"
111+
112+ // Override the applicationId for the debug build variant so the installed
113+ // package id becomes debug.com.tailscale.ipn.debug instead of
114+ // com.tailscale.ipn, allowing for installing release and debug side by side
115+ applicationVariants. all { variant ->
116+ if (variant. buildType. name == ' debug' ) {
117+ variant. mergedFlavor. applicationId = ' com.tailscale.ipn.debug'
118+ }
119+ }
108120}
109121
110122dependencies {
@@ -150,7 +162,8 @@ dependencies {
150162 implementation(" com.patrykandpatrick.vico:compose-m3:1.15.0" )
151163
152164 // Tailscale dependencies.
153- implementation ' :libtailscale@aar'
165+ releaseImplementation ' :libtailscale@aar'
166+ debugImplementation ' :libtailscale_unstripped@aar'
154167
155168 // Integration Tests
156169 androidTestImplementation composeBom
0 commit comments