expo-modules-test-core 0.20.1 → 0.20.2

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.
@@ -4,7 +4,7 @@ plugins {
4
4
  }
5
5
 
6
6
  group = 'org.unimodules'
7
- version = '0.20.1'
7
+ version = '0.20.2'
8
8
 
9
9
  expoModule {
10
10
  canBePublished false
@@ -14,7 +14,7 @@ android {
14
14
  namespace "org.unimodules.test.core"
15
15
  defaultConfig {
16
16
  versionCode 3
17
- versionName '0.20.1'
17
+ versionName '0.20.2'
18
18
  }
19
19
  packagingOptions {
20
20
  resources {
package/app.plugin.js CHANGED
@@ -2,10 +2,10 @@ const { withProjectBuildGradle } = require('@expo/config-plugins');
2
2
  const kotlinClassPath = 'org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion';
3
3
 
4
4
  const withKotlinGradle = (config, version) => {
5
- return withProjectBuildGradle(config, config => {
5
+ return withProjectBuildGradle(config, (config) => {
6
6
  if (config.modResults.language === 'groovy') {
7
- config.modResults.contents = setKotlinVersion(config.modResults.contents, version);
8
7
  config.modResults.contents = setKotlinClassPath(config.modResults.contents);
8
+ config.modResults.contents = setKotlinVersion(config.modResults.contents, version);
9
9
  } else {
10
10
  throw new Error('Cannot setup kotlin because the build.gradle is not groovy');
11
11
  }
@@ -21,9 +21,9 @@ function setKotlinVersion(buildGradle, version) {
21
21
  return buildGradle.replace(pattern, replacement);
22
22
  }
23
23
  return buildGradle.replace(
24
- /ext\s?{/,
25
- `ext {
26
- ${replacement}`
24
+ /dependencies\s?{/,
25
+ `dependencies {
26
+ def ${replacement}`
27
27
  );
28
28
  }
29
29
 
@@ -40,7 +40,7 @@ function setKotlinClassPath(buildGradle) {
40
40
  }
41
41
 
42
42
  const withUnimodulesTestCore = (config) => {
43
- return withKotlinGradle(config, '1.3.50');
44
- }
43
+ return withKotlinGradle(config, '1.3.50');
44
+ };
45
45
 
46
- module.exports = withUnimodulesTestCore;
46
+ module.exports = withUnimodulesTestCore;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-modules-test-core",
3
- "version": "0.20.1",
3
+ "version": "0.20.2",
4
4
  "main": "./app.plugin.js",
5
5
  "description": "Module providing native testing utilities for testing Expo modules",
6
6
  "keywords": [
@@ -34,5 +34,5 @@
34
34
  "xml-js": "^1.6.11",
35
35
  "yaml": "^2.3.2"
36
36
  },
37
- "gitHead": "1914bb35d23af23078da37e70988261844436505"
37
+ "gitHead": "f1394f21ff2719a9a3037d7511db170704e5c492"
38
38
  }