expo-module-template 10.13.1 → 10.14.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/$.npmignore CHANGED
@@ -1,6 +1,9 @@
1
1
  # Exclude all top-level hidden directories by convention
2
2
  /.*/
3
3
 
4
+ # Exclude tarballs generated by `npm pack`
5
+ /*.tgz
6
+
4
7
  __mocks__
5
8
  __tests__
6
9
 
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": "open -a \"Xcode\" example/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.4.1",
35
- "expo-modules-core": "^1.11.10"
34
+ "expo-module-scripts": "^3.5.0",
35
+ "expo-modules-core": "^1.12.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "expo": "*",
@@ -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
- buildscript {
9
- def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
10
- if (expoModulesCorePlugin.exists()) {
11
- apply from: expoModulesCorePlugin
12
- applyKotlinExpoModulesCorePlugin()
13
- }
14
-
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")
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
- 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
- }
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
  }
@@ -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 bewtween ./node_modules/react-native and ../node_modules/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.13.1",
3
+ "version": "10.14.0",
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": "df3c6bd5050c474cd998f5cf8add4bc087b69d68"
25
+ "gitHead": "4165b8d72e1b9a1889c2767534cc619e21468110"
26
26
  }