-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CCAPI ver110 support #184
CCAPI ver110 support #184
Conversation
implementation "androidx.room:room-runtime:2.3.0" | ||
implementation "androidx.room:room-ktx:2.3.0" | ||
kapt "androidx.room:room-compiler:2.3.0" | ||
kapt "org.xerial:sqlite-jdbc:3.34.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for compiling on M1 Macs.
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.WRITE_SETTINGS" | ||
tools:ignore="ProtectedPermissions" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably unnecessary since I commented out the WiFi network binding.
@@ -63,7 +63,7 @@ suspend fun CanonCameraControlApi.waitUntilConnected( | |||
|
|||
@JsonClass(generateAdapter = true) | |||
data class Api( | |||
val url: String, | |||
val path: String, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the big breaking change.
private lateinit var canonCameraControlApi: CanonCameraControlApi | ||
private val proofCollector: ProofCollector by inject() | ||
private lateinit var foregroundNotificationBuilder: NotificationCompat.Builder | ||
private val beforeDestroyCallbacks = mutableSetOf<() -> Unit>() | ||
|
||
@FlowPreview | ||
override fun onStartCommand(intent: Intent, flags: Int, startId: Int): Int { | ||
// bindProcessToWiFiNetwork() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This expectedly breaks Internet traffic. Proper fix will come from #22
This breaks support for cameras activated for ver100, so we may not want to merge as is.