-
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
- Loading branch information
1 parent
704768f
commit 6bcae65
Showing
15 changed files
with
84 additions
and
163 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) | ||
} | ||
} |
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
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,25 +1,9 @@ | ||
<resources> | ||
<string name="app_name">Mux Upload Demo</string> | ||
<string name="app_name">Mux Video VOD Upload SDK</string> | ||
<string name="title_main_activity">Mux Upload</string> | ||
<string name="title_plain_activity">Plain-View Mux Upload Example</string> | ||
<string name="action_settings">Settings</string> | ||
<string name="pause_button">Pause Button</string> | ||
<string name="title_activity_create_upload">Create New Upload</string> | ||
<string name="action_create_upload">Upload!</string> | ||
|
||
<string name="notif_channel_name">Upload status notifications</string> | ||
<string name="notif_channel_desc">Progress Notifications for uploads moving in the background</string> | ||
|
||
<plurals name="notif_txt_uploading"> | ||
<item quantity="one">Uploading video</item> | ||
<item quantity="other">Uploading %1$d videos</item> | ||
</plurals> | ||
<plurals name="notif_txt_failed"> | ||
<item quantity="one">Failed to upload video. Tap to retry</item> | ||
<item quantity="other">%1$d uploads failed. Tap to retry</item> | ||
</plurals> | ||
<plurals name="notif_txt_success"> | ||
<item quantity="one">Upload succeeded</item> | ||
<item quantity="other">Successfully uploaded %1$d videos</item> | ||
</plurals> | ||
</resources> | ||
</resources> |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Thu Jan 19 16:04:49 PST 2023 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip | ||
distributionPath=wrapper/dists | ||
zipStorePath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME |
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.