Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/nbproject/private/
/build/
/dist/
target
.DS_Store
/common/src/main/build
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/libraries/Maven__com_codenameone_codenameone_core_7_0_26.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/libraries/Maven__com_jhlabs_filters_2_0_235_1.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/libraries/Maven__org_xerial_sqlite_jdbc_3_7_15_M1.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
= Codename One BouncyCastle Library

This is a port of the https://bouncycastle.org/[BouncyCastle] library for https://www.codenameone.com[Codename One]

== Installation

For maven projects, include the following in the `<dependencies>` section of your common/pom.xml file:

[source,xml]
----
<dependency>
<groupId>com.codenameone</groupId>
<artifactId>bouncy-castle-lib</artifactId>
<version>1.0</version>
<type>pom</type>
</dependency>
----

For non-maven projects, you can install through Codename One preferences.

== References

. https://www.codenameone.com[Codename One]
Binary file removed Stubber.jar
Binary file not shown.
15 changes: 15 additions & 0 deletions android/bouncy-castle-android.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="bouncy-castle-common" />
</component>
</module>
119 changes: 119 additions & 0 deletions android/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.codenameone</groupId>
<artifactId>bouncy-castle</artifactId>
<version>1.0</version>
</parent>
<groupId>com.codenameone</groupId>
<artifactId>bouncy-castle-android</artifactId>
<version>1.0</version>

<name>bouncy-castle-android</name>
<build>
<sourceDirectory>src/main/dummy</sourceDirectory>
<resources>
<resource>
<directory>src/main/java</directory>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>

<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>


<executions>
<execution>
<phase>package</phase>
<configuration>
<target>
<delete file="${project.build.directory}/${project.build.finalName}.jar" />
<mkdir dir="${basedir}/src/main/resources"/>
<mkdir dir="${basedir}/src/main/java"/>
<jar destfile="${project.build.directory}/${project.build.finalName}.jar" compress="true">
<fileset dir="${basedir}/src/main/resources" />
<fileset dir="${basedir}/src/main/java" />
</jar>

</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>${cn1lib.name}-common</artifactId>
<version>${project.version}</version>
</dependency>
<!--
In order to use this dependency, you need to clone the Codename One repo
and install the android dependencies.
This will allow you to have a sanity check and auto-completion during development
of android native interfaces.

To install this dependency:

1. Clone the Codename One repo from https://github.com/codenameone/CodenameOne
2. Clone the cn1-binaries repo from https://github.com/codenameone/cn1-binaries
3. Run the following in the CodenameOne/maven directory:

mvn install -Dcn1-binaries=/path/to/cn1-binaries

Uncomment this dependency, but change the <version> tag to the version in the CodenameOne/maven/pom.xml

<dependency>
<groupId>com.codenameone</groupId>
<artifactId>codenameone-android</artifactId>
<scope>provided</scope>
<version>${cn1.version}</version>

<classifier>with-android-dependencies</classifier>

</dependency>
-->
</dependencies>
<profiles>
<profile>
<id>kotlin</id>
<activation>
<file>
<!-- To enable Kotlin, add the following file to the project base dir -->
<exists>codenameone_kotlin.properties</exists>
</file>
</activation>
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
</dependency>
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>


</project>
12 changes: 12 additions & 0 deletions bouncy-castle.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
Loading