facia-mobilesdk 0.4.8 → 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 -0
- package/android/build.gradle +14 -42
- package/facia-mobilesdk.podspec +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
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,17 +13,13 @@ 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()
|
|
33
20
|
}
|
|
34
21
|
dependencies {
|
|
35
|
-
classpath 'com.android.tools.build:gradle:
|
|
22
|
+
classpath 'com.android.tools.build:gradle:4.1.3'
|
|
36
23
|
}
|
|
37
24
|
}
|
|
38
25
|
}
|
|
@@ -51,19 +38,18 @@ android {
|
|
|
51
38
|
lintOptions {
|
|
52
39
|
abortOnError false
|
|
53
40
|
}
|
|
41
|
+
buildFeatures {
|
|
42
|
+
viewBinding true
|
|
43
|
+
}
|
|
54
44
|
}
|
|
55
45
|
|
|
56
46
|
repositories {
|
|
57
|
-
// ref: https://www.baeldung.com/maven-local-repository
|
|
58
|
-
// mavenLocal()
|
|
59
47
|
|
|
60
48
|
maven { url 'https://jitpack.io' }
|
|
61
49
|
maven {
|
|
62
|
-
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
63
50
|
url "$rootDir/../node_modules/react-native/android"
|
|
64
51
|
}
|
|
65
52
|
maven {
|
|
66
|
-
// Android JSC is installed from npm
|
|
67
53
|
url "$rootDir/../node_modules/jsc-android/dist"
|
|
68
54
|
}
|
|
69
55
|
google()
|
|
@@ -71,9 +57,8 @@ repositories {
|
|
|
71
57
|
}
|
|
72
58
|
|
|
73
59
|
dependencies {
|
|
74
|
-
//noinspection GradleDynamicVersion
|
|
75
60
|
implementation 'com.facebook.react:react-native:+'
|
|
76
|
-
implementation 'com.github.FaciaMobile:android-core:
|
|
61
|
+
implementation 'com.github.FaciaMobile:android-core:3.0.1' // From node_modules
|
|
77
62
|
}
|
|
78
63
|
|
|
79
64
|
def configureReactNativePom(def pom) {
|
|
@@ -83,8 +68,6 @@ def configureReactNativePom(def pom) {
|
|
|
83
68
|
}
|
|
84
69
|
|
|
85
70
|
afterEvaluate { project ->
|
|
86
|
-
// some Gradle build hooks ref:
|
|
87
|
-
// https://www.oreilly.com/library/view/gradle-beyond-the/9781449373801/ch03.html
|
|
88
71
|
task androidJavadoc(type: Javadoc) {
|
|
89
72
|
source = android.sourceSets.main.java.srcDirs
|
|
90
73
|
classpath += files(android.bootClasspath)
|
|
@@ -92,26 +75,15 @@ afterEvaluate { project ->
|
|
|
92
75
|
}
|
|
93
76
|
|
|
94
77
|
task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
task androidSourcesJar(type: Jar) {
|
|
100
|
-
archiveClassifier.set('sources')
|
|
101
|
-
from android.sourceSets.main.java.srcDirs
|
|
102
|
-
include '**/*.java'
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) {
|
|
106
|
-
// classifier = 'javadoc'
|
|
107
|
-
// from androidJavadoc.destinationDir
|
|
108
|
-
// }
|
|
78
|
+
archiveClassifier = 'javadoc'
|
|
79
|
+
from androidJavadoc.destinationDir
|
|
80
|
+
}
|
|
109
81
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
82
|
+
task androidSourcesJar(type: Jar) {
|
|
83
|
+
archiveClassifier = 'sources'
|
|
84
|
+
from android.sourceSets.main.java.srcDirs
|
|
85
|
+
include '**/*.java'
|
|
86
|
+
}
|
|
115
87
|
|
|
116
88
|
android.libraryVariants.all { variant ->
|
|
117
89
|
def name = variant.name.capitalize()
|
package/facia-mobilesdk.podspec
CHANGED