-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd30e1a
commit 2288985
Showing
17 changed files
with
1,856 additions
and
28 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
5 changes: 0 additions & 5 deletions
5
packages/frontend/apps/android/App/app/src/main/java/app/affine/pro/MainActivity.java
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
packages/frontend/apps/android/App/app/src/main/java/app/affine/pro/MainActivity.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package app.affine.pro | ||
|
||
import android.os.Build | ||
import android.os.Bundle | ||
import android.util.Log | ||
import androidx.annotation.RequiresApi | ||
import com.getcapacitor.BridgeActivity | ||
import uniffi.affine_mobile_native.hashcashMint; | ||
|
||
class MainActivity : BridgeActivity() { | ||
// init { | ||
// System.loadLibrary("affine_mobile_native") | ||
// } | ||
|
||
@RequiresApi(Build.VERSION_CODES.R) | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
val resource = "hello"; | ||
val hashed = hashcashMint(resource) | ||
Log.d("MainActivity", "onCreate: $hashed") | ||
super.onCreate(savedInstanceState) | ||
} | ||
} |
Oops, something went wrong.