@dolami-inc/react-native-expo-unity 0.3.1 → 0.3.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.
@@ -2,8 +2,12 @@ apply plugin: 'com.android.library'
2
2
  apply plugin: 'kotlin-android'
3
3
  apply plugin: 'expo-module-gradle-plugin'
4
4
 
5
+ def packageJson = new groovy.json.JsonSlurper().parse(file("../package.json"))
6
+ def semver = packageJson.version.split('\\.')
7
+ def computedVersionCode = semver[0].toInteger() * 10000 + semver[1].toInteger() * 100 + semver[2].toInteger()
8
+
5
9
  group = 'expo.modules.unity'
6
- version = '0.2.0'
10
+ version = packageJson.version
7
11
 
8
12
  android {
9
13
  namespace "expo.modules.unity"
@@ -11,6 +15,8 @@ android {
11
15
 
12
16
  defaultConfig {
13
17
  minSdk 24
18
+ versionCode computedVersionCode
19
+ versionName packageJson.version
14
20
  }
15
21
 
16
22
  compileOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dolami-inc/react-native-expo-unity",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Unity as a Library (UaaL) bridge for React Native / Expo",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",