Skip to content

Commit

Permalink
Release 1.0.4
Browse files Browse the repository at this point in the history
Release 1.0.4
  • Loading branch information
vkay94 authored Aug 26, 2021
2 parents aff93a5 + 22a2ff7 commit 2812341
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 26 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,22 @@ 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 {
implementation 'com.github.vkay94:DoubleTapPlayerView:1.0.3'
implementation 'com.github.vkay94:DoubleTapPlayerView:1.0.4'
}
```

Expand All @@ -54,8 +56,6 @@ into your XML layout, e.g. on top of `DoubleTapPlayerView` or inside ExoPlayer's

```xml
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent" >

Expand Down
11 changes: 3 additions & 8 deletions app/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: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ ext.build = [

libMajor : 1,
libMinor : 0,
libPatch : 3,
libPatch : 4,
]
27 changes: 23 additions & 4 deletions doubletapplayerview/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'maven-publish'
}

apply from: '../dependencies.gradle'

Expand All @@ -10,8 +13,6 @@ android {
defaultConfig {
minSdkVersion build.minSdk
targetSdkVersion build.targetSdk
versionCode build.libMajor + (build.libMinor * 100) + (build.libPatch * 10000)
versionName "$build.libMajor.$build.libMinor.$build.libPatch"

vectorDrawables.useSupportLibrary = true

Expand Down Expand Up @@ -46,3 +47,21 @@ dependencies {
implementation "com.google.android.exoplayer:exoplayer-ui:$versions.exoplayer"
implementation "androidx.constraintlayout:constraintlayout:$versions.constraintlayout"
}

// 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.dtpv'
artifactId = 'doubletapplayerview'
version = build.libMajor + (build.libMinor * 100) + (build.libPatch * 10000)
}
}
}
}
8 changes: 4 additions & 4 deletions doubletapplayerview/src/main/res/layout/yt_seconds_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@
android:gravity="center_horizontal"
android:orientation="horizontal">

<ImageView
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/icon_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat="@drawable/ic_play_triangle"
tools:alpha="0.18" />

<ImageView
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/icon_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat="@drawable/ic_play_triangle"
tools:alpha="0.5" />

<ImageView
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/icon_3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand All @@ -37,7 +37,7 @@

</LinearLayout>

<TextView
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_seconds"
android:layout_width="match_parent"
android:layout_height="wrap_content"
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

0 comments on commit 2812341

Please sign in to comment.