Skip to content

Commit

Permalink
Release 0.2.2
Browse files Browse the repository at this point in the history
Release 0.2.2
  • Loading branch information
vkay94 authored Aug 26, 2021
2 parents 8a311c2 + 39befca commit 3a11e04
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 16 deletions.
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ The sample app lets you test the features by turning them on and off. You can fi

# Download

<a href="https://github.com/vkay94/YouTubeTimeBar/releases/tag/0.2.0" alt="GitHub release 0.2.1">
<img src="https://img.shields.io/badge/release-0.2.1-blue">
<a href="https://github.com/vkay94/YouTubeTimeBar/releases/tag/0.2.2" alt="GitHub release 0.2.2">
<img src="https://img.shields.io/badge/release-0.2.2-blue">
</a>

The Gradle dependency is available via [jitpack.io][jitpack]. To be able to load this library, you have to add the repository to your project's gradle file:
Expand All @@ -36,15 +36,18 @@ allprojects {
}
```

Then, in your app's directory, you can include it the same way like other libraries. Make sure that you set the comnpatibilty version to 1.8 inside `compileOptions`:
Then, in your app's directory, you can include it the same way like other libraries:

```gradle
android {
...
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
// If you face problems during building you should try including the below lines if you
// haven't already
// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
}
dependencies {
Expand Down
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ ext.build = [

libMajor : 0,
libMinor : 2,
libPatch : 1,
libPatch : 2,
]
11 changes: 3 additions & 8 deletions example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,13 @@ android {
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
minifyEnabled false
// shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
// signingConfig signingConfigs.release
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

buildFeatures {
viewBinding true
}
Expand Down
2 changes: 2 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jdk:
- openjdk11
20 changes: 20 additions & 0 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'maven-publish'
}

apply from: '../dependencies.gradle'
Expand All @@ -13,6 +14,7 @@ android {
minSdkVersion build.minSdk
targetSdkVersion build.targetSdk

vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
Expand Down Expand Up @@ -41,4 +43,22 @@ dependencies {
// ExoPlayer2
implementation "com.google.android.exoplayer:exoplayer-core:$versions.exoplayer"
implementation "com.google.android.exoplayer:exoplayer-ui:$versions.exoplayer"
}

// https://ayoubbenkhemis.medium.com/publish-android-library-with-jitpack-be00a29a8174
afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
// Applies the component for the release build variant.
from components.release

// You can then customize attributes of the publication as shown below.
groupId = 'com.github.vkay94.timebar'
artifactId = 'library'
version = build.libMajor + (build.libMinor * 100) + (build.libPatch * 10000)
}
}
}
}

0 comments on commit 3a11e04

Please sign in to comment.