Skip to content

Commit

Permalink
Prepare for 2.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensousa committed Jun 10, 2018
1 parent 4d59ac5 commit e63d74f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ Add the following to your app's build.gradle:
```groovy
dependencies {
// Base implementation with a standard SeekBar
implementation 'com.github.rubensousa:previewseekbar:1.2'
implementation 'com.github.rubensousa:previewseekbar:2.0.0'
// ExoPlayer extension that contains a TimeBar. Includes the previous dependency
implementation 'com.github.rubensousa:previewseekbar-exoplayer:2.6.0'
// ExoPlayer extension that contains a TimeBar.
implementation 'com.github.rubensousa:previewseekbar-exoplayer:2.8.1'
}
```

If you're going to use this with ExoPlayer, just add the second dependency.
If you're going to use this with ExoPlayer, you need both dependencies.

## How to use

Expand Down
6 changes: 3 additions & 3 deletions previewseekbar-exoplayer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ android {
}

dependencies {
api "com.android.support:appcompat-v7:$supportLibVersion"
api "com.android.support:support-media-compat:$supportLibVersion"
implementation "com.android.support:appcompat-v7:$supportLibVersion"
implementation "com.android.support:support-media-compat:$supportLibVersion"
implementation project(':previewseekbar')
api "com.google.android.exoplayer:exoplayer-ui:$exoPlayerVersion"
api project(':previewseekbar')
}

ext {
Expand Down
1 change: 1 addition & 0 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ dependencies {
implementation "com.android.support.constraint:constraint-layout:1.1.0"
implementation 'com.github.bumptech.glide:glide:4.7.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'
implementation project(':previewseekbar')
implementation project(':previewseekbar-exoplayer')
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
import com.google.android.exoplayer2.ui.SimpleExoPlayerView;


public class MainActivity extends AppCompatActivity implements Toolbar.OnMenuItemClickListener, PreviewView.OnPreviewChangeListener {
public class MainActivity extends AppCompatActivity implements Toolbar.OnMenuItemClickListener,
PreviewView.OnPreviewChangeListener {

private static final int PICK_FILE_REQUEST_CODE = 2;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ protected Bitmap transform(@NonNull BitmapPool pool, @NonNull Bitmap toTransform
int outWidth, int outHeight) {
int width = toTransform.getWidth() / MAX_COLUMNS;
int height = toTransform.getHeight() / MAX_LINES;
return Bitmap.createBitmap(toTransform, x * width, y * height,
width, height);
return Bitmap.createBitmap(toTransform, x * width, y * height, width, height);
}

@Override
Expand Down

0 comments on commit e63d74f

Please sign in to comment.