Skip to content

Commit

Permalink
Fix version.txt writing in snapshots AAR (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbro112 authored Nov 2, 2023
1 parent 5471c5d commit e172796
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion snapshots/snapshots/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ group = "com.emergetools.snapshots"
version = libs.versions.emerge.snapshots.get()

var metaInfResDir = File(buildDir, "generated/emerge/")
var metaInfDestDir = File(metaInfResDir, "META-INF/com/emergetools/test/")
var metaInfDestDir = File(metaInfResDir, "META-INF/com/emergetools/snapshots/")

android {
namespace = "com.emergetools.snapshots"
Expand All @@ -40,6 +40,10 @@ android {
composeOptions {
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.extension.get()
}

// Ensures our version.txt is packaged in with release.
// Will be pulled in automatically to test APK upon build
sourceSets.getByName("main").resources.srcDir(metaInfResDir)
}

dependencies {
Expand Down

0 comments on commit e172796

Please sign in to comment.