start recreating plugin

This commit is contained in:
eyedeekay
2024-02-21 00:48:04 -05:00
parent ff35bc7023
commit 4101a344a2
3 changed files with 56 additions and 2 deletions

View File

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Tue Feb 20 18:47:49 EST 2024
build.number=602
#Wed Feb 21 00:06:44 EST 2024
build.number=603

View File

@ -46,6 +46,19 @@
</javac>
</target>
<target name="pluginjar" depends="jar">
<mkdir dir="./build" />
<mkdir dir="./build/obj" />
<javac
srcdir="./plugin"
debug="true" deprecation="on" source="${javac.version}" target="${javac.version}"
destdir="./build/obj"
includeAntRuntime="false"
classpath="${i2plib}/i2p.jar:${i2plib}/i2ptunnel.jar:${i2plib}/i2psnark.jar:${i2plib}/mstreaming.jar:${i2plib}/systray.jar:${i2plib}/desktopgui.jar:${jettylib}/org.mortbay.jetty.jar:${jettylib}/jetty-util.jar:${jettylib}/jetty-xml.jar:./build/i2pfirefox.jar" >
<compilerarg line="${javac.compilerargs}" />
</javac>
</target>
<target name="jar" depends="builddep, compile">
<jar destfile="build/i2pfirefox.jar" basedir="./build/obj" includes="**/*.class" >
<fileset file="i2p.firefox.base.profile.zip" />

View File

@ -0,0 +1,41 @@
package net.i2p.i2pfirefox.plugin;
import net.i2p.i2pfirefox.I2PBrowser;
import net.i2p.app.ClientApp;
import net.i2p.app.ClientAppState;
/**
* I2PBrowserPlugin.java
* Copyright (C) 2022 idk <hankhill19580@gmail.com>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the MIT License. See LICENSE.md for details.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* @description I2PBrowser is a class that is used to open a browser window to
* the I2P network. It automatically detects the operating system and available
* browsers, and selects the best one to use, with Tor Browser at the top for
* Firefox and Brave at the top for Chrome.
*
* @author idk
* @since 0.0.16
*/
public class I2PBrowserPlugin extends I2PBrowser implements ClientApp {
public String getDisplayName() {
return "I2P Browser";
}
public String getName() {
return "I2P Browser";
}
public ClientAppState getState() {
return ClientAppState.RUNNING;
}
public void shutdown(String[] args) {
}
public void startup() {
}
}