expo-network-addons 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/build.gradle
CHANGED
|
@@ -1,103 +1,25 @@
|
|
|
1
1
|
apply plugin: 'com.android.library'
|
|
2
|
-
apply plugin: 'kotlin-android'
|
|
3
|
-
apply plugin: 'maven-publish'
|
|
4
2
|
|
|
5
3
|
group = 'expo.modules.networkaddons'
|
|
6
|
-
version = '0.
|
|
4
|
+
version = '0.6.0'
|
|
7
5
|
|
|
8
6
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
buildscript {
|
|
15
|
-
// Simple helper that allows the root project to override versions declared by this library.
|
|
16
|
-
ext.safeExtGet = { prop, fallback ->
|
|
17
|
-
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// Ensures backward compatibility
|
|
21
|
-
ext.getKotlinVersion = {
|
|
22
|
-
if (ext.has("kotlinVersion")) {
|
|
23
|
-
ext.kotlinVersion()
|
|
24
|
-
} else {
|
|
25
|
-
ext.safeExtGet("kotlinVersion", "1.8.10")
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
repositories {
|
|
30
|
-
mavenCentral()
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
dependencies {
|
|
34
|
-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${getKotlinVersion()}")
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
afterEvaluate {
|
|
39
|
-
publishing {
|
|
40
|
-
publications {
|
|
41
|
-
release(MavenPublication) {
|
|
42
|
-
from components.release
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
repositories {
|
|
46
|
-
maven {
|
|
47
|
-
url = mavenLocal().url
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
7
|
+
apply from: expoModulesCorePlugin
|
|
8
|
+
applyKotlinExpoModulesCorePlugin()
|
|
9
|
+
useCoreDependencies()
|
|
10
|
+
useDefaultAndroidSdkVersions()
|
|
11
|
+
useExpoPublishing()
|
|
52
12
|
|
|
53
13
|
android {
|
|
54
|
-
// Remove this if and it's contents, when support for SDK49 is dropped
|
|
55
|
-
if (!safeExtGet("expoProvidesDefaultConfig", false)) {
|
|
56
|
-
compileSdkVersion safeExtGet("compileSdkVersion", 34)
|
|
57
|
-
|
|
58
|
-
defaultConfig {
|
|
59
|
-
minSdkVersion safeExtGet("minSdkVersion", 23)
|
|
60
|
-
targetSdkVersion safeExtGet("targetSdkVersion", 34)
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
lintOptions {
|
|
64
|
-
abortOnError false
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
|
|
69
|
-
if (agpVersion.tokenize('.')[0].toInteger() < 8) {
|
|
70
|
-
compileOptions {
|
|
71
|
-
sourceCompatibility JavaVersion.VERSION_11
|
|
72
|
-
targetCompatibility JavaVersion.VERSION_11
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
kotlinOptions {
|
|
76
|
-
jvmTarget = JavaVersion.VERSION_11.majorVersion
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
14
|
namespace "expo.modules.networkaddons"
|
|
81
15
|
defaultConfig {
|
|
82
16
|
versionCode 1
|
|
83
|
-
versionName "0.
|
|
17
|
+
versionName "0.6.0"
|
|
84
18
|
consumerProguardFiles("proguard-rules.pro")
|
|
85
19
|
}
|
|
86
|
-
publishing {
|
|
87
|
-
singleVariant("release") {
|
|
88
|
-
withSourcesJar()
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
repositories {
|
|
94
|
-
mavenCentral()
|
|
95
20
|
}
|
|
96
21
|
|
|
97
22
|
dependencies {
|
|
98
|
-
implementation project(':expo-modules-core')
|
|
99
23
|
implementation("com.squareup.okhttp3:okhttp:4.9.2")
|
|
100
24
|
implementation("com.squareup.okhttp3:okhttp-brotli:4.9.2")
|
|
101
|
-
|
|
102
|
-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
|
|
103
25
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
2
2
|
|
|
3
3
|
plugins {
|
|
4
|
-
kotlin("jvm") version "1.
|
|
4
|
+
kotlin("jvm") version "1.9.23"
|
|
5
5
|
id("java-gradle-plugin")
|
|
6
6
|
}
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ repositories {
|
|
|
12
12
|
|
|
13
13
|
dependencies {
|
|
14
14
|
implementation(gradleApi())
|
|
15
|
-
|
|
15
|
+
compileOnly("com.android.tools.build:gradle:8.2.1")
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
java {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-network-addons",
|
|
3
3
|
"title": "Expo Networking Addons",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
5
5
|
"description": "Expo module that provides extra functionalities for networking",
|
|
6
6
|
"main": "build/index.js",
|
|
7
7
|
"types": "build/index.d.ts",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"expo": "*"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "4165b8d72e1b9a1889c2767534cc619e21468110"
|
|
43
43
|
}
|