Skip to content

Commit

Permalink
ScalaJS: fix for importing scalapb.proto
Browse files Browse the repository at this point in the history
  • Loading branch information
thesamet committed Dec 1, 2015
1 parent 7c3b999 commit 948b1a8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ lazy val runtime = crossProject.crossType(CrossType.Full).in(file("scalapb-runti
.jsSettings(
// Add JS-specific settings here
libraryDependencies ++= Seq(
"com.trueaccord.scalapb" %%% "protobuf-runtime-scala" % "0.1.3"
)
"com.trueaccord.scalapb" %%% "protobuf-runtime-scala" % "0.1.4"
),
unmanagedResourceDirectories in Compile += baseDirectory.value / "../../third_party"
)

lazy val runtimeJVM = runtime.jvm
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.trueaccord.scalapb

object Scalapb {
def getDescriptor(): com.google.protobuf.Descriptors.FileDescriptor = {
throw new NotImplementedError("Descriptors are not implemented yet for ScalaJS.")
}
}

0 comments on commit 948b1a8

Please sign in to comment.