-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
308 additions
and
443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
benchmark/src/main/kotlin/io/getstream/video/android/benchmark/Const.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
build-logic/convention/src/main/kotlin/AndroidApplicationComposeConventionPlugin.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
build-logic/convention/src/main/kotlin/io/getstream/video/DemoFlavor.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package io.getstream.video | ||
|
||
import com.android.build.api.dsl.ApplicationExtension | ||
import com.android.build.api.dsl.ApplicationProductFlavor | ||
import com.android.build.api.dsl.CommonExtension | ||
import com.android.build.api.dsl.ProductFlavor | ||
|
||
@Suppress("EnumEntryName") | ||
enum class FlavorDimension { | ||
contentType | ||
} | ||
|
||
// The content for the app can either come from local static data which is useful for demo | ||
// purposes, or from a production backend server which supplies up-to-date, real content. | ||
// These two product flavors reflect this behaviour. | ||
@Suppress("EnumEntryName") | ||
enum class VideoDemoFlavor(val dimension: FlavorDimension, val applicationIdSuffix: String? = null) { | ||
development(FlavorDimension.contentType, applicationIdSuffix = ".dogfooding"), | ||
production(FlavorDimension.contentType) | ||
} | ||
|
||
fun configureFlavors( | ||
commonExtension: CommonExtension<*, *, *, *, *, *>, | ||
flavorConfigurationBlock: ProductFlavor.(flavor: VideoDemoFlavor) -> Unit = {} | ||
) { | ||
commonExtension.apply { | ||
flavorDimensions += "environment" | ||
productFlavors { | ||
VideoDemoFlavor.values().forEach { | ||
create(it.name) { | ||
dimension = "environment" | ||
flavorConfigurationBlock(this, it) | ||
if (this@apply is ApplicationExtension && this is ApplicationProductFlavor) { | ||
if (it.applicationIdSuffix != null) { | ||
applicationIdSuffix = it.applicationIdSuffix | ||
} | ||
} | ||
proguardFiles("benchmark-rules.pro") | ||
} | ||
} | ||
} | ||
} | ||
} |
10 changes: 5 additions & 5 deletions
10
buildSrc/src/main/kotlin/io/getstream/video/android/Configuration.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
package io.getstream.video.android | ||
|
||
object Configuration { | ||
const val compileSdk = 34 | ||
const val targetSdk = 34 | ||
const val compileSdk = 35 | ||
const val targetSdk = 35 | ||
const val minSdk = 24 | ||
const val majorVersion = 1 | ||
const val minorVersion = 0 | ||
const val patchVersion = 19 | ||
const val patchVersion = 20 | ||
const val versionName = "$majorVersion.$minorVersion.$patchVersion" | ||
const val versionCode = 42 | ||
const val versionCode = 43 | ||
const val snapshotVersionName = "$majorVersion.$minorVersion.${patchVersion + 1}-SNAPSHOT" | ||
const val artifactGroup = "io.getstream" | ||
const val streamVideoCallGooglePlayVersion = "1.1.12" | ||
const val streamVideoCallGooglePlayVersion = "1.1.14" | ||
const val streamWebRtcVersionName = "1.2.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.