File tree Expand file tree Collapse file tree 6 files changed +35
-17
lines changed
Expand file tree Collapse file tree 6 files changed +35
-17
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ Firebase dynamic link.
5454
5555#### SJFirebaseAuthEmai
5656``` python
57- class sjfirebase.jclass.auth.SJFirebaseAuthEmai
57+ class sjfirebase.jclass.emailauth.SJFirebaseAuthEmail
5858```
5959The entry point of the Firebase Authentication SDK.
6060First, obtain an instance of this class by calling ` get_instance `
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " sjfirebase"
3- version = " 1.2 .1"
4- description = " Implement Firebase Java SDK in pytho "
3+ version = " 1.3 .1"
4+ description = " Implement Firebase Java SDK in python "
55authors = [" Kenechukwu Akubue <kengoon19@gmail.com>" ]
66readme = " README.md"
77packages = [{include = " sjfirebase" }]
88
99[tool .poetry .dependencies ]
10- python = " ^3.11 "
10+ python = " ^3.8 "
1111pyjnius = " ^1.6.1"
1212
1313
Original file line number Diff line number Diff line change 1- from .auth import *
1+ from .emailauth import *
22from .storage import *
33from .firestore import *
44from .database import *
File renamed without changes.
Original file line number Diff line number Diff line change 1+ from jnius import JavaClass , MetaJavaClass , JavaStaticMethod
2+ from sjfirebase import package_path
3+
4+ __all__ = ("SJFirebaseAuthPhone" , )
5+
6+
7+ class SJFirebaseAuthPhone (JavaClass , metaclass = MetaJavaClass ):
8+ __javaclass__ = f"{ package_path } SJFirebaseAuthPhone"
9+ get_instance = JavaStaticMethod ("()Lcom/google/firebase/auth/FirebaseAuth;" )
10+ startPhoneNumberVerification = JavaStaticMethod (
11+ "(Ljava/lang/String;"
12+ "Ljava/lang/Long;"
13+ "Landroid/app/Activity;"
14+ "Lcom/google/firebase/auth/PhoneAuthProvider$OnVerificationStateChangedCallbacks;)V"
15+ )
16+ resendVerificationCode = JavaStaticMethod (
17+ "(Ljava/lang/String;"
18+ "Ljava/lang/Long;Landroid/app/Activity;"
19+ "Lcom/google/firebase/auth/PhoneAuthProvider$OnVerificationStateChangedCallbacks;"
20+ "Lcom/google/firebase/auth/PhoneAuthProvider$ForceResendingToken;)V"
21+ )
22+ verifyPhoneNumberWithCode = JavaStaticMethod (
23+ "(Ljava/lang/String;Ljava/lang/String;)Lcom/google/firebase/auth/PhoneAuthCredential;"
24+ )
Original file line number Diff line number Diff line change 1- from jnius import JavaClass , MetaJavaClass , JavaMultipleMethod
2- from sjfirebase import package_path
1+ from jnius import autoclass
2+ from sjfirebase import package
33
44__all__ = ("SJFirebaseStorage" , )
55
66
7- class SJFirebaseStorage (JavaClass , metaclass = MetaJavaClass ):
8- __javaclass__ = f"{ package_path } SJFirebaseStorage"
9- get_instance = JavaMultipleMethod (
10- [
11- "()Lcom/google/firebase/storage/FirebaseStorage;" ,
12- "(Ljava/lang/String;)Lcom/google/firebase/storage/FirebaseStorage;" ,
13- "(Lcom/google/firebase/FirebaseApp;)Lcom/google/firebase/storage/FirebaseStorage;" ,
14- "(Lcom/google/firebase/FirebaseApp;Ljava/lang/String;)Lcom/google/firebase/storage/FirebaseStorage;"
15- ]
16- )
7+ class SJFirebaseStorage :
8+ @classmethod
9+ def get_instance (cls , * args ):
10+ return autoclass (f"{ package } SJFirebaseStorage" ).get_instance (* args )
You can’t perform that action at this time.
0 commit comments