facia-mobilesdk 0.4.9 → 0.5.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/README.md +1 -1
- package/android/build.gradle +3 -23
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
# Welcome to Facia React Natice Plugin
|
|
2
2
|
|
|
3
|
-
Please note that this is the core plugin for React Native. For the comprehensive integration guide, please visit **[React Native Integration Guide](https://developers.facia.ai/mobile/sdks/platforms/react-sdk)**
|
|
3
|
+
Please note that this is the core plugin for React Native. For the comprehensive integration guide, please visit **[React Native Integration Guide](https://developers.facia.ai/mobile/sdks/platforms/react-sdk)**
|
package/android/build.gradle
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
// android/build.gradle
|
|
2
2
|
|
|
3
|
-
// based on:
|
|
4
|
-
//
|
|
5
|
-
// * https://github.com/facebook/react-native/blob/0.60-stable/template/android/build.gradle
|
|
6
|
-
// original location:
|
|
7
|
-
// - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/build.gradle
|
|
8
|
-
//
|
|
9
|
-
// * https://github.com/facebook/react-native/blob/0.60-stable/template/android/app/build.gradle
|
|
10
|
-
// original location:
|
|
11
|
-
// - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/app/build.gradle
|
|
12
3
|
|
|
13
4
|
def DEFAULT_COMPILE_SDK_VERSION = 33
|
|
14
5
|
def DEFAULT_MIN_SDK_VERSION = 23
|
|
@@ -22,11 +13,7 @@ apply plugin: 'com.android.library'
|
|
|
22
13
|
apply plugin: 'maven-publish'
|
|
23
14
|
|
|
24
15
|
buildscript {
|
|
25
|
-
|
|
26
|
-
// This avoids unnecessary downloads and potential conflicts when the library is included as a
|
|
27
|
-
// module dependency in an application project.
|
|
28
|
-
// ref: https://docs.gradle.org/current/userguide/tutorial_using_tasks.html#sec:build_script_external_dependencies
|
|
29
|
-
if (project == rootProject) {
|
|
16
|
+
if (project == rootProject) {
|
|
30
17
|
repositories {
|
|
31
18
|
google()
|
|
32
19
|
mavenCentral()
|
|
@@ -57,16 +44,12 @@ android {
|
|
|
57
44
|
}
|
|
58
45
|
|
|
59
46
|
repositories {
|
|
60
|
-
// ref: https://www.baeldung.com/maven-local-repository
|
|
61
|
-
// mavenLocal()
|
|
62
47
|
|
|
63
48
|
maven { url 'https://jitpack.io' }
|
|
64
49
|
maven {
|
|
65
|
-
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
66
50
|
url "$rootDir/../node_modules/react-native/android"
|
|
67
51
|
}
|
|
68
52
|
maven {
|
|
69
|
-
// Android JSC is installed from npm
|
|
70
53
|
url "$rootDir/../node_modules/jsc-android/dist"
|
|
71
54
|
}
|
|
72
55
|
google()
|
|
@@ -74,7 +57,6 @@ repositories {
|
|
|
74
57
|
}
|
|
75
58
|
|
|
76
59
|
dependencies {
|
|
77
|
-
//noinspection GradleDynamicVersion
|
|
78
60
|
implementation 'com.facebook.react:react-native:+'
|
|
79
61
|
implementation 'com.github.FaciaMobile:android-core:3.0.1' // From node_modules
|
|
80
62
|
}
|
|
@@ -86,8 +68,6 @@ def configureReactNativePom(def pom) {
|
|
|
86
68
|
}
|
|
87
69
|
|
|
88
70
|
afterEvaluate { project ->
|
|
89
|
-
// some Gradle build hooks ref:
|
|
90
|
-
// https://www.oreilly.com/library/view/gradle-beyond-the/9781449373801/ch03.html
|
|
91
71
|
task androidJavadoc(type: Javadoc) {
|
|
92
72
|
source = android.sourceSets.main.java.srcDirs
|
|
93
73
|
classpath += files(android.bootClasspath)
|
|
@@ -95,12 +75,12 @@ afterEvaluate { project ->
|
|
|
95
75
|
}
|
|
96
76
|
|
|
97
77
|
task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) {
|
|
98
|
-
|
|
78
|
+
archiveClassifier = 'javadoc'
|
|
99
79
|
from androidJavadoc.destinationDir
|
|
100
80
|
}
|
|
101
81
|
|
|
102
82
|
task androidSourcesJar(type: Jar) {
|
|
103
|
-
|
|
83
|
+
archiveClassifier = 'sources'
|
|
104
84
|
from android.sourceSets.main.java.srcDirs
|
|
105
85
|
include '**/*.java'
|
|
106
86
|
}
|