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
fileprivate func generateForSleep(_ playlist: Playlist) -> Playlist { | |
var remainingDurationInMs: Int = self.getDurationInMsFromNow() | |
let maxRemainderLength = 90 * 60 * 1000 * 2 | |
let firstChunks = [1,3,4,6,8,9,13,14,16] | |
var thenChunks = [2,4,7,8,9,10,12,14,15] | |
let endChunks = [5,6,11,16] | |
let ultEndChunks = [17] | |
//if no Grace Davidson, must get rid of 2, 7, 12 |
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
2020-06-29 18:42:29.767 16818-16818/com.umusic.sleep W/FirebaseApp: Default FirebaseApp failed to initialize because no default options were found. This usually means that com.google.gms:google-services was not applied to your gradle project. | |
2020-06-29 18:42:29.767 16818-16818/com.umusic.sleep I/FirebaseInitProvider: FirebaseApp initialization unsuccessful | |
2020-06-29 18:42:29.833 16818-16818/com.umusic.sleep I/om.umusic.slee: Rejecting re-init on previously-failed class java.lang.Class<com.mixpanel.android.mpmetrics.MixpanelFCMMessagingService>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/messaging/FirebaseMessagingService; | |
2020-06-29 18:42:29.834 16818-16818/com.umusic.sleep I/om.umusic.slee: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.messaging.FirebaseMessagingService" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.umusic.sleep-7hAh_CnlJ2OxCah4XFb9eA==/base.apk"],nativeLibrar |
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
2020-06-29 13:30:33.853 12707-12707/? I/om.umusic.slee: Late-enabling -Xcheck:jni | |
2020-06-29 13:30:33.889 12707-12707/? E/libc: Access denied finding property "persist.vendor.sys.activitylog" | |
2020-06-29 13:30:34.069 12707-12707/com.umusic.sleep I/om.umusic.slee: The ClassLoaderContext is a special shared library. | |
2020-06-29 13:30:34.709 12707-12707/com.umusic.sleep W/FirebaseApp: Default FirebaseApp failed to initialize because no default options were found. This usually means that com.google.gms:google-services was not applied to your gradle project. | |
2020-06-29 13:30:34.709 12707-12707/com.umusic.sleep I/FirebaseInitProvider: FirebaseApp initialization unsuccessful | |
2020-06-29 13:30:34.826 12707-12707/com.umusic.sleep W/Adjust: PRODUCTION: Adjust is running in Production mode. Use this setting only for the build that you want to publish. Set the environment to `sandbox` if you want to test your app! | |
2020-06-29 13:30:34.830 12707-12707/com.umusic.sleep W/Adjust: PRODUCTION: Adjust is running in Production mode |
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
2020-06-26 12:26:52.101 13169-13169/? W/main: type=1400 audit(0.0:5183535): avc: denied { dac_read_search } for capability=2 scontext=u:r:zygote:s0 tcontext=u:r:zygote:s0 tclass=capability permissive=0 | |
2020-06-26 12:26:52.101 13169-13169/? I/chatty: uid=0(root) main identical 2 lines | |
2020-06-26 12:26:52.101 13169-13169/? W/main: type=1400 audit(0.0:5183538): avc: denied { dac_read_search } for capability=2 scontext=u:r:zygote:s0 tcontext=u:r:zygote:s0 tclass=capability permissive=0 | |
2020-06-26 12:26:52.114 13169-13169/? I/om.umusic.slee: Late-enabling -Xcheck:jni | |
2020-06-26 12:26:52.149 13169-13169/? E/libc: Access denied finding property "persist.vendor.sys.activitylog" | |
2020-06-26 12:26:52.145 13169-13169/? W/re-initialized>: type=1400 audit(0.0:5183539): avc: denied { read } for name="u:object_r:mtk_amslog_prop:s0" dev="tmpfs" ino=12812 scontext=u:r:untrusted_app:s0:c240,c256,c512,c768 tcontext=u:object_r:mtk_amslog_prop:s0 tclass=file permissive=0 | |
2020-06-26 12:26:52.204 13169-13169/com.umusic.sleep I/om.um |
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
2020-06-26 00:19:37.223 23834-23834/com.umusic.sleep I/om.umusic.slee: Late-enabling -Xcheck:jni | |
2020-06-26 00:19:37.254 23834-23834/com.umusic.sleep E/libc: Access denied finding property "persist.vendor.sys.activitylog" | |
2020-06-26 00:19:37.311 23834-23834/com.umusic.sleep I/om.umusic.slee: The ClassLoaderContext is a special shared library. | |
2020-06-26 00:19:37.396 23834-23834/com.umusic.sleep W/Adjust: PRODUCTION: Adjust is running in Production mode. Use this setting only for the build that you want to publish. Set the environment to `sandbox` if you want to test your app! | |
2020-06-26 00:19:37.396 23834-23834/com.umusic.sleep W/Adjust: PRODUCTION: Adjust is running in Production mode. Use this setting only for the build that you want to publish. Set the environment to `sandbox` if you want to test your app! | |
2020-06-26 00:19:37.399 23834-23834/com.umusic.sleep I/om.umusic.slee: Rejecting re-init on previously-failed class java.lang.Class<com.mixpanel.android.mpmetrics.MixpanelFCMMessagingService>: java.lang. |
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
//HANG | |
2020-06-24 22:37:45.446 12976-12976/? E/libc: Access denied finding property "persist.vendor.sys.activitylog" | |
2020-06-24 22:37:45.653 12976-13009/com.umusic.sleep E/libc: Access denied finding property "persist.vendor.log.tel_dbg" | |
2020-06-24 22:37:45.846 12976-13022/com.umusic.sleep E/gralloc: Arm Module v1.0 | |
2020-06-24 22:37:45.847 12976-13022/com.umusic.sleep E/ion: ioctl c0044901 failed with code -1: Invalid argument | |
//NOT HANG | |
2020-06-24 22:40:43.481 14218-14258/com.umusic.sleep E/libc: Access denied finding property "persist.vendor.log.tel_dbg" | |
2020-06-24 22:40:43.658 14218-14269/com.umusic.sleep E/gralloc: Arm Module v1.0 | |
2020-06-24 22:40:43.659 14218-14269/com.umusic.sleep E/ion: ioctl c0044901 failed with code -1: Invalid argument |
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
2020-06-24 22:37:45.397 12976-12976/? W/main: type=1400 audit(0.0:4779249): avc: denied { dac_read_search } for capability=2 scontext=u:r:zygote:s0 tcontext=u:r:zygote:s0 tclass=capability permissive=0 | |
2020-06-24 22:37:45.397 12976-12976/? I/chatty: uid=0(root) om.umusic.slee identical 2 lines | |
2020-06-24 22:37:45.397 12976-12976/? W/main: type=1400 audit(0.0:4779252): avc: denied { dac_read_search } for capability=2 scontext=u:r:zygote:s0 tcontext=u:r:zygote:s0 tclass=capability permissive=0 | |
2020-06-24 22:37:45.410 12976-12976/? I/om.umusic.slee: Late-enabling -Xcheck:jni | |
2020-06-24 22:37:45.441 12976-12976/? W/re-initialized>: type=1400 audit(0.0:4779253): avc: denied { read } for name="u:object_r:mtk_amslog_prop:s0" dev="tmpfs" ino=12812 scontext=u:r:untrusted_app:s0:c237,c256,c512,c768 tcontext=u:object_r:mtk_amslog_prop:s0 tclass=file permissive=0 | |
2020-06-24 22:37:45.446 12976-12976/? E/libc: Access denied finding property "persist.vendor.sys.activitylog" | |
2020-06-24 22:37:45.595 12976-12976/com.umusic.sle |
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
fileprivate func generateForSleep(_ playlist: Playlist) -> Playlist { | |
var remainingDurationInMs: Int = self.getDurationInMsFromNow() | |
let maxRemainderLength = 90 * 60 * 1000 * 2 | |
let firstChunks = [1,2,3,5,6,7,8,9,11,12,13,16] | |
let thenChunks = [2,4,7,8,9,10,12,14,15] | |
let endChunks = [1,5,6,11,16] | |
let ultEndChunks = [17] | |
var chunks: [PlayChunk] = [] |
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
import UIKit | |
import SwiftyJSON | |
import AVFoundation | |
import SVProgressHUD | |
let TheSpotifyManager = SpotifyManager.shared | |
class SpotifyManager: NSObject, BaseMusicManager, SPTSessionManagerDelegate { | |
static let shared = SpotifyManager() |
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
## Week 3 Quiz | |
## 1) What does ORM stand for? | |