Skip to content

Commit 6f39056

Browse files
authored
Merge pull request #374 from jitsi/move-version
Move version
2 parents ee35bbb + a9803ae commit 6f39056

File tree

6 files changed

+26
-72
lines changed

6 files changed

+26
-72
lines changed

pom.xml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<jetty.version>9.4.15.v20190215</jetty.version>
1818
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1919
<smack.version>4.2.4-47d17fc</smack.version>
20-
<jitsi-desktop.version>2.13.3ee5751</jitsi-desktop.version>
20+
<jitsi-desktop.version>2.13.cb5485e</jitsi-desktop.version>
2121
<slf4j.version>1.7.26</slf4j.version>
2222
</properties>
2323

@@ -98,7 +98,7 @@
9898
<dependency>
9999
<groupId>${project.groupId}</groupId>
100100
<artifactId>jicoco</artifactId>
101-
<version>1.1-20190509.130302-15</version>
101+
<version>1.1-1-ge7184ab</version>
102102
</dependency>
103103
<dependency>
104104
<groupId>${project.groupId}</groupId>
@@ -135,11 +135,6 @@
135135
<artifactId>jitsi-protocol-media</artifactId>
136136
<version>${jitsi-desktop.version}</version>
137137
</dependency>
138-
<dependency>
139-
<groupId>${project.groupId}</groupId>
140-
<artifactId>jitsi-ui-service</artifactId>
141-
<version>${jitsi-desktop.version}</version>
142-
</dependency>
143138
<dependency>
144139
<groupId>${project.groupId}</groupId>
145140
<artifactId>jitsi-util</artifactId>
@@ -148,12 +143,12 @@
148143
<dependency>
149144
<groupId>${project.groupId}</groupId>
150145
<artifactId>jitsi-utils</artifactId>
151-
<version>1.0-20190723.110846-12</version>
146+
<version>1.0-1-gaca0e20</version>
152147
</dependency>
153148
<dependency>
154149
<groupId>${project.groupId}</groupId>
155150
<artifactId>jitsi-xmpp-extensions</artifactId>
156-
<version>1.0-20190613.110850-6</version>
151+
<version>1.0-0-gf132d05 </version>
157152
</dependency>
158153
<dependency>
159154
<groupId>org.osgi</groupId>

src/main/java/org/jitsi/jicofo/FocusManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919

2020
import net.java.sip.communicator.service.protocol.*;
2121
import net.java.sip.communicator.service.protocol.event.*;
22-
import net.java.sip.communicator.service.shutdown.*;
2322
import net.java.sip.communicator.util.*;
2423

2524
import org.jitsi.jicofo.event.*;
2625
import org.jitsi.jicofo.util.*;
26+
import org.jitsi.meet.*;
2727
import org.jitsi.service.configuration.*;
2828
import org.jitsi.eventadmin.*;
2929
import org.jitsi.utils.logging.Logger;
@@ -599,8 +599,8 @@ private void maybeDoShutdown()
599599
// multiple times.
600600
ShutdownService shutdownService
601601
= ServiceUtils.getService(
602-
FocusBundleActivator.bundleContext,
603-
ShutdownService.class);
602+
FocusBundleActivator.bundleContext,
603+
ShutdownService.class);
604604

605605
shutdownService.beginShutdown();
606606
}

src/main/java/org/jitsi/jicofo/VersionBroadcaster.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818
package org.jitsi.jicofo;
1919

20+
import org.jitsi.utils.version.*;
2021
import org.jitsi.xmpp.extensions.jitsimeet.*;
2122
import net.java.sip.communicator.service.protocol.*;
2223
import net.java.sip.communicator.util.*;
@@ -25,7 +26,6 @@
2526
import org.jitsi.jicofo.discovery.Version;
2627
import org.jitsi.jicofo.event.*;
2728
import org.jitsi.osgi.*;
28-
import org.jitsi.service.version.*;
2929

3030
import org.jxmpp.jid.*;
3131
import org.osgi.framework.*;
@@ -163,7 +163,7 @@ public void handleEvent(Event event)
163163
}
164164

