-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove release-branch stuff from main * delete this other new file too
- Loading branch information
1 parent
704768f
commit f82074b
Showing
16 changed files
with
84 additions
and
365 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
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
23 changes: 0 additions & 23 deletions
23
app/src/main/java/com/mux/video/vod/demo/UploadExampleApp.kt
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,34 +1,11 @@ | ||
package com.mux.video.vod.demo | ||
|
||
import android.annotation.TargetApi | ||
import android.app.Application | ||
import android.app.NotificationChannel | ||
import android.app.NotificationManager | ||
import android.os.Build | ||
import com.mux.video.upload.MuxUploadSdk | ||
import com.mux.video.upload.api.MuxUploadManager | ||
|
||
class UploadExampleApp : Application() { | ||
|
||
override fun onCreate() { | ||
super.onCreate() | ||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { | ||
createNotificationChannel() | ||
} | ||
MuxUploadSdk.initialize(this) | ||
if (MuxUploadManager.allUploadJobs().isNotEmpty()) { | ||
UploadNotificationService.startCompat(this) | ||
} | ||
} | ||
|
||
@TargetApi(Build.VERSION_CODES.O) | ||
private fun createNotificationChannel() { | ||
val channel = NotificationChannel( | ||
UploadNotificationService.CHANNEL_UPLOAD_PROGRESS, | ||
getString(R.string.notif_channel_name), | ||
NotificationManager.IMPORTANCE_LOW | ||
) | ||
channel.description = getString(R.string.notif_channel_desc) | ||
getSystemService(NotificationManager::class.java).createNotificationChannel(channel) | ||
} | ||
} |
202 changes: 0 additions & 202 deletions
202
app/src/main/java/com/mux/video/vod/demo/UploadNotificationService.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
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
Oops, something went wrong.