Skip to content

Commit e3d25fc

Browse files
committed
Update scala-collection compat to 2.12, drop link stubs, and add URLConnection for stubs
1 parent f2ad399 commit e3d25fc

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

build.sbt

+2-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ val scala213 = "2.13.13"
4848
val scala3 = "3.3.3"
4949

5050
val javaTime = "1.3.0"
51-
val scCompat = "2.11.0"
51+
val scCompat = "2.12.0"
5252

5353
val versionsBase = Seq(scala212, scala213)
5454
val versions = versionsBase :+ scala3
@@ -158,8 +158,7 @@ lazy val sconfig = crossProject(JVMPlatform, NativePlatform, JSPlatform)
158158
.nativeSettings(
159159
crossScalaVersions := versions,
160160
nativeConfig ~= (
161-
_.withLinkStubs(true)
162-
.withEmbedResources(true)
161+
_.withEmbedResources(true)
163162
),
164163
logLevel := Level.Info, // Info or Debug
165164
libraryDependencies += "org.ekrich" %%% "sjavatime" % javaTime % "provided"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package java.net
2+
3+
import scalanative.annotation.stub
4+
5+
class URLConnection {
6+
@stub
7+
def getLastModified(): scala.Long = ???
8+
@stub
9+
def connect(): Unit = ???
10+
@stub
11+
def getContentType(): String = ???
12+
@stub
13+
def getInputStream(): java.io.InputStream = ???
14+
@stub
15+
def setRequestProperty(key: String, value: String): Unit = ???
16+
}

0 commit comments

Comments
 (0)