Skip to content

Commit 53b7f82

Browse files
authored
Merge pull request #1 from iden3/0.0.1-alpha.1
0.0.1 alpha.1
2 parents ce4e5f2 + faf14c4 commit 53b7f82

29 files changed

+291
-103
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@
1414
.externalNativeBuild
1515
.cxx
1616
local.properties
17+
18+
github.properties

.idea/gradle.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Reads .zkey file directly from filesystem.
2727

2828

2929
```Kotlin
30-
import com.iden3.rapidsnark.*
30+
import io.iden3.rapidsnark.*
3131

3232
// ...
3333

@@ -41,7 +41,7 @@ val (proof, publicSignals) = groth16ProveWithZKeyFilePath("path/to/zkey", wtns)
4141
Verifies proof and public signals against verification key.
4242

4343
```Kotlin
44-
import com.iden3.rapidsnark.*
44+
import io.iden3.rapidsnark.*
4545

4646
// ...
4747

@@ -63,7 +63,7 @@ Function that takes zkey and witness files encoded as base64.
6363
>Large circuits might cause OOM. Use with caution.
6464
6565
```Kotlin
66-
import com.iden3.rapidsnark.*
66+
import io.iden3.rapidsnark.*
6767

6868
// ...
6969

@@ -77,7 +77,7 @@ val (proof, publicSignals) = groth16Prove(zkey, wtns)
7777
Calculates public buffer size for specified zkey.
7878

7979
```Kotlin
80-
import com.iden3.rapidsnark.*
80+
import io.iden3.rapidsnark.*
8181

8282
// ...
8383

app/build.gradle.kts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,21 @@ plugins {
33
id("org.jetbrains.kotlin.android")
44
}
55

6+
repositories {
7+
google()
8+
mavenCentral()
9+
maven {
10+
name = "GitHubPackages"
11+
url = uri("https://maven.pkg.github.com/iden3/android-rapidsnark")
12+
}
13+
}
14+
615
android {
7-
namespace = "com.example.rapidsnark_example"
16+
namespace = "com.example.android_rapidsnark"
817
compileSdk = 34
918

1019
defaultConfig {
11-
applicationId = "com.example.rapidsnark_example"
20+
applicationId = "com.example.android_rapidsnark"
1221
minSdk = 24
1322
targetSdk = 34
1423
versionCode = 1
@@ -47,7 +56,7 @@ android {
4756
}
4857

4958
dependencies {
50-
implementation(project(":rapidsnark_android"))
59+
implementation("io.iden3:rapidsnark:0.0.1-alpha.1")
5160

5261
implementation("androidx.core:core-ktx:1.10.1")
5362
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.1")

app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
android:label="@string/app_name"
1111
android:roundIcon="@mipmap/ic_launcher_round"
1212
android:supportsRtl="true"
13-
android:theme="@style/Theme.Rapidsnark_example"
13+
android:theme="@style/Theme.android_rapidsnark"
1414
tools:targetApi="31">
1515
<activity
16-
android:name="com.example.rapidsnark_example.MainActivity"
16+
android:name="com.example.android_rapidsnark.MainActivity"
1717
android:exported="true"
1818
android:label="@string/app_name"
19-
android:theme="@style/Theme.Rapidsnark_example">
19+
android:theme="@style/Theme.android_rapidsnark">
2020
<intent-filter>
2121
<action android:name="android.intent.action.MAIN" />
2222

app/src/main/java/com/example/rapidsnark_example/MainActivity.kt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.rapidsnark_example
1+
package com.example.android_rapidsnark
22

33
import android.content.ClipData
44
import android.content.ClipboardManager
@@ -29,20 +29,22 @@ import androidx.compose.ui.Modifier
2929
import androidx.compose.ui.platform.LocalContext
3030
import androidx.compose.ui.tooling.preview.Preview
3131
import androidx.compose.ui.unit.dp
32-
import com.example.rapidsnark_example.ui.theme.Rapidsnark_exampleTheme
33-
import com.iden3.rapidsnark.*
32+
import com.example.android_rapidsnark.ui.theme.android_rapidsnarkTheme
33+
3434
import java.io.ByteArrayOutputStream
3535
import java.io.File
3636
import java.io.IOException
3737
import java.io.InputStream
3838
import java.io.OutputStream
3939

40+
import io.iden3.rapidsnark.*
41+
4042

4143
class MainActivity : ComponentActivity() {
4244
override fun onCreate(savedInstanceState: Bundle?) {
4345
super.onCreate(savedInstanceState)
4446
setContent {
45-
Rapidsnark_exampleTheme {
47+
android_rapidsnarkTheme {
4648
// A surface container using the 'background' color from the theme
4749
Surface(
4850
modifier = Modifier.fillMaxSize(),
@@ -119,7 +121,7 @@ fun Greeting() {
119121
@Preview(showBackground = true)
120122
@Composable
121123
fun GreetingPreview() {
122-
Rapidsnark_exampleTheme {
124+
android_rapidsnarkTheme {
123125
Greeting()
124126
}
125127
}

app/src/main/java/com/example/rapidsnark_example/ui/theme/Color.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.rapidsnark_example.ui.theme
1+
package com.example.android_rapidsnark.ui.theme
22

33
import androidx.compose.ui.graphics.Color
44

app/src/main/java/com/example/rapidsnark_example/ui/theme/Theme.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.rapidsnark_example.ui.theme
1+
package com.example.android_rapidsnark.ui.theme
22

33
import android.app.Activity
44
import android.os.Build
@@ -38,7 +38,7 @@ private val LightColorScheme = lightColorScheme(
3838
)
3939

4040
@Composable
41-
fun Rapidsnark_exampleTheme(
41+
fun android_rapidsnarkTheme(
4242
darkTheme: Boolean = isSystemInDarkTheme(),
4343
// Dynamic color is available on Android 12+
4444
dynamicColor: Boolean = true,

app/src/main/java/com/example/rapidsnark_example/ui/theme/Type.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.rapidsnark_example.ui.theme
1+
package com.example.android_rapidsnark.ui.theme
22

33
import androidx.compose.material3.Typography
44
import androidx.compose.ui.text.TextStyle
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<resources>
2-
<string name="app_name">rapidsnark_example</string>
2+
<string name="app_name">android_rapidsnark</string>
33
</resources>

0 commit comments

Comments
 (0)