SubwayTooter: Build of nofcm flavor fails

I’ve tried to build the nofcm flavor (using ./gradlew assembleNofcmRelease), but the build fails:

> Task :app:compileNofcmReleaseKotlin
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/actmain/ActMainIntent.kt:34:37 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/actmain/ActMainIntent.kt:59:13 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/api/auth/AuthMastodon.kt:11:37 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/api/auth/AuthMastodon.kt:29:33 Const 'val' initializer should be a constant value
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/api/auth/AuthMastodon.kt:29:36 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/api/auth/AuthMisskey10.kt:13:37 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/api/auth/AuthMisskey10.kt:31:41 Const 'val' initializer should be a constant value
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/api/auth/AuthMisskey10.kt:31:44 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/api/auth/AuthMisskey13.kt:13:37 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/api/auth/AuthMisskey13.kt:29:41 Const 'val' initializer should be a constant value
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/api/auth/AuthMisskey13.kt:29:44 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/notification/NotificationChannels.kt:22:37 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/notification/NotificationChannels.kt:59:30 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/notification/NotificationChannels.kt:60:27 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/notification/NotificationChannels.kt:72:30 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/notification/NotificationChannels.kt:73:27 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/notification/NotificationChannels.kt:85:30 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/notification/NotificationChannels.kt:86:27 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/notification/NotificationChannels.kt:98:30 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/notification/NotificationChannels.kt:99:27 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/notification/NotificationChannels.kt:111:30 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/notification/NotificationChannels.kt:112:27 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/notification/NotificationChannels.kt:124:30 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/notification/NotificationChannels.kt:125:27 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/pref/LazyContextHolder.kt:7:37 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/pref/LazyContextHolder.kt:24:37 Const 'val' initializer should be a constant value
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/pref/LazyContextHolder.kt:24:40 Unresolved reference: FcmFlavor
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/push/FcmHandler.kt:16:9 Unresolved reference: FcmTokenLoader

e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/push/FcmHandler.kt:28:13 Unresolved reference: FcmTokenLoader
e: file:///build/repo/app/src/main/java/jp/juggler/subwaytooter/push/FcmHandler.kt:33:13 Unresolved reference: FcmTokenLoader
> Task :app:compileNofcmReleaseKotlin FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileNofcmReleaseKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

Any idea what goes wrong there? Thanks in advance for your help!

(for some background: I try to establish Reproducible Builds for your app, see Reproducible Builds, special client support and more at IzzyOnDroid)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 25 (13 by maintainers)

Most upvoted comments

I’m working on feature/enableEdgeToEdge local branch that is not pushed to github.