-
Notifications
You must be signed in to change notification settings - Fork 7
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 #6 from LtbLightning/Post-Testing-Changes
Post testing changes
- Loading branch information
Showing
24 changed files
with
17,789 additions
and
1,575 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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import 'package:flutter/cupertino.dart'; | ||
import 'package:payjoin_flutter/payjoin.dart'; | ||
|
||
class PayjoinLibrary { | ||
static const PJ_URL = "https://localhost:8088"; | ||
static const OH_RELAY = "https://localhost:8088"; | ||
static const LOCAL_CERT_FILE = "localhost.der"; | ||
Future<Uri> buildPjUri(double amount, String address, String pj) async { | ||
try { | ||
final pjUri = "bitcoin:$address?amount=${amount / 100000000.0}&pj=$pj"; | ||
return await Uri.fromStr(uri: pjUri); | ||
} catch (e) { | ||
debugPrint(e.toString()); | ||
rethrow; | ||
} | ||
} | ||
} |
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,5 +1,6 @@ | ||
# See `pure_dart` example for comments on the configs | ||
|
||
rust_input: rust/src/api/*.rs | ||
dart_output: lib/src/generated/ | ||
full_dep: true | ||
c_output: ios/Classes/frb_generated.h | ||
dart_entrypoint_class_name: PayjoinCore |
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,4 @@ | ||
public func dummyMethodToEnforceBundling() -> Int64 { | ||
return dummy_method_to_enforce_bundling() | ||
} | ||
let dummyVar = dummyMethodToEnforceBundling(); |
Oops, something went wrong.