Skip to content

Commit

Permalink
Update AGP
Browse files Browse the repository at this point in the history
  • Loading branch information
vvb2060 committed Sep 15, 2023
1 parent 2dba143 commit 5ce368b
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 15 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

curl tool and libcurl static library prefab for android.

Supports SSL, powered by [BoringSSL](https://github.com/vvb2060/BoringSSL_Android).
Supports TLS, powered by [BoringSSL](https://github.com/vvb2060/BoringSSL_Android).

Supports HTTP/2, powered by [nghttp2](https://github.com/nghttp2/nghttp2).

Supports HTTP/3, powered by BoringSSL backend [ngtcp2](https://github.com/ngtcp2/ngtcp2) and [nghttp3](https://github.com/ngtcp2/nghttp3).

No other protocols supported.

By default, use system built-in CA certificate store, and use system built-in DNS.


Expand All @@ -20,7 +18,7 @@ If you only want to use curl tool, unzip apk, extract `libcurl.so` and rename it
Gradle:

```gradle
implementation 'io.github.vvb2060.ndk:curl:8.2.1'
implementation 'io.github.vvb2060.ndk:curl:8.3.0'
```

This library is [Prefab](https://google.github.io/prefab/), so you will need to enable it in your project (Android Gradle Plugin 4.1+):
Expand Down Expand Up @@ -73,6 +71,12 @@ target_link_libraries(app curl::curl_static)

## Version

### 8.3.0
- curl 8.3.0
- nghttp2 1.56.0
- nghttp3 0.15.0
- ngtcp2 0.19.1

### 8.2.1
- curl 8.2.1
- nghttp2 1.55.1
Expand Down
6 changes: 3 additions & 3 deletions curl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ plugins {
android {
compileSdk = 34
buildToolsVersion = "34.0.0"
ndkVersion = "25.2.9519653"
ndkVersion = "26.0.10636728"
namespace = "io.github.vvb2060.ndk.curl"
defaultConfig {
minSdk = 19
minSdk = 21
targetSdk = 34
externalNativeBuild {
ndkBuild {
Expand Down Expand Up @@ -74,7 +74,7 @@ publishing {
mavenJava(MavenPublication) {
group = "io.github.vvb2060.ndk"
artifactId = "curl"
version = "8.2.1"
version = "8.3.0"
afterEvaluate {
from(components.release)
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
android.useAndroidX=true
android.nonTransitiveRClass=true
android.nonFinalResIds=false
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
3 changes: 2 additions & 1 deletion gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ done
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down
6 changes: 3 additions & 3 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ pluginManagement {
mavenCentral()
}
plugins {
id("com.android.application") version "8.1.0"
id("com.android.library") version "8.1.0"
id("org.jetbrains.kotlin.android") version "1.9.0"
id("com.android.application") version "8.1.1"
id("com.android.library") version "8.1.1"
id("org.jetbrains.kotlin.android") version "1.9.10"
}
}
dependencyResolutionManagement {
Expand Down
4 changes: 2 additions & 2 deletions tool/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ plugins {
android {
compileSdk = 34
buildToolsVersion = "34.0.0"
ndkVersion = "25.2.9519653"
ndkVersion = "26.0.10636728"
namespace = "io.github.vvb2060.ndk.curl"
defaultConfig {
applicationId = "io.github.vvb2060.ndk.curl"
minSdk = 19
minSdk = 21
targetSdk = 34
versionCode = 1
versionName = "1.0"
Expand Down

0 comments on commit 5ce368b

Please sign in to comment.