MOD: decided to add local.properties because i'm tired of the compile error when it is missing, also cleaned docs
This commit is contained in:
parent
548cc40c68
commit
fe13b8202b
|
@ -6,11 +6,11 @@ DEVELOPER README
|
||||||
application details
|
application details
|
||||||
-------------------
|
-------------------
|
||||||
* ./wolfssl-lib
|
* ./wolfssl-lib
|
||||||
- builds source from wolfssl repository!! =)
|
- builds source from OEM WolfSSL repository!! =)
|
||||||
- only needs to be built once (when you want a new library)
|
- only needs to be built once (when you want a new library)
|
||||||
|
|
||||||
* ./wolfssl-jni
|
* ./wolfssl-jni
|
||||||
- JNI for the wolfssl library
|
- JNI for the WolfSSL library
|
||||||
|
|
||||||
* ./ccc-jni (default main source code)
|
* ./ccc-jni (default main source code)
|
||||||
- JNI, java connections to the native binaries
|
- JNI, java connections to the native binaries
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
# this CMake file is the root, and is used to create the bin folder
|
|
||||||
# add_subdirectory(wolfssl-oem)
|
|
||||||
# add_subdirectory(wolfcrypt)
|
|
|
@ -1,78 +0,0 @@
|
||||||
[[[ Gradle ]]]
|
|
||||||
|
|
||||||
|
|
||||||
[[ gradle command line switches ]]
|
|
||||||
|
|
||||||
# create a default gradle build
|
|
||||||
$ gradle init
|
|
||||||
|
|
||||||
# show that tasks available
|
|
||||||
$ gradle tasks
|
|
||||||
|
|
||||||
# clean the tests build, run the tests
|
|
||||||
$ gradle cleanTest test
|
|
||||||
|
|
||||||
# ignore any task optimization
|
|
||||||
$ gradle test --rerun-tasks
|
|
||||||
|
|
||||||
# UPDATE gradle wrapper
|
|
||||||
# (sometimes out of sync with android studio, there is an android plug too -- for gradle, it has specific compatibility)
|
|
||||||
# android plugin ver 3.1.x+ --> requires Gradle ver 4.4+
|
|
||||||
$ gradle wrapper
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[[ Gradle Java ]]
|
|
||||||
https://docs.gradle.org/current/userguide/tutorial_java_projects.html
|
|
||||||
|
|
||||||
[ publish jar ]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[[ Install Multiple Gradle Binaries (brew) ]]
|
|
||||||
|
|
||||||
[ Install multiple versions ]
|
|
||||||
brew versions gradle
|
|
||||||
git clone https://github.com/Homebrew/homebrew.git
|
|
||||||
git checkout 0123456 Library/Formula/gradle.rb
|
|
||||||
brew unlink gradle
|
|
||||||
Install diff version
|
|
||||||
brew install ~/scripts/myNewGradeScript.rb
|
|
||||||
--or--
|
|
||||||
brew install Library/Formula/gradle.rb
|
|
||||||
brew switch gradle 1.9
|
|
||||||
brew switch gradle 1.10
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[[ Gradle Preehond Dev Notes ]]
|
|
||||||
|
|
||||||
MODERN
|
|
||||||
Source: http://blog.paralleluniverse.co/2014/05/01/modern-java/
|
|
||||||
|
|
||||||
|
|
||||||
task deployJar(type: Jar, dependsOn: jar) {
|
|
||||||
baseName = project.name + '-deploy'
|
|
||||||
deps = configurations.runtime + configurations.runtime.allArtifacts.files
|
|
||||||
depClasses = { deps.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
||||||
from(depClasses) {
|
|
||||||
exclude 'META-INF/MANIFEST.MF'
|
|
||||||
}
|
|
||||||
manifest {
|
|
||||||
attributes 'Main-Class': 'com.example.redphone.Main'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
* What went wrong:
|
|
||||||
A problem was found with the configuration of task ':startScripts'.
|
|
||||||
> No value has been specified for property 'mainClassName'.
|
|
||||||
|
|
||||||
myMain = 'com.example.redphone.Main'
|
|
||||||
|
|
||||||
startScripts {
|
|
||||||
mainClassName = myMain
|
|
||||||
}
|
|
||||||
|
|
73
docs/gradle
73
docs/gradle
|
@ -1,73 +0,0 @@
|
||||||
[[[ Gradle ]]]
|
|
||||||
|
|
||||||
|
|
||||||
[[ gradle command line switches ]]
|
|
||||||
|
|
||||||
# create a default gradle build
|
|
||||||
$ gradle init
|
|
||||||
|
|
||||||
# show that tasks available
|
|
||||||
$ gradle tasks
|
|
||||||
|
|
||||||
# clean the tests build, run the tests
|
|
||||||
$ gradle cleanTest test
|
|
||||||
|
|
||||||
# ignore any task optimization
|
|
||||||
$ gradle test --rerun-tasks
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[[ Gradle Java ]]
|
|
||||||
https://docs.gradle.org/current/userguide/tutorial_java_projects.html
|
|
||||||
|
|
||||||
[ publish jar ]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[[ Install Multiple Gradle Binaries (brew) ]]
|
|
||||||
|
|
||||||
[ Install multiple versions ]
|
|
||||||
brew versions gradle
|
|
||||||
git clone https://github.com/Homebrew/homebrew.git
|
|
||||||
git checkout 0123456 Library/Formula/gradle.rb
|
|
||||||
brew unlink gradle
|
|
||||||
Install diff version
|
|
||||||
brew install ~/scripts/myNewGradeScript.rb
|
|
||||||
--or--
|
|
||||||
brew install Library/Formula/gradle.rb
|
|
||||||
brew switch gradle 1.9
|
|
||||||
brew switch gradle 1.10
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[[ Gradle Preehond Dev Notes ]]
|
|
||||||
|
|
||||||
MODERN
|
|
||||||
Source: http://blog.paralleluniverse.co/2014/05/01/modern-java/
|
|
||||||
|
|
||||||
|
|
||||||
task deployJar(type: Jar, dependsOn: jar) {
|
|
||||||
baseName = project.name + '-deploy'
|
|
||||||
deps = configurations.runtime + configurations.runtime.allArtifacts.files
|
|
||||||
depClasses = { deps.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
||||||
from(depClasses) {
|
|
||||||
exclude 'META-INF/MANIFEST.MF'
|
|
||||||
}
|
|
||||||
manifest {
|
|
||||||
attributes 'Main-Class': 'com.example.redphone.Main'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
* What went wrong:
|
|
||||||
A problem was found with the configuration of task ':startScripts'.
|
|
||||||
> No value has been specified for property 'mainClassName'.
|
|
||||||
|
|
||||||
myMain = 'com.example.redphone.Main'
|
|
||||||
|
|
||||||
startScripts {
|
|
||||||
mainClassName = myMain
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
[[[ Normalized Crypto WolfCrypt NDK ]]]
|
|
||||||
|
|
||||||
[[ Features ]]
|
|
||||||
-uses gradle to build native files
|
|
||||||
-uses NEW CMake (CMake Android plugin)
|
|
||||||
-AEAD crypto support
|
|
||||||
-NO LEGACY. removes legacy crypto support
|
|
||||||
-WolfSSL crypto engine
|
|
||||||
-FIPS-140 ver available
|
|
||||||
-Quantum-Computing safe crypto
|
|
||||||
-super-fast NTRU algorithm
|
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
[[[ Agile ]]]
|
|
||||||
|
|
||||||
|
|
||||||
[[ Working ]]
|
|
||||||
|
|
||||||
[ Tasks ]
|
|
||||||
* l@@k at Android Weekly emails
|
|
||||||
* fixing CMake build
|
|
||||||
-discover which gradle to target
|
|
||||||
|
|
||||||
|
|
||||||
[ Milestone ]
|
|
||||||
* WolfCrypt compile
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[[ Backlog ]]
|
|
||||||
|
|
||||||
[ Milestone ]
|
|
||||||
* JNI wrapper tests
|
|
||||||
-RSA Public Key Generation
|
|
||||||
-AES crypt
|
|
||||||
|
|
||||||
[ Tasks ]
|
|
||||||
* create "update_wolfssl.sh" script to pull latest from the repository, apply patches, build wolfssl, then copy library files to a "dist" folder for usage. As of right now the build works but the generated files aren''t auto copied. It is generated by hand.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[[ Completed ]]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ Completed
|
||||||
---------
|
---------
|
||||||
|
|
||||||
* WolfSSL compile
|
* WolfSSL compile
|
||||||
* fixing CMake build
|
- fixing CMake build
|
||||||
- discover which gradle to target --> wolfssl was main gradle app target
|
- discover which gradle to target --> wolfssl was main gradle app target
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
===========================
|
|
||||||
WolfSSL + WolfCrypt MERGING
|
|
||||||
===========================
|
|
||||||
|
|
||||||
* try to remove build artifacts because build stops working
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
nc-wc-ndk_JNI
|
|
||||||
- "ccc", jni wolfcrypt code is compiling (cool)
|
|
||||||
-
|
|
||||||
|
|
||||||
nc-wc-ndk_WOLFSSL
|
|
||||||
- wolfSSL is compiling a few times, then STOPs
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
nc-wc-ndk_MERGE
|
|
||||||
---------------
|
|
||||||
|
|
||||||
* hopefully can get both WolfSSL and JNI compiling
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
===============
|
||||||
|
Weekly Progress
|
||||||
|
===============
|
||||||
|
|
||||||
|
|
||||||
|
WORKING
|
||||||
|
=======
|
||||||
|
|
||||||
|
* test JNI libs !!! =)
|
||||||
|
- try some java code that will call a C-hook
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ISSUES
|
||||||
|
======
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
sdk.dir=/usr/local/opt/android-sdk
|
||||||
|
ndk.dir=/usr/local/opt/android-sdk/ndk-bundle
|
Loading…
Reference in New Issue