@@ -2,7 +2,7 @@ import locales._
2
2
import sbt .Keys ._
3
3
import sbtcrossproject .CrossPlugin .autoImport .{ CrossType , crossProject }
4
4
5
- lazy val cldrApiVersion = " 4.4 .0"
5
+ lazy val cldrApiVersion = " 4.5 .0"
6
6
7
7
ThisBuild / versionScheme := Some (" always" )
8
8
@@ -87,7 +87,8 @@ lazy val root = project
87
87
tests.native,
88
88
localesFullDb.js,
89
89
localesFullDb.native,
90
- localesFullCurrenciesDb,
90
+ localesFullCurrenciesDb.js,
91
+ localesFullCurrenciesDb.native,
91
92
localesMinimalEnDb.js,
92
93
localesMinimalEnDb.native,
93
94
localesMinimalEnUSDb.js,
@@ -133,14 +134,16 @@ lazy val core = crossProject(JVMPlatform, JSPlatform, NativePlatform)
133
134
}
134
135
}
135
136
)
137
+ .nativeSettings {
138
+ scalacOptions += " -P:scalanative:genStaticForwardersForNonTopLevelObjects"
139
+ }
136
140
137
141
lazy val cldrDbVersion = " 36.0"
138
142
139
- lazy val localesFullCurrenciesDb = project
143
+ lazy val localesFullCurrenciesDb = crossProject( JSPlatform , NativePlatform )
140
144
.in(file(" localesFullCurrenciesDb" ))
141
145
.settings(commonSettings)
142
146
.configure(_.enablePlugins(LocalesPlugin ))
143
- .configure(_.enablePlugins(ScalaJSPlugin ))
144
147
.settings(
145
148
name := " locales-full-currencies-db" ,
146
149
cldrVersion := CLDRVersion .Version (cldrDbVersion),
@@ -151,7 +154,7 @@ lazy val localesFullCurrenciesDb = project
151
154
supportDateTimeFormats := true ,
152
155
supportNumberFormats := true ,
153
156
supportISOCodes := true ,
154
- libraryDependencies += (" org.portable-scala" %%% " portable-scala-reflect" % " 1.1.2 " )
157
+ libraryDependencies += (" org.portable-scala" %%% " portable-scala-reflect" % " 1.1.3 " )
155
158
.cross(CrossVersion .for3Use2_13)
156
159
)
157
160
@@ -170,7 +173,7 @@ lazy val localesFullDb = crossProject(JSPlatform, NativePlatform)
170
173
supportDateTimeFormats := true ,
171
174
supportNumberFormats := true ,
172
175
supportISOCodes := true ,
173
- libraryDependencies += (" org.portable-scala" %%% " portable-scala-reflect" % " 1.1.2 " )
176
+ libraryDependencies += (" org.portable-scala" %%% " portable-scala-reflect" % " 1.1.3 " )
174
177
.cross(CrossVersion .for3Use2_13)
175
178
)
176
179
@@ -188,7 +191,7 @@ lazy val localesMinimalEnDb = crossProject(JSPlatform, NativePlatform)
188
191
supportDateTimeFormats := true ,
189
192
supportNumberFormats := true ,
190
193
supportISOCodes := false ,
191
- libraryDependencies += (" org.portable-scala" %%% " portable-scala-reflect" % " 1.1.2 " )
194
+ libraryDependencies += (" org.portable-scala" %%% " portable-scala-reflect" % " 1.1.3 " )
192
195
.cross(CrossVersion .for3Use2_13)
193
196
)
194
197
@@ -206,7 +209,7 @@ lazy val localesMinimalEnUSDb = crossProject(JSPlatform, NativePlatform)
206
209
supportDateTimeFormats := true ,
207
210
supportNumberFormats := true ,
208
211
supportISOCodes := false ,
209
- libraryDependencies += (" org.portable-scala" %%% " portable-scala-reflect" % " 1.1.2 " )
212
+ libraryDependencies += (" org.portable-scala" %%% " portable-scala-reflect" % " 1.1.3 " )
210
213
.cross(CrossVersion .for3Use2_13)
211
214
)
212
215
@@ -228,7 +231,7 @@ lazy val tests = crossProject(JVMPlatform, JSPlatform, NativePlatform)
228
231
.jsSettings(Test / parallelExecution := false ,
229
232
scalaJSLinkerConfig ~= (_.withModuleKind(ModuleKind .CommonJSModule ))
230
233
)
231
- .jsConfigure(_.dependsOn(core.js, macroutils, localesFullCurrenciesDb))
234
+ .jsConfigure(_.dependsOn(core.js, macroutils, localesFullCurrenciesDb.js ))
232
235
.jvmSettings(
233
236
// Fork the JVM test to ensure that the custom flags are set
234
237
Test / fork := true ,
@@ -245,14 +248,7 @@ lazy val tests = crossProject(JVMPlatform, JSPlatform, NativePlatform)
245
248
Test / classLoaderLayeringStrategy := ClassLoaderLayeringStrategy .Flat
246
249
)
247
250
.jvmConfigure(_.dependsOn(macroutils))
248
- .nativeSettings(
249
- nativeConfig ~= {
250
- _.withOptimize(false )
251
- // tests fail to link on Scala 2.11 and 2.12 in debug mode
252
- // with the optimizer enabled
253
- }
254
- )
255
- .nativeConfigure(_.dependsOn(core.native, macroutils, localesFullDb.native))
251
+ .nativeConfigure(_.dependsOn(core.native, macroutils, localesFullCurrenciesDb.native))
256
252
.platformsSettings(JSPlatform , NativePlatform )(
257
253
Test / unmanagedSourceDirectories += baseDirectory.value.getParentFile / " js-native" / " src" / " test" / " scala"
258
254
)
0 commit comments