expo-dev-client 3.1.1 → 3.3.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/CHANGELOG.md CHANGED
@@ -10,6 +10,22 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 3.3.0 — 2023-11-14
14
+
15
+ ### 🛠 Breaking changes
16
+
17
+ - On `Android` bump `compileSdkVersion` and `targetSdkVersion` to `34`. ([#24708](https://github.com/expo/expo/pull/24708) by [@alanjhughes](https://github.com/alanjhughes))
18
+
19
+ ## 3.2.0 — 2023-10-17
20
+
21
+ ### 🛠 Breaking changes
22
+
23
+ - Dropped support for Android SDK 21 and 22. ([#24201](https://github.com/expo/expo/pull/24201) by [@behenate](https://github.com/behenate))
24
+
25
+ ## 2.4.11 — 2023-09-25
26
+
27
+ _This version does not introduce any user-facing changes._
28
+
13
29
  ## 3.1.1 — 2023-09-18
14
30
 
15
31
  _This version does not introduce any user-facing changes._
@@ -2,13 +2,13 @@ apply plugin: 'com.android.library'
2
2
  apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
- buildscript {
6
- def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
7
- if (expoModulesCorePlugin.exists()) {
8
- apply from: expoModulesCorePlugin
9
- applyKotlinExpoModulesCorePlugin()
10
- }
5
+ def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
6
+ if (expoModulesCorePlugin.exists()) {
7
+ apply from: expoModulesCorePlugin
8
+ applyKotlinExpoModulesCorePlugin()
9
+ }
11
10
 
11
+ buildscript {
12
12
  // Simple helper that allows the root project to override versions declared by this library.
13
13
  ext.safeExtGet = { prop, fallback ->
14
14
  rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
@@ -33,19 +33,29 @@ buildscript {
33
33
  }
34
34
 
35
35
  android {
36
- compileSdkVersion safeExtGet("compileSdkVersion", 33)
36
+ // Remove this if and it's contents, when support for SDK49 is dropped
37
+ if (!safeExtGet("expoProvidesDefaultConfig", false)) {
38
+ compileSdkVersion safeExtGet("compileSdkVersion", 34)
39
+
40
+ defaultConfig {
41
+ minSdkVersion safeExtGet("minSdkVersion", 23)
42
+ targetSdkVersion safeExtGet("targetSdkVersion", 34)
43
+ }
44
+
45
+ lintOptions {
46
+ abortOnError false
47
+ }
48
+ }
37
49
  namespace "expo.modules.devclient"
38
50
  defaultConfig {
39
51
  minSdkVersion safeExtGet('minSdkVersion', 21)
40
- targetSdkVersion safeExtGet("targetSdkVersion", 33)
52
+ targetSdkVersion safeExtGet("targetSdkVersion", 34)
41
53
  versionCode 1
42
- versionName "3.1.1"
54
+ versionName "3.3.0"
43
55
 
44
56
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
45
57
  }
46
- lintOptions {
47
- abortOnError false
48
- }
58
+
49
59
  def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
50
60
  if (agpVersion.tokenize('.')[0].toInteger() < 8) {
51
61
  compileOptions {
@@ -79,6 +89,7 @@ android {
79
89
  buildConfig true
80
90
  viewBinding true
81
91
  }
92
+
82
93
  publishing {
83
94
  singleVariant("release") {
84
95
  withSourcesJar()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-dev-client",
3
- "version": "3.1.1",
3
+ "version": "3.3.0",
4
4
  "description": "Expo Development Client",
5
5
  "main": "build/DevClient.js",
6
6
  "types": "build/DevClient.d.ts",
@@ -32,15 +32,15 @@
32
32
  "license": "MIT",
33
33
  "homepage": "https://docs.expo.dev/clients/introduction/",
34
34
  "dependencies": {
35
- "expo-dev-launcher": "3.2.1",
36
- "expo-dev-menu": "4.2.1",
37
- "expo-dev-menu-interface": "1.4.0",
38
- "expo-manifests": "~0.10.0",
39
- "expo-updates-interface": "~0.13.0"
35
+ "expo-dev-launcher": "3.4.0",
36
+ "expo-dev-menu": "4.4.0",
37
+ "expo-dev-menu-interface": "1.6.0",
38
+ "expo-manifests": "~0.12.0",
39
+ "expo-updates-interface": "~0.15.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "expo-module-scripts": "^3.0.0",
43
- "expo-test-runner": "0.0.17"
43
+ "expo-test-runner": "0.0.18"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "expo": "*"
@@ -48,5 +48,5 @@
48
48
  "jest": {
49
49
  "preset": "expo-module-scripts"
50
50
  },
51
- "gitHead": "62f76105dfb436f7144440d6e6077d4ff3263842"
51
+ "gitHead": "3142a086578deffd8704a8f1b6f0f661527d836c"
52
52
  }
@@ -1,2 +1,3 @@
1
- declare const _default: import("@expo/config-plugins").ConfigPlugin<unknown>;
1
+ import type { PluginConfigType } from 'expo-dev-launcher/plugin/build/pluginConfig';
2
+ declare const _default: import("@expo/config-plugins").ConfigPlugin<PluginConfigType>;
2
3
  export default _default;
@@ -11,9 +11,9 @@ const app_plugin_2 = __importDefault(require("expo-dev-menu/app.plugin"));
11
11
  const withGeneratedAndroidScheme_1 = require("./withGeneratedAndroidScheme");
12
12
  const withGeneratedIosScheme_1 = require("./withGeneratedIosScheme");
13
13
  const pkg = require('expo-dev-client/package.json');
14
- function withDevClient(config) {
14
+ function withDevClient(config, props) {
15
15
  config = (0, app_plugin_2.default)(config);
16
- config = (0, app_plugin_1.default)(config);
16
+ config = (0, app_plugin_1.default)(config, props);
17
17
  config = (0, withGeneratedAndroidScheme_1.withGeneratedAndroidScheme)(config);
18
18
  config = (0, withGeneratedIosScheme_1.withGeneratedIosScheme)(config);
19
19
  return config;
@@ -2,6 +2,7 @@ import { createRunOncePlugin } from '@expo/config-plugins';
2
2
  import { ExpoConfig } from 'expo/config';
3
3
  // @ts-expect-error missing types
4
4
  import withDevLauncher from 'expo-dev-launcher/app.plugin';
5
+ import type { PluginConfigType } from 'expo-dev-launcher/plugin/build/pluginConfig';
5
6
  // @ts-expect-error missing types
6
7
  import withDevMenu from 'expo-dev-menu/app.plugin';
7
8
 
@@ -10,12 +11,12 @@ import { withGeneratedIosScheme } from './withGeneratedIosScheme';
10
11
 
11
12
  const pkg = require('expo-dev-client/package.json');
12
13
 
13
- function withDevClient(config: ExpoConfig) {
14
+ function withDevClient(config: ExpoConfig, props: PluginConfigType) {
14
15
  config = withDevMenu(config);
15
- config = withDevLauncher(config);
16
+ config = withDevLauncher(config, props);
16
17
  config = withGeneratedAndroidScheme(config);
17
18
  config = withGeneratedIosScheme(config);
18
19
  return config;
19
20
  }
20
21
 
21
- export default createRunOncePlugin(withDevClient, pkg.name, pkg.version);
22
+ export default createRunOncePlugin<PluginConfigType>(withDevClient, pkg.name, pkg.version);