Skip to content

Commit

Permalink
Fix Portaudio linkage, update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ibauersachs committed Jul 15, 2023
1 parent 00e6276 commit b1b02a5
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven-and-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ jobs:
git config --global user.name "Jitsi GitHub Action"
cd $Env:GITHUB_WORKSPACE/src/native/
$java_home = "${{ steps.install_java.outputs.path }}".Replace("\\", "/")
cmake -B cmake-build-${{ matrix.arch.actions }} -A ${{ matrix.arch.cmake }} -DJAVA_HOME=$java_home
cmake -B cmake-build-${{ matrix.arch.actions }} -DVCPKG_TARGET_TRIPLET=${{ matrix.arch.cmake }}-windows-static -A ${{ matrix.arch.cmake }} -DJAVA_HOME=$java_home
cmake --build cmake-build-${{ matrix.arch.actions }} --config Release --target install --parallel
- name: Gather logs on failure
Expand Down
43 changes: 29 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>5.11.0</version>
<version>5.13.0</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
Expand All @@ -94,7 +94,7 @@
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>jitsi-utils</artifactId>
<version>1.0-114-g43815ed</version>
<version>1.0-126-g02b0c86</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
Expand All @@ -109,7 +109,7 @@
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>jitsi-lgpl-dependencies</artifactId>
<version>1.2-21-gc4508d5</version>
<version> 1.2-23-g7b49874</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
Expand All @@ -132,21 +132,21 @@
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>23.0.0</version>
<version>24.0.1</version>
<scope>provided</scope>
</dependency>

<!-- test -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.8.2</version>
<version>5.9.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>4.5.1</version>
<version>5.4.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -159,10 +159,25 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.16.0</version>
<configuration>
<ruleSet>
<ignoreVersions>
<ignoreVersion>
<type>regex</type>
<version>.+-(alpha|beta|M|RC).*</version>
</ignoreVersion>
</ignoreVersions>
</ruleSet>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>5.1.6</version>
<version>5.1.9</version>
<extensions>true</extensions>
<configuration>
<excludeDependencies>jitsi-lgpl-dependencies</excludeDependencies>
Expand Down Expand Up @@ -198,7 +213,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<version>3.11.0</version>
<configuration>
<release>11</release>
<compilerArgs>
Expand All @@ -210,12 +225,12 @@
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<version>3.1.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.0</version>
<version>3.5.0</version>
<configuration>
<doclint>-missing</doclint>
<source>11</source>
Expand All @@ -224,25 +239,25 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<version>3.3.0</version>
<configuration>
<excludeResources>true</excludeResources>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.2.0</version>
<version>3.3.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>3.0.0-M1</version>
<version>3.1.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0-M2</version>
<version>3.1.1</version>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
Expand Down
21 changes: 6 additions & 15 deletions src/main/java/org/jitsi/impl/libjitsi/LibJitsiImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,10 @@ private static <T> T initializeService(String className, Class<T> clazz)
if (!suppressClassNotFoundException)
exception = cnfe;
}
catch (ExceptionInInitializerError eiie)
catch (LinkageError eiie)
{
exception = eiie;
}
catch (LinkageError le)
{
exception = le;
}

T service = null;

Expand All @@ -193,21 +189,16 @@ private static <T> T initializeService(String className, Class<T> clazz)
try
{
@SuppressWarnings("unchecked")
T t = (T) implClass.newInstance();
T t = (T) implClass.getConstructor().newInstance();

service = t;
}
catch (Throwable t)
catch (Exception e)
{
if (t instanceof ThreadDeath)
{
throw (ThreadDeath) t;
}
else
exception = e;
if (e instanceof InterruptedException)
{
exception = t;
if (t instanceof InterruptedException)
Thread.currentThread().interrupt();
Thread.currentThread().interrupt();
}
}
}
Expand Down

0 comments on commit b1b02a5

Please sign in to comment.