Skip to content

Commit

Permalink
removed lvl, libs up-to-date, minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dealnotedev committed Mar 25, 2018
1 parent 5e14a78 commit a4dc9cb
Show file tree
Hide file tree
Showing 33 changed files with 127 additions and 3,098 deletions.
7 changes: 3 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ android {
applicationId "biz.dealnote.messenger"
minSdkVersion 16
targetSdkVersion 27
versionCode 40106
versionName '4_0_1'
versionCode 40200
versionName '4_0_2'

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
Expand Down Expand Up @@ -143,7 +143,6 @@ dependencies {
implementation 'io.reactivex.rxjava2:rxjava:2.1.9'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation project(':lvl')
implementation project(':mvpcore')
implementation 'com.squareup.retrofit2:retrofit:2.2.0'
implementation 'com.squareup.retrofit2:converter-gson:2.2.0'
Expand All @@ -152,7 +151,7 @@ dependencies {
implementation 'com.squareup.okhttp3:logging-interceptor:3.10.0'
implementation "com.google.firebase:firebase-crash:$firebaseLibraryVersion"
implementation "com.google.firebase:firebase-database:$firebaseLibraryVersion"
implementation 'com.google.android.exoplayer:exoplayer:2.6.0'
implementation 'com.google.android.exoplayer:exoplayer:2.7.1'
implementation "com.android.support:exifinterface:$supportLibraryVersion"
}

Expand Down
4 changes: 0 additions & 4 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,6 @@
android:launchMode="singleTask"
android:theme="@style/Theme.AppCompat.Light.NoActionBar.FullScreen" />

<service
android:name=".service.CheckLicenseService"
android:exported="false" />

<!-- Profile phone Activity -->
<!-- Shortcut launcher Activity -->
<!-- Search interface -->
Expand Down
271 changes: 102 additions & 169 deletions app/src/main/java/biz/dealnote/messenger/activity/MainActivity.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
public class ExoEventAdapter implements Player.EventListener {
@Override
public void onTimelineChanged(Timeline timeline, Object manifest) {
public void onTimelineChanged(Timeline timeline, Object manifest, int reason) {

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1242,8 +1242,6 @@ void setDataSource(final String path) {
intent.putExtra(AudioEffect.EXTRA_PACKAGE_NAME, mService.get().getPackageName());
mService.get().sendBroadcast(intent);

//return true;

resetBufferPercent();
mService.get().notifyChange(PLAYSTATE_CHANGED);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@

import biz.dealnote.messenger.exception.NotFoundException;
import biz.dealnote.messenger.model.Audio;
import biz.dealnote.messenger.util.Logger;
import biz.dealnote.messenger.util.Utils;
import io.reactivex.Single;

import static biz.dealnote.messenger.util.Objects.isNull;

/**
* Created by admin on 2/3/2018.
* Phoenix-for-VK
Expand Down Expand Up @@ -48,7 +49,14 @@ public Single<List<Audio>> get(int ownerId, int offset) {
break;
}

checkAudioPluginError(cursor);
try {
checkAudioPluginError(cursor);
} catch (Exception e) {
cursor.close();
emitter.onError(e);
return;
}


int audioId = cursor.getInt(cursor.getColumnIndex("audio_id"));
int ownerId1 = cursor.getInt(cursor.getColumnIndex("owner_id"));
Expand Down Expand Up @@ -91,7 +99,7 @@ private static void checkAudioPluginError(Cursor cursor) throws AudioPluginExcep

@Override
public Single<String> findAudioUrl(int audioId, int ownerId) {
return Single.fromCallable(() -> {
return Single.create(emitter -> {
Uri uri = new Uri.Builder()
.scheme("content")
.authority(AUTHORITY)
Expand All @@ -106,17 +114,16 @@ public Single<String> findAudioUrl(int audioId, int ownerId) {
if (cursor != null) {
while (cursor.moveToNext()) {
url = cursor.getString(cursor.getColumnIndex("url"));
Logger.d("Audios", "audioId: " + audioId);
}

cursor.close();
}

if(url == null){
throw new NotFoundException();
if (isNull(url)) {
emitter.onError(new NotFoundException());
} else {
emitter.onSuccess(url);
}

return url;
});
}

Expand Down

This file was deleted.

6 changes: 0 additions & 6 deletions lvl/.gitignore

This file was deleted.

20 changes: 0 additions & 20 deletions lvl/build.gradle

This file was deleted.

24 changes: 0 additions & 24 deletions lvl/src/main/AndroidManifest.xml

This file was deleted.

This file was deleted.

Loading

0 comments on commit a4dc9cb

Please sign in to comment.