Skip to content

Commit

Permalink
Update the changelogs before release
Browse files Browse the repository at this point in the history
  • Loading branch information
antonyhaman committed Apr 17, 2020
1 parent 2b6fe48 commit 7bd2f28
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 22 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,10 @@ All notable changes to this project will be documented in this file.
- Slightly changed logic for sliding player panel elements transformations
- Moved to [Fastlane](https://gitlab.com/snippets/1895688) file structure
- Turned on Proguard
- Various tiny fixes and optimizations
- Various tiny fixes and optimizations

## [1.1.2]
- Fixed numerous bugs and improved stability
- Moved to official Retrofit RxJava2 Adapter
- Bumped Exoplayer version
- Min SDK level is 21
5 changes: 3 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ dependencies {
implementation 'com.google.android.material:material:1.2.0-alpha05'

// Retrofit
implementation("com.squareup.retrofit2:retrofit:2.7.2")
implementation "com.squareup.retrofit2:retrofit:2.7.2"
implementation 'com.squareup.retrofit2:converter-gson:2.7.2'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.7.2'

Expand Down Expand Up @@ -80,7 +80,8 @@ dependencies {
implementation 'com.jakewharton.rxbinding:rxbinding-appcompat-v7:1.0.1'

// Exo Player
implementation 'com.google.android.exoplayer:exoplayer:2.11.4'
implementation 'com.google.android.exoplayer:exoplayer-core:2.11.4'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.11.4'

// Multidex
implementation 'com.android.support:multidex:1.0.3'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public class App extends MultiDexApplication {
private File downloadDirectory;
private Cache downloadCache;
private DownloadManager downloadManager;
//private DownloadTracker downloadTracker;

public static synchronized App getInstance() {
return instance;
Expand All @@ -64,10 +63,8 @@ protected static CacheDataSourceFactory buildReadOnlyCacheDataSource(
return new CacheDataSourceFactory(
cache,
upstreamFactory,
new FileDataSource.Factory(),
/* cacheWriteDataSinkFactory= */ null,
CacheDataSource.FLAG_IGNORE_CACHE_ON_ERROR,
/* eventListener= */ null);
new FileDataSource.Factory(),null,
CacheDataSource.FLAG_IGNORE_CACHE_ON_ERROR, null);
}

public AppDatabase getDatabase() {
Expand Down Expand Up @@ -115,16 +112,14 @@ private synchronized void initDownloadManager() {
if (downloadManager == null) {
DefaultDownloadIndex downloadIndex = new DefaultDownloadIndex(getDatabaseProvider());
upgradeActionFile(
DOWNLOAD_ACTION_FILE, downloadIndex, /* addNewDownloadsAsCompleted= */ false);
DOWNLOAD_ACTION_FILE, downloadIndex, false);
upgradeActionFile(
DOWNLOAD_TRACKER_ACTION_FILE, downloadIndex, /* addNewDownloadsAsCompleted= */ true);
DOWNLOAD_TRACKER_ACTION_FILE, downloadIndex, true);
DownloaderConstructorHelper downloaderConstructorHelper =
new DownloaderConstructorHelper(getDownloadCache(), buildHttpDataSourceFactory());
downloadManager =
new DownloadManager(
this, downloadIndex, new DefaultDownloaderFactory(downloaderConstructorHelper));
// downloadTracker =
// new DownloadTracker(/* context= */ this, buildDataSourceFactory(), downloadManager);
}
}

Expand All @@ -139,11 +134,8 @@ private void upgradeActionFile(
String fileName, DefaultDownloadIndex downloadIndex, boolean addNewDownloadsAsCompleted) {
try {
ActionFileUpgradeUtil.upgradeAndDelete(
new File(getDownloadDirectory(), fileName),
/* downloadIdProvider= */ null,
downloadIndex,
/* deleteOnFailure= */ true,
addNewDownloadsAsCompleted);
new File(getDownloadDirectory(), fileName),null,
downloadIndex, true, addNewDownloadsAsCompleted);
} catch (IOException e) {
Log.e(TAG, "Failed to upgrade action file: " + fileName, e);
}
Expand Down
5 changes: 0 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ allprojects {

}

//task clean(type: Delete) {
// delete rootProject.buildDir
// delete getRootProject().getRootDir().toString() + "/apk"
//}

configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
Expand Down
4 changes: 4 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Fixed numerous bugs and improved stability
- Moved to official Retrofit RxJava2 Adapter
- Bumped Exoplayer version
- Min SDK level is 21

0 comments on commit 7bd2f28

Please sign in to comment.