@functionland/react-native-fula 1.33.1 → 1.34.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.
Files changed (2) hide show
  1. package/android/build.gradle +110 -110
  2. package/package.json +1 -1
@@ -1,110 +1,110 @@
1
- buildscript {
2
- repositories {
3
- google()
4
- mavenCentral()
5
- }
6
-
7
- dependencies {
8
- classpath "com.android.tools.build:gradle:7.2.2"
9
- }
10
- }
11
-
12
- def isNewArchitectureEnabled() {
13
- return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
14
- }
15
-
16
- apply plugin: "com.android.library"
17
-
18
-
19
- def appProject = rootProject.allprojects.find { it.plugins.hasPlugin('com.android.application') }
20
-
21
- if (isNewArchitectureEnabled()) {
22
- apply plugin: "com.facebook.react"
23
- }
24
-
25
- def getExtOrDefault(name) {
26
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["Fula_" + name]
27
- }
28
-
29
- def getExtOrIntegerDefault(name) {
30
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["Fula_" + name]).toInteger()
31
- }
32
-
33
- def supportsNamespace() {
34
- def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
35
- def major = parsed[0].toInteger()
36
- def minor = parsed[1].toInteger()
37
-
38
- // Namespace support was added in 7.3.0
39
- if (major == 7 && minor >= 3) {
40
- return true
41
- }
42
-
43
- return major >= 8
44
- }
45
-
46
- android {
47
- if (supportsNamespace()) {
48
- namespace "land.fx.fula"
49
-
50
- sourceSets {
51
- main {
52
- manifest.srcFile "src/main/AndroidManifestNew.xml"
53
- }
54
- }
55
- }
56
-
57
- compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
58
-
59
- defaultConfig {
60
- minSdkVersion getExtOrIntegerDefault("minSdkVersion")
61
- targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
62
- buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
63
- }
64
- buildTypes {
65
- release {
66
- minifyEnabled false
67
- }
68
- }
69
-
70
- lintOptions {
71
- disable "GradleCompatible"
72
- }
73
-
74
- compileOptions {
75
- sourceCompatibility JavaVersion.VERSION_1_8
76
- targetCompatibility JavaVersion.VERSION_1_8
77
- }
78
- ndkVersion '25.1.8937393'
79
- }
80
-
81
- repositories {
82
- mavenLocal()
83
- google()
84
- jcenter()
85
- mavenCentral()
86
-
87
- // Add this repo to get go-fula package
88
- maven { url 'https://jitpack.io' }
89
- }
90
-
91
-
92
- dependencies {
93
- // For < 0.71, this will be from the local maven repo
94
- // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
95
- //noinspection GradleDynamicVersion
96
- implementation "com.facebook.react:react-native:+"
97
- implementation 'com.github.functionland:fula-build-aar:v1.33.0' // From jitpack.io
98
- implementation 'com.github.functionland:wnfs-android:v1.8.1' // From jitpack.io
99
- implementation 'commons-io:commons-io:20030203.000550'
100
- implementation 'commons-codec:commons-codec:1.15'
101
- // implementation files('mobile.aar')
102
- }
103
-
104
- if (isNewArchitectureEnabled()) {
105
- react {
106
- jsRootDir = file("../src/")
107
- libraryName = "Fula"
108
- codegenJavaPackageName = "land.fx.fula"
109
- }
110
- }
1
+ buildscript {
2
+ repositories {
3
+ google()
4
+ mavenCentral()
5
+ }
6
+
7
+ dependencies {
8
+ classpath "com.android.tools.build:gradle:7.2.2"
9
+ }
10
+ }
11
+
12
+ def isNewArchitectureEnabled() {
13
+ return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
14
+ }
15
+
16
+ apply plugin: "com.android.library"
17
+
18
+
19
+ def appProject = rootProject.allprojects.find { it.plugins.hasPlugin('com.android.application') }
20
+
21
+ if (isNewArchitectureEnabled()) {
22
+ apply plugin: "com.facebook.react"
23
+ }
24
+
25
+ def getExtOrDefault(name) {
26
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["Fula_" + name]
27
+ }
28
+
29
+ def getExtOrIntegerDefault(name) {
30
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["Fula_" + name]).toInteger()
31
+ }
32
+
33
+ def supportsNamespace() {
34
+ def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
35
+ def major = parsed[0].toInteger()
36
+ def minor = parsed[1].toInteger()
37
+
38
+ // Namespace support was added in 7.3.0
39
+ if (major == 7 && minor >= 3) {
40
+ return true
41
+ }
42
+
43
+ return major >= 8
44
+ }
45
+
46
+ android {
47
+ if (supportsNamespace()) {
48
+ namespace "land.fx.fula"
49
+
50
+ sourceSets {
51
+ main {
52
+ manifest.srcFile "src/main/AndroidManifestNew.xml"
53
+ }
54
+ }
55
+ }
56
+
57
+ compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
58
+
59
+ defaultConfig {
60
+ minSdkVersion getExtOrIntegerDefault("minSdkVersion")
61
+ targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
62
+ buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
63
+ }
64
+ buildTypes {
65
+ release {
66
+ minifyEnabled false
67
+ }
68
+ }
69
+
70
+ lintOptions {
71
+ disable "GradleCompatible"
72
+ }
73
+
74
+ compileOptions {
75
+ sourceCompatibility JavaVersion.VERSION_1_8
76
+ targetCompatibility JavaVersion.VERSION_1_8
77
+ }
78
+ ndkVersion '25.1.8937393'
79
+ }
80
+
81
+ repositories {
82
+ mavenLocal()
83
+ google()
84
+ jcenter()
85
+ mavenCentral()
86
+
87
+ // Add this repo to get go-fula package
88
+ maven { url 'https://jitpack.io' }
89
+ }
90
+
91
+
92
+ dependencies {
93
+ // For < 0.71, this will be from the local maven repo
94
+ // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
95
+ //noinspection GradleDynamicVersion
96
+ implementation "com.facebook.react:react-native:+"
97
+ implementation 'com.github.functionland:fula-build-aar:v1.34.0' // From jitpack.io
98
+ implementation 'com.github.functionland:wnfs-android:v1.8.1' // From jitpack.io
99
+ implementation 'commons-io:commons-io:20030203.000550'
100
+ implementation 'commons-codec:commons-codec:1.15'
101
+ // implementation files('mobile.aar')
102
+ }
103
+
104
+ if (isNewArchitectureEnabled()) {
105
+ react {
106
+ jsRootDir = file("../src/")
107
+ libraryName = "Fula"
108
+ codegenJavaPackageName = "land.fx.fula"
109
+ }
110
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionland/react-native-fula",
3
- "version": "1.33.1",
3
+ "version": "1.34.0",
4
4
  "description": "This package is a bridge to use the Fula libp2p protocols in the react-native which is using wnfs",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",