expo-module-template 10.13.2 → 10.14.1
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/$.npmignore +3 -0
- package/$package.json +3 -3
- package/android/build.gradle +22 -71
- package/example/metro.config.js +1 -1
- package/package.json +2 -2
package/$.npmignore
CHANGED
package/$package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"prepare": "expo-module prepare",
|
|
13
13
|
"prepublishOnly": "expo-module prepublishOnly",
|
|
14
14
|
"expo-module": "expo-module",
|
|
15
|
-
"open:ios": "
|
|
15
|
+
"open:ios": "xed example/ios",
|
|
16
16
|
"open:android": "open -a \"Android Studio\" example/android"
|
|
17
17
|
},
|
|
18
18
|
"keywords": [
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"dependencies": {},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/react": "^18.0.25",
|
|
34
|
-
"expo-module-scripts": "^3.
|
|
35
|
-
"expo-modules-core": "^1.
|
|
34
|
+
"expo-module-scripts": "^3.5.0",
|
|
35
|
+
"expo-modules-core": "^1.12.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"expo": "*",
|
package/android/build.gradle
CHANGED
|
@@ -1,92 +1,43 @@
|
|
|
1
1
|
apply plugin: 'com.android.library'
|
|
2
|
-
apply plugin: 'kotlin-android'
|
|
3
|
-
apply plugin: 'maven-publish'
|
|
4
2
|
|
|
5
3
|
group = '<%- project.package %>'
|
|
6
4
|
version = '<%- project.version %>'
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
ext.safeExtGet("kotlinVersion", "1.8.10")
|
|
6
|
+
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
7
|
+
apply from: expoModulesCorePlugin
|
|
8
|
+
applyKotlinExpoModulesCorePlugin()
|
|
9
|
+
useCoreDependencies()
|
|
10
|
+
useExpoPublishing()
|
|
11
|
+
|
|
12
|
+
// If you want to use the managed Android SDK versions from expo-modules-core, set this to true.
|
|
13
|
+
// The Android SDK versions will be bumped from time to time in SDK releases and may introduce breaking changes in your module code.
|
|
14
|
+
// Most of the time, you may like to manage the Android SDK versions yourself.
|
|
15
|
+
def useManagedAndroidSdkVersions = false
|
|
16
|
+
if (useManagedAndroidSdkVersions) {
|
|
17
|
+
useDefaultAndroidSdkVersions()
|
|
18
|
+
} else {
|
|
19
|
+
buildscript {
|
|
20
|
+
// Simple helper that allows the root project to override versions declared by this library.
|
|
21
|
+
ext.safeExtGet = { prop, fallback ->
|
|
22
|
+
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
26
23
|
}
|
|
27
24
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
}
|
|
25
|
+
project.android {
|
|
26
|
+
compileSdkVersion safeExtGet("compileSdkVersion", 34)
|
|
27
|
+
defaultConfig {
|
|
28
|
+
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
29
|
+
targetSdkVersion safeExtGet("targetSdkVersion", 34)
|
|
49
30
|
}
|
|
50
31
|
}
|
|
51
32
|
}
|
|
52
33
|
|
|
53
34
|
android {
|
|
54
|
-
compileSdkVersion safeExtGet("compileSdkVersion", 33)
|
|
55
|
-
|
|
56
|
-
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
|
|
57
|
-
if (agpVersion.tokenize('.')[0].toInteger() < 8) {
|
|
58
|
-
compileOptions {
|
|
59
|
-
sourceCompatibility JavaVersion.VERSION_11
|
|
60
|
-
targetCompatibility JavaVersion.VERSION_11
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
kotlinOptions {
|
|
64
|
-
jvmTarget = JavaVersion.VERSION_11.majorVersion
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
35
|
namespace "<%- project.package %>"
|
|
69
36
|
defaultConfig {
|
|
70
|
-
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
71
|
-
targetSdkVersion safeExtGet("targetSdkVersion", 34)
|
|
72
37
|
versionCode 1
|
|
73
38
|
versionName "<%- project.version %>"
|
|
74
39
|
}
|
|
75
40
|
lintOptions {
|
|
76
41
|
abortOnError false
|
|
77
42
|
}
|
|
78
|
-
publishing {
|
|
79
|
-
singleVariant("release") {
|
|
80
|
-
withSourcesJar()
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
repositories {
|
|
86
|
-
mavenCentral()
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
dependencies {
|
|
90
|
-
implementation project(':expo-modules-core')
|
|
91
|
-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
|
|
92
43
|
}
|
package/example/metro.config.js
CHANGED
|
@@ -5,7 +5,7 @@ const path = require('path');
|
|
|
5
5
|
const config = getDefaultConfig(__dirname);
|
|
6
6
|
|
|
7
7
|
// npm v7+ will install ../node_modules/react and ../node_modules/react-native because of peerDependencies.
|
|
8
|
-
// To prevent the incompatible react-native
|
|
8
|
+
// To prevent the incompatible react-native between ./node_modules/react-native and ../node_modules/react-native,
|
|
9
9
|
// excludes the one from the parent folder when bundling.
|
|
10
10
|
config.resolver.blockList = [
|
|
11
11
|
...Array.from(config.resolver.blockList ?? []),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-module-template",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.14.1",
|
|
4
4
|
"description": "ExpoModuleTemplate standalone module",
|
|
5
5
|
"scripts": {},
|
|
6
6
|
"keywords": [
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"dependencies": {},
|
|
23
23
|
"devDependencies": {},
|
|
24
24
|
"peerDependencies": {},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "0897aeadb926491a457bcd67d83360956994ee82"
|
|
26
26
|
}
|