-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This disables jetifier and removes the following libraries * EasyDeviceInfo - no update so brought code we use into the embyclient. * Android Priority Job Queue - replaced with coroutines and repository pattern * Moxy App Compat - No update, so brought the two classes we use into the app and updated them to use the androidx app compat library In addition converted last of the Job Manager implementation to use coroutines.
- Loading branch information
1 parent
c1a1173
commit a701ca4
Showing
22 changed files
with
244 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
emby-lib/src/main/kotlin/us/nineworlds/serenity/emby/server/EmbyServerJob.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 0 additions & 50 deletions
50
emby-lib/src/test/kotlin/us/nineworlds/serenity/emby/server/EmbyServerJobTest.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
org.gradle.daemon=false | ||
org.gradle.jvmargs=-Xms1024m -Xmx1024m -XX:+UseStringDeduplication | ||
org.gradle.jvmargs=-Xms1024m -Xmx2048m -XX:+UseStringDeduplication | ||
kotlin.incremental=true | ||
org.gradle.configureondemand=true | ||
android.useAndroidX=true | ||
android.enableJetifier=true | ||
android.jetifier.ignorelist=bcprov,robolectric | ||
android.enableJetifier=false | ||
org.gradle.caching=true | ||
org.gradle.parallel=true | ||
org.gradle.configuration-cache=true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
...id-common/src/main/kotlin/us/nineworlds/serenity/common/android/injection/InjectingJob.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
package moxy; | ||
|
||
import android.os.Bundle; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
@SuppressWarnings("unused") | ||
public class MvpAppCompatActivity extends AppCompatActivity implements MvpDelegateHolder { | ||
|
||
private MvpDelegate<? extends MvpAppCompatActivity> mvpDelegate; | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
|
||
getMvpDelegate().onCreate(savedInstanceState); | ||
} | ||
|
||
@Override | ||
protected void onStart() { | ||
super.onStart(); | ||
|
||
getMvpDelegate().onAttach(); | ||
} | ||
|
||
@Override | ||
protected void onResume() { | ||
super.onResume(); | ||
|
||
getMvpDelegate().onAttach(); | ||
} | ||
|
||
@Override | ||
protected void onSaveInstanceState(Bundle outState) { | ||
super.onSaveInstanceState(outState); | ||
|
||
getMvpDelegate().onSaveInstanceState(outState); | ||
getMvpDelegate().onDetach(); | ||
} | ||
|
||
@Override | ||
protected void onStop() { | ||
super.onStop(); | ||
|
||
getMvpDelegate().onDetach(); | ||
} | ||
|
||
@Override | ||
protected void onDestroy() { | ||
super.onDestroy(); | ||
|
||
getMvpDelegate().onDestroyView(); | ||
|
||
if (isFinishing()) { | ||
getMvpDelegate().onDestroy(); | ||
} | ||
} | ||
|
||
/** | ||
* @return The {@link MvpDelegate} being used by this Activity. | ||
*/ | ||
@Override | ||
public MvpDelegate getMvpDelegate() { | ||
if (mvpDelegate == null) { | ||
mvpDelegate = new MvpDelegate<>(this); | ||
} | ||
return mvpDelegate; | ||
} | ||
} |
Oops, something went wrong.