Cronet binary files are from Cronet Google Cloud Platform
You can find the last cronet version numbert here:ChromiumDash
Get it from Jitpack
110 version is broken and 111 version need add
implementation 'com.google.protobuf:protobuf-javalite:3.21.12'
maven { url 'https://jitpack.io' }
dependencies {
//All in once
implementation('com.github.ag2s20150909:cronet-repo:108.0.5359.128') { exclude(group: "org.chromium.net") }
//or implementation you need
implementation('com.github.ag2s20150909.cronet-repo:core:108.0.5359.128') { exclude(group: "org.chromium.net") }
implementation 'com.github.ag2s20150909.cronet-repo:okhttp:108.0.5359.128'
implementation 'com.github.ag2s20150909.cronet-repo:okhttp-kt:108.0.5359.128'
implementation 'com.github.ag2s20150909.cronet-repo:glide:108.0.5359.128'
}
Get it from Github Action
maven { url "https://raw.githubusercontent.com/ag2s20150909/cronet-repo/Stable/repo/" }
maven { url 'https://raw.fastgit.org/ag2s20150909/cronet-repo/Stable/repo/' }
maven { url "https://cdn.staticaly.com/gh/ag2s20150909/cronet-repo/Stable/repo/" }
def cronet_version = "stable-SNAPSHOT"
implementation("me.ag2s.cronet:core:$cronet_version")
implementation("me.ag2s.cronet:okhttp:$cronet_version")
implementation("me.ag2s.cronet:okhttp-kt:$cronet_version")
implementation("me.ag2s.cronet:glide:$cronet_version")
Show more branches
maven { url "https://raw.githubusercontent.com/ag2s20150909/cronet-repo/Beta/repo/" }
maven { url 'https://raw.fastgit.org/ag2s20150909/cronet-repo/Beta/repo/' }
maven { url "https://cdn.staticaly.com/gh/ag2s20150909/cronet-repo/Beta/repo/" }
def cronet_version = "beta-SNAPSHOT"
implementation("me.ag2s.cronet:core:$cronet_version")
implementation("me.ag2s.cronet:okhttp:$cronet_version")
implementation("me.ag2s.cronet:okhttp-kt:$cronet_version")
implementation("me.ag2s.cronet:glide:$cronet_version")
maven { url "https://raw.githubusercontent.com/ag2s20150909/cronet-repo/Dev/repo/" }
maven { url 'https://raw.fastgit.org/ag2s20150909/cronet-repo/Dev/repo/' }
maven { url "https://cdn.staticaly.com/gh/ag2s20150909/cronet-repo/Dev/repo/" }
def cronet_version = "dev-SNAPSHOT"
implementation("me.ag2s.cronet:core:$cronet_version")
implementation("me.ag2s.cronet:okhttp:$cronet_version")
implementation("me.ag2s.cronet:okhttp-kt:$cronet_version")
implementation("me.ag2s.cronet:glide:$cronet_version")
maven { url "https://raw.githubusercontent.com/ag2s20150909/cronet-repo/Canary/repo/" }
maven { url 'https://raw.fastgit.org/ag2s20150909/cronet-repo/Canary/repo/' }
maven { url "https://cdn.staticaly.com/gh/ag2s20150909/cronet-repo/Canary/repo/" }
def cronet_version = "canary-SNAPSHOT"
implementation("me.ag2s.cronet:core:$cronet_version")
implementation("me.ag2s.cronet:okhttp:$cronet_version")
implementation("me.ag2s.cronet:okhttp-kt:$cronet_version")
implementation("me.ag2s.cronet:glide:$cronet_version")
val cronetEngine: CronetEngine by lazy {
val builder = MyCronetEngine.Builder(appCtx).apply {
....
}
builder.build().also {
//For Glide
CronetHolder.setEngine(it)
}
}
git clone https://github.com/ag2s20150909/cronet-repo.git
you can edit /cronet-repo/gradle.properties
gradlew cronetlib:downloadCronet
gradlew cronetlib:assemble
install python3
If your python dont have pip,install pip.
python -m ensurepip
Install gsutil from PyPI
pip install gsutil
For more infromation see Gsuti Docs