-
Notifications
You must be signed in to change notification settings - Fork 416
chore(ok_http): migrate to jni 1.0.0 #1943
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
Open
EchoEllet
wants to merge
6
commits into
dart-lang:master
Choose a base branch
from
EchoEllet:chore/update-jni
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+17,609
−23,245
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
fde8b06
chore(ok_http): update example Gradle and Android Gradle plugin
EchoEllet 83505a8
chore: update jni and jnigen, and add jni_flutter
EchoEllet cf0efb8
chore(ok_http): migrate to jni 1.0.0
EchoEllet f2130a6
chore(ok_http): regenerate jni bindings with jni 1.0.0
EchoEllet ba2ac6a
docs(ok_http): update CHANGELOG to reflect the changes
EchoEllet c7cbc7a
fix(ok_http): android release mode crash https://github.com/dart-lang…
EchoEllet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -57,6 +57,7 @@ android { | |
|
|
||
| defaultConfig { | ||
| minSdk = 24 | ||
| consumerProguardFiles("proguard.txt") | ||
| } | ||
| } | ||
|
|
||
|
|
||
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # IMPORTANT: Keep this file in sync with the OkHttp classes | ||
| # declared in jnigen.yaml. JNI loads these classes by name, | ||
| # so they must not be removed in Android release builds. | ||
|
|
||
| -keep class okhttp3.Request** { *; } | ||
| -keep class okhttp3.RequestBody { *; } | ||
| -keep class okhttp3.Response { *; } | ||
| -keep class okhttp3.ResponseBody { *; } | ||
| -keep class okhttp3.OkHttpClient** { *; } | ||
| -keep class okhttp3.Call { *; } | ||
| -keep class okhttp3.Headers { *; } | ||
| -keep class okhttp3.Callback { *; } | ||
| -keep class okhttp3.ConnectionPool { *; } | ||
| -keep class okhttp3.Dispatcher { *; } | ||
| -keep class okhttp3.Cache { *; } | ||
| -keep class okhttp3.WebSocket { *; } | ||
|
|
||
| -keep class okio.ByteString { *; } | ||
|
|
||
| -keep class com.example.ok_http.RedirectReceivedCallback { *; } | ||
| -keep class com.example.ok_http.AsyncInputStreamReader { *; } | ||
| -keep class com.example.ok_http.DataCallback { *; } | ||
| -keep class com.example.ok_http.WebSocketInterceptor** { *; } | ||
| -keep class com.example.ok_http.WebSocketListenerProxy** { *; } | ||
| -keep class com.example.ok_http.FixedResponseX509ExtendedKeyManager { *; } | ||
|
|
||
| -keepclassmembers class com.example.ok_http.RedirectInterceptor { | ||
| public static com.example.ok_http.RedirectInterceptor$Companion Companion; | ||
| } | ||
|
|
||
| -keepclassmembers class com.example.ok_http.WebSocketInterceptor { | ||
| public static com.example.ok_http.WebSocketInterceptor$Companion Companion; | ||
| } | ||
|
|
||
| -keep class com.example.ok_http.RedirectInterceptor** { *; } |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -11,3 +11,5 @@ GeneratedPluginRegistrant.java | |
| key.properties | ||
| **/*.keystore | ||
| **/*.jks | ||
|
|
||
| .kotlin | ||
This file contains hidden or 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 hidden or 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,3 +1,7 @@ | ||
| org.gradle.jvmargs=-Xmx4G -XX:+HeapDumpOnOutOfMemoryError | ||
| android.useAndroidX=true | ||
| android.enableJetifier=true | ||
| # This builtInKotlin flag was added automatically by Flutter migrator | ||
| android.builtInKotlin=false | ||
| # This newDsl flag was added automatically by Flutter migrator | ||
| android.newDsl=false |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.