Skip to content

Commit 7937e37

Browse files
authored
Add the mac aarch jars into the build. (#18)
2 parents 002f709 + db24cbc commit 7937e37

File tree

5 files changed

+41
-2
lines changed

5 files changed

+41
-2
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# DurianSwt releases
22

33
## [Unreleased]
4+
### Fixed
5+
- Oops, we weren't publishing the `aarch64` binaries, fixed now. ([#18](https://github.com/diffplug/durian-swt/pull/18))
46

57
## [3.6.0] - 2022-02-18
68
### Added

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ subprojects { subProject ->
5151
} else {
5252
apply plugin: 'com.diffplug.eclipse.mavencentral'
5353
String platformCode = project.name.substring('durian-swt.'.length())
54+
String SWT_TO_USE = platformCode.endsWith("x86") ? SWT_VERSION_X86 : SWT_VERSION
5455
eclipseMavenCentral {
55-
release SWT_VERSION, {
56+
release SWT_TO_USE, {
5657
api "org.eclipse.swt.$platformCode"
5758
}
5859
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* Copyright (C) 2020-2022 DiffPlug
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package com.diffplug.common.swt.widgets;
17+
18+
19+
import org.eclipse.swt.internal.cocoa.NSPoint;
20+
import org.eclipse.swt.widgets.Composite;
21+
22+
public final class SmoothTable extends AbstractSmoothTable.Scrollable {
23+
public SmoothTable(Composite parent, int tableStyle) {
24+
super(parent, tableStyle);
25+
}
26+
27+
@Override
28+
protected void setTopPixelWithinTable(int topPixel) {
29+
NSPoint pt = new NSPoint();
30+
pt.x = 0;
31+
pt.y = topPixel;
32+
table.view.scrollPoint(pt);
33+
}
34+
}

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ VER_DURIAN_RX=3.0.0
1515
VER_DURIAN_DEBUG=1.0.0
1616
VER_RXJAVA=2.0.0
1717
# SWT Dependencies from P2
18-
SWT_VERSION=4.7.0
18+
SWT_VERSION=4.21.0
19+
SWT_VERSION_X86=4.7.0
1920

2021
# Testing
2122
VER_JUNIT=4.12

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ rootProject.name = 'durian-swt-root'
2828

2929
include 'durian-swt'
3030
include 'durian-swt.os'
31+
include 'durian-swt.cocoa.macosx.aarch64'
3132
include 'durian-swt.cocoa.macosx.x86_64'
3233
include 'durian-swt.gtk.linux.x86_64'
3334
include 'durian-swt.gtk.linux.x86'

0 commit comments

Comments
 (0)