Skip to content

Commit

Permalink
Consolidating release versions and build parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
izzytwosheds committed Jan 17, 2020
1 parent 5f70359 commit 5381088
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 19 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ By default, LiTr uses Android MediaCodec stack for hardware accelerated decoding
Simply grab via Gradle:

```groovy
implementation 'com.linkedin.android.litr:litr:1.1.0'
implementation 'com.linkedin.android.litr:litr:1.2.0'
```
...or Maven:

```xml
<dependency>
<groupId>com.linkedin.android.litr</groupId>
<artifactId>litr</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</dependency>

```
Expand Down Expand Up @@ -119,15 +119,15 @@ When using your own component implementations, make sure that output of a compon
You can use custom filters to modify video frames. Write your own in OpenGL as an implementation of `GlFilter` interface, or use existing one from "filter pack" library, which is available via Gradle:

```groovy
implementation 'com.linkedin.android.litr:litr-filters:1.1.0'
implementation 'com.linkedin.android.litr:litr-filters:1.2.0'
```
...or Maven:

```xml
<dependency>
<groupId>com.linkedin.android.litr</groupId>
<artifactId>litr-filters</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</dependency>

```
Expand Down
8 changes: 8 additions & 0 deletions constants.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
project.ext {
releaseVersion = '1.2.0'
releaseVersionCode = 10020000
minSdkVersion = 18
targetSdkVersion = 28
compileSdkVersion = 29
bintrayGroupId = "com.linkedin.android.litr"
}
16 changes: 9 additions & 7 deletions litr-filters/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
apply plugin: 'com.android.library'

apply from:'../constants.gradle'

android {
compileSdkVersion 29
compileSdkVersion project.ext.compileSdkVersion
buildToolsVersion "29.0.2"


defaultConfig {
minSdkVersion 18
targetSdkVersion 28
versionCode 4
versionName '1.1.1'
minSdkVersion project.ext.minSdkVersion
targetSdkVersion project.ext.targetSdkVersion
versionCode project.ext.releaseVersionCode
versionName project.ext.releaseVersion

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
Expand All @@ -30,8 +32,8 @@ dependencies {
implementation 'androidx.annotation:annotation:1.1.0'
}

group "com.linkedin.android.litr"
version '1.1.1'
group project.ext.bintrayGroupId
version project.ext.releaseVersion
description 'Video/Audio filter pack for LiTr'

apply from:'../publish.gradle'
16 changes: 9 additions & 7 deletions litr/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
apply plugin: 'com.android.library'

apply from:'../constants.gradle'

android {
compileSdkVersion 29
compileSdkVersion project.ext.compileSdkVersion
buildToolsVersion "29.0.2"


defaultConfig {
minSdkVersion 18
targetSdkVersion 28
versionCode 3
versionName '1.1.0'
minSdkVersion project.ext.minSdkVersion
targetSdkVersion project.ext.targetSdkVersion
versionCode project.ext.releaseVersionCode
versionName project.ext.releaseVersion
}

testOptions {
Expand All @@ -31,8 +33,8 @@ dependencies {
testImplementation 'org.mockito:mockito-core:2.25.0'
}

group "com.linkedin.android.litr"
version '1.1.0'
group project.ext.bintrayGroupId
version project.ext.releaseVersion
description 'Video/Audio filter pack for LiTr'

apply from: '../publish.gradle'
2 changes: 1 addition & 1 deletion publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ bintray {
githubRepo = 'linkedin/LiTr'

version {
name = project.version
name = project.ext.releaseVersion
released = new Date()
}

Expand Down

0 comments on commit 5381088

Please sign in to comment.