expo-dev-menu-interface 1.3.0 → 1.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.
@@ -3,15 +3,15 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '1.3.0'
6
+ version = '1.5.0'
7
7
 
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
- }
8
+ def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
9
+ if (expoModulesCorePlugin.exists()) {
10
+ apply from: expoModulesCorePlugin
11
+ applyKotlinExpoModulesCorePlugin()
12
+ }
14
13
 
14
+ buildscript {
15
15
  // Simple helper that allows the root project to override versions declared by this library.
16
16
  ext.safeExtGet = { prop, fallback ->
17
17
  rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
@@ -51,26 +51,36 @@ afterEvaluate {
51
51
  }
52
52
 
53
53
  android {
54
- compileSdkVersion safeExtGet("compileSdkVersion", 33)
54
+ // Remove this if and it's contents, when support for SDK49 is dropped
55
+ if (!safeExtGet("expoProvidesDefaultConfig", false)) {
56
+ compileSdkVersion safeExtGet("compileSdkVersion", 33)
57
+
58
+ defaultConfig {
59
+ minSdkVersion safeExtGet("minSdkVersion", 23)
60
+ targetSdkVersion safeExtGet("targetSdkVersion", 33)
61
+ }
55
62
 
56
- compileOptions {
57
- sourceCompatibility JavaVersion.VERSION_11
58
- targetCompatibility JavaVersion.VERSION_11
63
+ lintOptions {
64
+ abortOnError false
65
+ }
59
66
  }
60
67
 
61
- kotlinOptions {
62
- jvmTarget = JavaVersion.VERSION_11.majorVersion
68
+ def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
69
+ if (agpVersion.tokenize('.')[0].toInteger() < 8) {
70
+ compileOptions {
71
+ sourceCompatibility JavaVersion.VERSION_11
72
+ targetCompatibility JavaVersion.VERSION_11
73
+ }
74
+
75
+ kotlinOptions {
76
+ jvmTarget = JavaVersion.VERSION_11.majorVersion
77
+ }
63
78
  }
64
79
 
65
80
  namespace "expo.interfaces.devmenu"
66
81
  defaultConfig {
67
- minSdkVersion safeExtGet("minSdkVersion", 21)
68
- targetSdkVersion safeExtGet("targetSdkVersion", 33)
69
82
  versionCode 6
70
- versionName '1.3.0'
71
- }
72
- lintOptions {
73
- abortOnError false
83
+ versionName '1.5.0'
74
84
  }
75
85
  publishing {
76
86
  singleVariant("release") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-dev-menu-interface",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "description": "Interface for expo-dev-menu",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -25,5 +25,5 @@
25
25
  "peerDependencies": {
26
26
  "expo": "*"
27
27
  },
28
- "gitHead": "fa5ecca8251986b9f197cc14074eec0ab6dfb6db"
28
+ "gitHead": "da25937e2a99661cbe5eb60ca1d8d6245fc96a50"
29
29
  }