Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix package / bump sbt #15

Merged
merged 2 commits into from
Mar 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ lazy val downloadCore =

Compile / compile := (Compile / compile).dependsOn(downloadCore).value

buildInfoPackage := "com.github.windymelt.voicevoxcore4s"
buildInfoPackage := "dev.capslock.voicevoxcore4s"

lazy val common = project
.settings(
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.8.2
sbt.version=1.9.8
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.windymelt.voicevoxcore4s;
package dev.capslock.voicevoxcore4s;

import com.sun.jna.Structure;
import java.util.Arrays;
Expand Down Expand Up @@ -58,4 +58,4 @@ protected List<String> getFieldOrder() {
return Arrays.asList("kana", "enable_interrogative_upspeak");
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.windymelt.voicevoxcore4s
package dev.capslock.voicevoxcore4s

import com.sun.jna.Library
import com.sun.jna.Library.OPTION_FUNCTION_MAPPER
Expand All @@ -18,8 +18,7 @@ import java.{util => ju}
// cf. https://github.com/VOICEVOX/voicevox_core/blob/0.14.1/core/src/core.h
// cf. https://voicevox.github.io/voicevox_core/apis/c_api/voicevox__core_8h.html

/**
* VOICEVOX CoreライブラリのJNAによるラッパー。純粋にラッパーとして振る舞うため、元ライブラリに忠実に振る舞う。
/** VOICEVOX CoreライブラリのJNAによるラッパー。純粋にラッパーとして振る舞うため、元ライブラリに忠実に振る舞う。
*/
trait Core extends Library {
def voicevox_audio_query(
Expand Down Expand Up @@ -123,8 +122,8 @@ trait Core extends Library {
}

object Core {
/**
* 関数/メソッド名を変換する層。かつてのバージョンのCoreでJavaの予約語に関数名が被っていた名残として用意している。

/** 関数/メソッド名を変換する層。かつてのバージョンのCoreでJavaの予約語に関数名が被っていた名残として用意している。
*/
private val functionMap = new com.sun.jna.FunctionMapper {
def getFunctionName(library: NativeLibrary, method: Method): String =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.windymelt.voicevoxcore4s
package dev.capslock.voicevoxcore4s

object Logger {
val logger = com.typesafe.scalalogging.Logger("voicevoxcore4s")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.windymelt.voicevoxcore4s
package dev.capslock.voicevoxcore4s

import com.sun.jna.ptr.{PointerByReference, IntByReference, LongByReference}
import java.io.FileOutputStream
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.windymelt.voicevoxcore4s
package dev.capslock.voicevoxcore4s

import java.io.File
import java.lang.invoke.MethodHandles
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package com.github.windymelt.voicevoxcore4s
package dev.capslock.voicevoxcore4s

import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers

import com.sun.jna.ptr.{PointerByReference, IntByReference}

/**
* 確実に一度だけライブラリをロードするためにObjectを使っている
/** 確実に一度だけライブラリをロードするためにObjectを使っている
*/
object TestRunner {
val dictionaryDirectory = Util.extractDictFiles()
Expand Down
Loading