-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from iden3/0.0.1-alpha.1
0.0.1 alpha.1
- Loading branch information
Showing
29 changed files
with
291 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,5 @@ | |
.externalNativeBuild | ||
.cxx | ||
local.properties | ||
|
||
github.properties |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/example/rapidsnark_example/ui/theme/Color.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/example/rapidsnark_example/ui/theme/Type.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<resources> | ||
<string name="app_name">rapidsnark_example</string> | ||
<string name="app_name">android_rapidsnark</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<style name="Theme.Rapidsnark_example" parent="android:Theme.Material.Light.NoActionBar" /> | ||
<style name="Theme.android_rapidsnark" parent="android:Theme.Material.Light.NoActionBar" /> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,26 @@ kotlin.code.style=official | |
# Enables namespacing of each library's R class so that its R class includes only the | ||
# resources declared in the library itself and none from the library's dependencies, | ||
# thereby reducing the size of the R class for that library | ||
android.nonTransitiveRClass=true | ||
android.nonTransitiveRClass=true | ||
|
||
VERSION_NAME=0.0.1-alpha.1 | ||
VERSION_CODE=1 | ||
GROUP=io.iden3 | ||
|
||
POM_DESCRIPTION=This library is Android Kotlin wrapper for the [Rapidsnark](https://github.com/iden3/rapidsnark). It enables the generation of proofs for specified circuits within an Android environment. | ||
POM_URL=https://github.com/iden3/android-rapidsnark | ||
POM_SCM_URL=https://github.com/iden3/android-rapidsnark | ||
POM_SCM_CONNECTION=scm:[email protected]:iden3/android-rapidsnark.git | ||
POM_SCM_DEV_CONNECTION=scm:[email protected]:iden3/android-rapidsnark.git | ||
POM_LICENCE_NAME=GNU General Public License v3.0 | ||
POM_LICENCE_URL=https://github.com/iden3/android-rapidsnark/COPYING | ||
POM_LICENCE_DIST=repo | ||
POM_DEVELOPER_ID=<user id that is created on jira> | ||
POM_DEVELOPER_NAME=<Developer Name> | ||
POM_DEVELOPER_EMAIL=<Developer E-Mail Address> | ||
ossrhUsername='' | ||
ossrhPassword='' | ||
|
||
signing.keyId=46C550A2 | ||
signing.password=somepassphrase | ||
signing.secretKeyRingFile=/Users/moria/.gnupg/secring.gpg |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
import java.io.FileInputStream | ||
import java.util.Properties | ||
|
||
plugins { | ||
id("com.android.library") | ||
id("org.jetbrains.kotlin.android") | ||
id("maven-publish") | ||
} | ||
|
||
val githubProperties = Properties() | ||
githubProperties.load(FileInputStream(rootProject.file("github.properties"))) //Set env variable GPR_USER & GPR_API_KEY if not adding a properties file | ||
|
||
repositories { | ||
google() | ||
mavenCentral() | ||
maven { | ||
name = "GitHubPackages" | ||
url = uri("https://maven.pkg.github.com/iden3/android-rapidsnark") | ||
credentials { | ||
username = githubProperties.getProperty("gpr.user") | ||
password = githubProperties.getProperty("gpr.key") | ||
} | ||
} | ||
} | ||
|
||
android { | ||
namespace = "io.iden3.rapidsnark" | ||
compileSdk = 34 | ||
|
||
defaultConfig { | ||
minSdk = 24 | ||
|
||
consumerProguardFiles("consumer-rules.pro") | ||
|
||
externalNativeBuild { | ||
cmake { | ||
cppFlags += "-O2 -frtti -fexceptions -Wall -fstack-protector-all" | ||
abiFilters += listOf("x86_64", "arm64-v8a") | ||
} | ||
} | ||
ndk { | ||
//noinspection ChromeOsAbiSupport | ||
abiFilters += listOf("x86_64", "arm64-v8a") | ||
} | ||
} | ||
|
||
sourceSets { | ||
getByName("main") { | ||
java.srcDir("src/main/java") | ||
jniLibs.srcDir("src/main/libs") | ||
} | ||
} | ||
|
||
buildTypes { | ||
release { | ||
isMinifyEnabled = false | ||
proguardFiles( | ||
getDefaultProguardFile("proguard-android-optimize.txt"), | ||
"proguard-rules.pro" | ||
) | ||
} | ||
} | ||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
} | ||
kotlinOptions { | ||
jvmTarget = "1.8" | ||
} | ||
externalNativeBuild { | ||
cmake { | ||
path = file("src/main/cpp/CMakeLists.txt") | ||
version = "3.22.1" | ||
} | ||
} | ||
|
||
publishing { | ||
singleVariant("release") { | ||
withJavadocJar() | ||
withSourcesJar() | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation("androidx.core:core-ktx:1.10.1") | ||
implementation("androidx.appcompat:appcompat:1.6.1") | ||
} | ||
|
||
publishing { | ||
publications { | ||
create<MavenPublication>("maven") { | ||
groupId = "io.iden3" | ||
artifactId = "rapidsnark" | ||
version = "0.0.1-alpha.1" | ||
artifact("$buildDir/outputs/aar/rapidsnark-release.aar") | ||
} | ||
} | ||
|
||
repositories { | ||
maven { | ||
name = "GitHubPackages" | ||
url = uri("https://maven.pkg.github.com/iden3/android-rapidsnark") | ||
credentials { | ||
username = githubProperties.getProperty("gpr.user") | ||
password = githubProperties.getProperty("gpr.key") | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.