expo-dev-menu-interface 1.2.0 → 1.4.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,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '1.2.0'
6
+ version = '1.4.0'
7
7
 
8
8
  buildscript {
9
9
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
@@ -35,19 +35,11 @@ buildscript {
35
35
  }
36
36
  }
37
37
 
38
- // Creating sources with comments
39
- task androidSourcesJar(type: Jar) {
40
- classifier = 'sources'
41
- from android.sourceSets.main.java.srcDirs
42
- }
43
-
44
38
  afterEvaluate {
45
39
  publishing {
46
40
  publications {
47
41
  release(MavenPublication) {
48
42
  from components.release
49
- // Add additional sourcesJar to artifacts
50
- artifact(androidSourcesJar)
51
43
  }
52
44
  }
53
45
  repositories {
@@ -61,24 +53,33 @@ afterEvaluate {
61
53
  android {
62
54
  compileSdkVersion safeExtGet("compileSdkVersion", 33)
63
55
 
64
- compileOptions {
65
- sourceCompatibility JavaVersion.VERSION_11
66
- targetCompatibility JavaVersion.VERSION_11
67
- }
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
+ }
68
62
 
69
- kotlinOptions {
70
- jvmTarget = JavaVersion.VERSION_11.majorVersion
63
+ kotlinOptions {
64
+ jvmTarget = JavaVersion.VERSION_11.majorVersion
65
+ }
71
66
  }
72
67
 
68
+ namespace "expo.interfaces.devmenu"
73
69
  defaultConfig {
74
70
  minSdkVersion safeExtGet("minSdkVersion", 21)
75
71
  targetSdkVersion safeExtGet("targetSdkVersion", 33)
76
72
  versionCode 6
77
- versionName '1.2.0'
73
+ versionName '1.4.0'
78
74
  }
79
75
  lintOptions {
80
76
  abortOnError false
81
77
  }
78
+ publishing {
79
+ singleVariant("release") {
80
+ withSourcesJar()
81
+ }
82
+ }
82
83
  }
83
84
 
84
85
  dependencies {
@@ -1,5 +1,3 @@
1
-
2
- <manifest package="expo.interfaces.devmenu">
1
+ <manifest>
3
2
 
4
3
  </manifest>
5
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-dev-menu-interface",
3
- "version": "1.2.0",
3
+ "version": "1.4.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": "4ba50c428c8369bb6b3a51a860d4898ad4ccbe78"
28
+ "gitHead": "79607a7325f47aa17c36d266100d09a4ff2cc544"
29
29
  }