You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. open ```<Your Flutter Project>/android/app/build.gradle```file and add:
121
121
```gradle
122
-
dependencies {
123
-
implementation project(':unityLibrary')
124
-
}
122
+
dependencies {
123
+
implementation project(':unityLibrary')
124
+
}
125
125
```
126
126
4. To build a release package, you need to add signconfig in `UnityExport/build.gradle`. The code below use the `debug` signConfig for all buildTypes, which can be changed as you well if you need specify signConfig.
127
127
```
128
-
buildTypes {
129
-
release {
130
-
signingConfig signingConfigs.debug
131
-
}
132
-
debug {
133
-
signingConfig signingConfigs.debug
134
-
}
135
-
profile{
136
-
signingConfig signingConfigs.debug
137
-
}
138
-
innerTest {
139
-
//...
140
-
matchingFallbacks = ['debug', 'release']
141
-
}
128
+
buildTypes {
129
+
release {
130
+
signingConfig signingConfigs.debug
131
+
}
132
+
debug {
133
+
signingConfig signingConfigs.debug
134
+
}
135
+
profile{
136
+
signingConfig signingConfigs.debug
137
+
}
138
+
innerTest {
139
+
//...
140
+
matchingFallbacks = ['debug', 'release']
142
141
}
142
+
}
143
143
```
144
144
4. If you use `minifyEnabled true` and need to use UnityMessage in Flutter, please add proguard content below:
145
145
```
146
146
-keep class com.xraph.plugins.** {*;}
147
147
```
148
148
5. If you want unity in it's own activity as an alternative, just add this to your app `AndroidManifest.xml` file
0 commit comments