expo-dev-menu-interface 1.7.1 → 1.8.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.
@@ -1,100 +1,26 @@
1
1
  apply plugin: 'com.android.library'
2
- apply plugin: 'kotlin-android'
3
- apply plugin: 'maven-publish'
4
2
 
5
3
  group = 'host.exp.exponent'
6
- version = '1.7.1'
4
+ version = '1.8.0'
7
5
 
8
6
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
9
- if (expoModulesCorePlugin.exists()) {
10
- apply from: expoModulesCorePlugin
11
- applyKotlinExpoModulesCorePlugin()
12
- }
13
-
14
- buildscript {
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")
26
- }
27
- }
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
- }
49
- }
50
- }
51
- }
7
+ apply from: expoModulesCorePlugin
8
+ applyKotlinExpoModulesCorePlugin()
9
+ useCoreDependencies()
10
+ useDefaultAndroidSdkVersions()
52
11
 
53
12
  android {
54
- // Remove this if and it's contents, when support for SDK49 is dropped
55
- if (!safeExtGet("expoProvidesDefaultConfig", false)) {
56
- compileSdkVersion safeExtGet("compileSdkVersion", 34)
57
-
58
- defaultConfig {
59
- minSdkVersion safeExtGet("minSdkVersion", 23)
60
- targetSdkVersion safeExtGet("targetSdkVersion", 34)
61
- }
62
-
63
- lintOptions {
64
- abortOnError false
65
- }
66
- }
67
-
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
- }
78
- }
79
-
80
13
  namespace "expo.interfaces.devmenu"
81
14
  defaultConfig {
82
15
  versionCode 6
83
- versionName '1.7.1'
84
- }
85
- publishing {
86
- singleVariant("release") {
87
- withSourcesJar()
88
- }
16
+ versionName '1.8.0'
89
17
  }
90
18
  }
91
19
 
92
20
  dependencies {
93
- //noinspection GradleDynamicVersion
94
- implementation 'com.facebook.react:react-native:+'
21
+ implementation 'com.facebook.react:react-android'
95
22
 
96
23
  implementation 'com.squareup.okhttp3:okhttp:3.14.9'
97
24
 
98
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
99
25
  implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3"
100
26
  }
@@ -2,11 +2,11 @@
2
2
 
3
3
  import Foundation
4
4
 
5
- @objc
5
+ @objc(EXDevMenuSelectionList)
6
6
  public class DevMenuSelectionList: DevMenuScreenItem, DevMenuCallableProvider {
7
- @objc
7
+ @objc(EXDevMenuItem)
8
8
  public class Item: NSObject, DevMenuDataSourceItem {
9
- @objc
9
+ @objc(EXDevMenuTag)
10
10
  public class Tag: NSObject {
11
11
  @objc
12
12
  public var text: () -> String = { "" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-dev-menu-interface",
3
- "version": "1.7.1",
3
+ "version": "1.8.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": "43f1b4f8a5a9bca649e4e7ca6e4155482a162431"
28
+ "gitHead": "4165b8d72e1b9a1889c2767534cc619e21468110"
29
29
  }