Skip to content

Commit

Permalink
feat: version compatible with vaadin 24.4
Browse files Browse the repository at this point in the history
Close #14
  • Loading branch information
paodb authored and javier-godoy committed Jul 3, 2024
1 parent ea8ada4 commit 3e6518a
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 45 deletions.
44 changes: 12 additions & 32 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@

<groupId>org.vaadin.addons.flowingcode</groupId>
<artifactId>whatsapp-button-addon</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
<name>Whatsapp Button Add-on</name>
<description>Whatsapp Button Add-on</description>

<properties>
<vaadin.version>23.1.7</vaadin.version>
<selenium.version>4.1.2</selenium.version>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<vaadin.version>24.4.4</vaadin.version>
<selenium.version>4.10.0</selenium.version>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<drivers.dir>${project.basedir}/drivers</drivers.dir>
<jetty.version>9.4.36.v20210114</jetty.version>
<jetty.version>11.0.20</jetty.version>
<flowingcode.commons.demo.version>4.0.0</flowingcode.commons.demo.version>
<frontend.hotdeploy>true</frontend.hotdeploy>
</properties>

<organization>
Expand Down Expand Up @@ -52,7 +54,7 @@
<dependency>
<groupId>com.flowingcode.vaadin.addons.demo</groupId>
<artifactId>commons-demo</artifactId>
<version>3.5.1</version>
<version>${flowingcode.commons.demo.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down Expand Up @@ -203,7 +205,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
</configuration>
Expand All @@ -225,14 +226,14 @@
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.version}</version>
<configuration>
<scanIntervalSeconds>3</scanIntervalSeconds>
<scan>3</scan>
<!-- Use test scope because the UI/demo classes are in the test package. -->
<useTestScope>true</useTestScope>
<webAppConfig>
<webApp>
<resourceBases>
<resourceBase>src/test/resources/META-INF/resources</resourceBase>
</resourceBases>
</webAppConfig>
</webApp>
<supportedPackagings>
<supportedPackaging>jar</supportedPackaging>
</supportedPackagings>
Expand Down Expand Up @@ -480,27 +481,6 @@
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>v24</id>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<vaadin.version>24.2.6</vaadin.version>
<jetty.version>11.0.12</jetty.version>
</properties>
<repositories>
<repository>
<id>vaadin-prerelease</id>
<url>https://maven.vaadin.com/vaadin-prereleases</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>vaadin-prerelease</id>
<url>https://maven.vaadin.com/vaadin-prereleases</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* Whatsapp Button Add-on
* %%
* Copyright (C) 2022 Flowing Code
* Copyright (C) 2022 - 2024 Flowing Code
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -27,7 +27,7 @@

@SuppressWarnings("serial")
@Tag("fc-whatsapp-button")
@NpmPackage(value = "@flowingcode/fc-whatsapp-button", version = "1.0.3")
@NpmPackage(value = "@flowingcode/fc-whatsapp-button", version = "2.0.0")
@JsModule("@flowingcode/fc-whatsapp-button/dist/src/fc-whatsapp-button.js")
public class WhatsappButton extends Component {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* Whatsapp Button Add-on
* %%
* Copyright (C) 2021 Flowing Code
* Copyright (C) 2022 - 2024 Flowing Code
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* Whatsapp Button Add-on
* %%
* Copyright (C) 2022 Flowing Code
* Copyright (C) 2022 - 2024 Flowing Code
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/*-
* #%L
* Whatsapp Button Add-on
* %%
* Copyright (C) 2022 - 2024 Flowing Code
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package com.flowingcode.vaadin.addons.whatsappbutton;

import com.flowingcode.vaadin.addons.demo.DemoSource;
Expand All @@ -19,7 +38,7 @@
import org.apache.commons.lang3.StringUtils;

@DemoSource
@PageTitle("Whatsapp Button Demo")
@PageTitle("Whatsapp Button")
@Route(value = "whatsappbutton/whatsappbutton", layout = WhatsappButtonDemoView.class)
@SuppressWarnings("serial")
public class WhatsappButtonDemo extends Div {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* Whatsapp Button Add-on
* %%
* Copyright (C) 2022 Flowing Code
* Copyright (C) 2022 - 2024 Flowing Code
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -22,15 +22,15 @@
import com.flowingcode.vaadin.addons.DemoLayout;
import com.flowingcode.vaadin.addons.GithubLink;
import com.flowingcode.vaadin.addons.demo.TabbedDemo;
import com.vaadin.flow.component.dependency.StyleSheet;
import com.vaadin.flow.component.dependency.CssImport;
import com.vaadin.flow.router.ParentLayout;
import com.vaadin.flow.router.Route;

@SuppressWarnings("serial")
@ParentLayout(DemoLayout.class)
@Route("whatsappbutton")
@GithubLink("https://github.com/FlowingCode/WhatsappButton")
@StyleSheet("context://frontend/styles/whatsapp-button-demo-styles.css")
@CssImport("./styles/whatsapp-button-demo-styles.css")
public class WhatsappButtonDemoView extends TabbedDemo {

public WhatsappButtonDemoView() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* Whatsapp Button Add-on
* %%
* Copyright (C) 2022 Flowing Code
* Copyright (C) 2022 - 2024 Flowing Code
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* Whatsapp Button Add-on
* %%
* Copyright (C) 2022 Flowing Code
* Copyright (C) 2022 - 2024 Flowing Code
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* Whatsapp Button Add-on
* %%
* Copyright (C) 2022 Flowing Code
* Copyright (C) 2022 - 2024 Flowing Code
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -17,6 +17,7 @@
* limitations under the License.
* #L%
*/

package com.flowingcode.vaadin.addons.whatsappbutton.test;

import java.io.ByteArrayInputStream;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
/*Demo styles*/
/*-
* #%L
* Whatsapp Button Add-on
* %%
* Copyright (C) 2022 - 2024 Flowing Code
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/

.button-container {
margin: 40px 0;
Expand All @@ -20,4 +38,4 @@

.phone {
width:0;
}
}

0 comments on commit 3e6518a

Please sign in to comment.