Skip to content

Commit

Permalink
Support Apple M1 for Scala Secure Session example
Browse files Browse the repository at this point in the history
  • Loading branch information
ihostage committed Mar 11, 2024
1 parent 051d2e1 commit e6737bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion play-scala-secure-session-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,17 @@ As with all Play projects, you must have JDK 11 and [sbt](http://www.scala-sbt.o

However, you must install libsodium before using this application, which is a non-Java binary install.

If you are on MacOS, you can use Homebrew:
If you are on Mac OS, you can use Homebrew:

```bash
brew install libsodium
```

If you are on Mac OS (Apple Silicon), you also should link `libsodium` library
```bash
mkdir -p lib && ln -s /opt/homebrew/lib/libsodium.dylib lib/libsodium.dylib
```

If you are on Ubuntu >= 15.04 or Debian >= 8, you can install with apt-get:

```bash
Expand Down
1 change: 1 addition & 0 deletions play-scala-secure-session-example/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ lazy val root = (project in file("."))
ws,
guice,
"org.abstractj.kalium" % "kalium" % "0.8.0",
"com.github.jnr" % "jnr-ffi" % "2.2.16",
"org.apache.pekko" %% "pekko-distributed-data" % pekkoVersion,
"org.apache.pekko" %% "pekko-cluster-typed" % pekkoVersion,
"org.scalatestplus.play" %% "scalatestplus-play" % "7.0.1" % Test
Expand Down

0 comments on commit e6737bf

Please sign in to comment.