Fix website variant build (#1015)

pull/1710/head
SessionHero01 4 weeks ago committed by GitHub
parent bbdfec3a47
commit 36590bea81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -83,7 +83,8 @@ local ci_dep_mirror(want_mirror) = (if want_mirror then ' -DLOCAL_MIRROR=https:/
'apt-get update --allow-releaseinfo-change', 'apt-get update --allow-releaseinfo-change',
'apt-get install -y ninja-build openjdk-17-jdk', 'apt-get install -y ninja-build openjdk-17-jdk',
'update-java-alternatives -s java-1.17.0-openjdk-amd64', 'update-java-alternatives -s java-1.17.0-openjdk-amd64',
'./gradlew assemblePlayDebug', './gradlew assemblePlayDebug assembleWebsiteDebug',
'./gradlew -Phuawei=1 assembleHuaweiDebug',
'./scripts/drone-static-upload.sh' './scripts/drone-static-upload.sh'
], ],
} }

@ -5,7 +5,7 @@ import dagger.Module
import dagger.Provides import dagger.Provides
import dagger.hilt.InstallIn import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton import org.session.libsession.messaging.notifications.TokenFetcher
@Module @Module
@InstallIn(SingletonComponent::class) @InstallIn(SingletonComponent::class)

@ -1,9 +1,15 @@
package org.thoughtcrime.securesms.notifications package org.thoughtcrime.securesms.notifications
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import org.session.libsession.messaging.notifications.TokenFetcher
import javax.inject.Inject import javax.inject.Inject
import javax.inject.Singleton import javax.inject.Singleton
@Singleton @Singleton
class NoOpTokenFetcher @Inject constructor() : TokenFetcher { class NoOpTokenFetcher @Inject constructor() : TokenFetcher {
override suspend fun fetch(): String? = null override val token: StateFlow<String?> = MutableStateFlow(null)
override fun onNewToken(token: String) {}
override suspend fun resetToken() {}
} }

Loading…
Cancel
Save