Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ So, make sure you have Hilt & kapt imported in your projects via below check-lis

> [!IMPORTANT]
> After you publish a new release, remember to also bump the version in all Android app repos that depend on the `utils` library:
> * https://github.com/elimu-ai/launcher/blob/main/gradle/libs.versions.toml
> * https://github.com/elimu-ai/kukariri/blob/main/gradle/libs.versions.toml
> * https://github.com/elimu-ai/vitabu/blob/main/gradle/libs.versions.toml
> * https://github.com/elimu-ai/filamu/blob/main/gradle/libs.versions.toml
> * https://github.com/elimu-ai/appstore/blob/main/gradle/libs.versions.toml

---

Expand Down
4 changes: 0 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,10 @@ android {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
manifestPlaceholders = [contentProviderApplicationId: "ai.elimu.content_provider"]
buildConfigField("String", "CONTENT_PROVIDER_APPLICATION_ID", '"ai.elimu.content_provider"')
signingConfig signingConfigs.debug
}

debug {
manifestPlaceholders = [contentProviderApplicationId: "ai.elimu.content_provider.debug"]
buildConfigField("String", "CONTENT_PROVIDER_APPLICATION_ID", '"ai.elimu.content_provider.debug"')
}

}
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="${contentProviderApplicationId}.provider.READ" />

<application
android:name=".BaseApplication"
android:allowBackup="true"
Expand Down
4 changes: 0 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ material = "1.12.0"
hilt = "2.56.2"
kotlinAndroidPlugin = "2.1.20"
grgit = "5.3.0"
elimuModel = "model-2.0.105"
elimuContentProvider = "1.2.53"

[libraries]
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
Expand All @@ -28,7 +26,5 @@ kotlin-gradle-plugin = { group = "org.jetbrains.kotlin", name = "kotlin-gradle-p
android-gradle-plugin = { group = "com.android.tools.build", name = "gradle", version.ref = "agp" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
grgit = { group = "org.ajoberstar.grgit", name = "grgit-gradle", version.ref = "grgit" }
elimu-model = { group = "ai.elimu", name = "model", version.ref = "elimuModel" }
elimu-content-provider = { group = "ai.elimu", name = "content-provider", version.ref = "elimuContentProvider" }

[plugins]
3 changes: 0 additions & 3 deletions utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ android {
}

dependencies {
implementation libs.elimu.model // https://jitpack.io/#ai.elimu/model
implementation libs.elimu.content.provider // https://jitpack.io/#ai.elimu/content-provider

implementation libs.androidx.core.ktx
implementation libs.androidx.appcompat
implementation libs.material
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,6 @@ class TextToSpeechViewModelImpl @Inject constructor(


/**
* Warning: Do not use this function directly to set TTS language. Instead, to set custom TTS
* language for your app, implement {@link #LanguageProvider} and return the design language's
* isoCode in {@link #getLanguage()} function. Then, provide the implementation via Hilt Module.
*
* Below is an example:
* ```
* class LanguageProviderImpl @Inject constructor(): LanguageProvider {
* override fun getLanguage(): String {
* return ""
* }
*
* override fun getContentProviderId(): String {
* return BuildConfig.CONTENT_PROVIDER_APPLICATION_ID
* }
* }
* ....
*
* @Module
* @InstallIn(SingletonComponent::class)
* object DataModule {
*
* @Provides
* fun providesLanguageProvider(): LanguageProvider = LanguageProviderImpl()
* }
* ```
*
*
* Speaks the text using the specified queuing strategy and speech parameters, the text may
* be spanned with TtsSpans.
* This method is asynchronous, i.e. the method just adds the request to the queue of TTS
Expand Down
Loading