165165
// Conference focus
166-
org.jitsi.service.version.Version jicofoVersion
166+
org.jitsi.utils.version.Version jicofoVersion
167167
= versionService.getCurrentVersion();
168168
versionsExtension.addComponentVersion(
169169
ComponentVersionsExtension.COMPONENT_FOCUS,

src/main/java/org/jitsi/jicofo/version/CurrentVersionImpl.java

Lines changed: 13 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,18 @@
1515
*/
1616
package org.jitsi.jicofo.version;
1717

18-
import org.jitsi.version.*;
18+
import org.jitsi.utils.version.*;
1919

2020
/**
21-
* A static implementation of the {@link CurrentVersion} interface for Jicofo
21+
* Keeps constants for the application version.
22+
*
23+
* Note that the constants are modified at build time, so changes to this file
24+
* must be synchronized with the build system.
2225
*
2326
* @author Pawel Domas
27+
* @author Boris Grozev
2428
*/
2529
public class CurrentVersionImpl
26-
implements CurrentVersion
2730
{
2831
/**
2932
* The version major of the current application version. In an example
@@ -51,48 +54,11 @@ public class CurrentVersionImpl
5154
*/
5255
public static final String NIGHTLY_BUILD_ID = "build.SVN";
5356

54-
/**
55-
* {@inheritDoc}
56-
*/
57-
@Override
58-
public int getMajorVersion()
59-
{
60-
return VERSION_MAJOR;
61-
}
62-
63-
/**
64-
* {@inheritDoc}
65-
*/
66-
@Override
67-
public int getMinorVersion()
68-
{
69-
return VERSION_MINOR;
70-
}
71-
72-
/**
73-
* {@inheritDoc}
74-
*/
75-
@Override
76-
public String getNightlyBuildID()
77-
{
78-
return NIGHTLY_BUILD_ID;
79-
}
80-
81-
/**
82-
* {@inheritDoc}
83-
*/
84-
@Override
85-
public String getPreReleaseID()
86-
{
87-
return PRE_RELEASE_ID;
88-
}
89-
90-
/**
91-
* {@inheritDoc}
92-
*/
93-
@Override
94-
public String getDefaultAppName()
95-
{
96-
return "JiCoFo";
97-
}
57+
static final Version VERSION
58+
= new VersionImpl(
59+
"JiCoFo",
60+
VERSION_MAJOR,
61+
VERSION_MINOR,
62+
NIGHTLY_BUILD_ID,
63+
PRE_RELEASE_ID);
9864
}

src/main/java/org/jitsi/jicofo/version/VersionActivator.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616
package org.jitsi.jicofo.version;
1717

18+
import org.jitsi.utils.version.*;
1819
import org.jitsi.version.*;
1920

2021
/**
@@ -26,19 +27,12 @@
2627
public class VersionActivator
2728
extends AbstractVersionActivator
2829
{
29-
/**
30-
* The {@code CurrentVersionImpl} instance describing the current version
31-
* of Jicofo.
32-
*/
33-
private static final CurrentVersionImpl CURRENT_VERSION
34-
= new CurrentVersionImpl();
35-
3630
/**
3731
* {@inheritDoc}
3832
*/
3933
@Override
40-
protected CurrentVersion getCurrentVersion()
34+
protected Version getCurrentVersion()
4135
{
42-
return CURRENT_VERSION;
36+
return CurrentVersionImpl.VERSION;
4337
}
4438
}

src/test/java/org/jitsi/jicofo/ShutdownTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@
2020
import mock.*;
2121
import mock.util.*;
2222

23+
import org.jitsi.meet.*;
2324
import org.jitsi.xmpp.extensions.colibri.*;
24-
import net.java.sip.communicator.service.shutdown.*;
2525

2626
import org.jitsi.xmpp.extensions.jitsimeet.*;
2727
import org.jitsi.jicofo.xmpp.*;
28-
import org.jitsi.utils.*;
2928
import org.jitsi.xmpp.util.*;
3029

3130
import org.junit.*;

0 commit comments

Comments
 (0)