Skip to content

Commit

Permalink
Release Teacher 1.15.0 (44)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamaskozmer authored Dec 7, 2021
2 parents c69957d + 50f4c34 commit df31076
Show file tree
Hide file tree
Showing 332 changed files with 23,585 additions and 1,828 deletions.
2 changes: 1 addition & 1 deletion android-vault
2 changes: 1 addition & 1 deletion apps/flutter_parent/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ dependencies {

androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation "com.squareup.okhttp3:okhttp:3.13.1"
implementation "com.squareup.okhttp3:okhttp:4.9.1"
implementation 'org.jsoup:jsoup:1.11.3'
implementation 'com.google.gms:google-services:4.3.3'
}
Expand Down
6 changes: 4 additions & 2 deletions apps/flutter_parent/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.CAMERA" android:required="false"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="29"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> <!-- For notifications plugin -->

<application
android:label="Canvas Parent"
android:icon="@mipmap/ic_launcher"
android:allowBackup="false"
android:fullBackupContent="false">
android:fullBackupContent="false"
android:requestLegacyExternalStorage="true">
android:usesCleartextTraffic="true"

<meta-data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import okhttp3.HttpUrl
import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
import org.jsoup.Connection
import org.jsoup.Jsoup
import org.jsoup.nodes.FormElement
Expand Down Expand Up @@ -62,7 +63,7 @@ object DataSeedingPlugin {
val authFormResponse = loginForm.submit().cookies(loginPageResponse.cookies()).execute()
val authForm = authFormResponse.parse().select("form").first() as FormElement
val responseUrl = authForm.submit().cookies(authFormResponse.cookies()).execute().url().toString()
authCode = HttpUrl.parse(responseUrl)?.queryParameter("code")
authCode = responseUrl?.toHttpUrlOrNull()?.queryParameter("code")
?: throw RuntimeException("/login/oauth2/auth failed!")

return null
Expand Down
Loading

0 comments on commit df31076

Please sign in to comment.