Compare commits
	
		
			1 Commits
		
	
	
		
			2458--seed
			...
			1949--enab
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | cc19e6f326 | 
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								src/PCloudBindings/Jars/pcloud-sdk-android-1.9.1.aar
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/PCloudBindings/Jars/pcloud-sdk-android-1.9.1.aar
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								src/PCloudBindings/Jars/pcloud-sdk-java-core-1.9.1.jar
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/PCloudBindings/Jars/pcloud-sdk-java-core-1.9.1.jar
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| @@ -56,7 +56,7 @@ | ||||
|   <ItemGroup> | ||||
|     <None Include="Jars\AboutJars.txt" /> | ||||
|     <None Include="Additions\AboutAdditions.txt" /> | ||||
|     <LibraryProjectZip Include="Jars\pcloud-sdk-android-1.8.1.aar" /> | ||||
|     <LibraryProjectZip Include="Jars\pcloud-sdk-android-1.9.1.aar" /> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <TransformFile Include="Transforms\Metadata.xml" /> | ||||
| @@ -72,6 +72,6 @@ | ||||
|   </Target> | ||||
|   --> | ||||
|   <ItemGroup> | ||||
|     <EmbeddedReferenceJar Include="Jars\pcloud-sdk-java-core-1.8.1.jar" /> | ||||
|     <EmbeddedReferenceJar Include="Jars\pcloud-sdk-java-core-1.9.1.jar" /> | ||||
|   </ItemGroup> | ||||
| </Project> | ||||
|   | ||||
| @@ -47,8 +47,8 @@ dependencies { | ||||
|     implementation('com.onedrive.sdk:onedrive-sdk-android:1.2.0') { | ||||
|         transitive = false | ||||
|     } | ||||
|     implementation 'com.pcloud.sdk:java-core:1.8.1' | ||||
|     implementation 'com.pcloud.sdk:android:1.8.1' | ||||
|     implementation 'com.pcloud.sdk:java-core:1.9.1' | ||||
|     implementation 'com.pcloud.sdk:android:1.9.1' | ||||
|     implementation 'com.google.code.gson:gson:2.8.6' | ||||
|     implementation 'com.microsoft.services.msa:msa-auth:0.8.6' | ||||
|     implementation 'com.microsoft.aad:adal:1.14.0' | ||||
|   | ||||
| @@ -1,13 +1,3 @@ | ||||
| package com.crocoapps.javafilestoragetest2; | ||||
|  | ||||
| import android.app.Application; | ||||
| import android.test.ApplicationTestCase; | ||||
|  | ||||
| /** | ||||
|  * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> | ||||
|  */ | ||||
| public class ApplicationTest extends ApplicationTestCase<Application> { | ||||
|     public ApplicationTest() { | ||||
|         super(Application.class); | ||||
|     } | ||||
| } | ||||
| @@ -31,8 +31,17 @@ namespace PluginTOTP | ||||
| 				_muteWarnings = muteWarnings; | ||||
| 			} | ||||
|  | ||||
| 			/// <summary> | ||||
| 			/// Check if specified Entry contains Settings that are not null. | ||||
| 			/// </summary> | ||||
| 			internal bool SettingsCheck(IDictionary<string, string> entryFields) | ||||
| 			{ | ||||
| 				string settings; | ||||
| 				entryFields.TryGetValue(SettingsFieldName, out settings); | ||||
| 				return !String.IsNullOrEmpty(settings); | ||||
| 			} | ||||
|  | ||||
| 			internal bool HasSeed(IDictionary<string, string> entryFields) | ||||
| 			internal bool SeedCheck(IDictionary<string, string> entryFields) | ||||
| 			{ | ||||
| 				string seed; | ||||
| 				entryFields.TryGetValue(SeedFieldName, out seed); | ||||
| @@ -92,14 +101,14 @@ namespace PluginTOTP | ||||
|  | ||||
| 			private string[] SettingsGet(IDictionary<string, string> entryFields) | ||||
| 			{ | ||||
|                 return entryFields.TryGetValue(SettingsFieldName, out var settings) ? settings.Split(';') : new[] { "30", "6" }; | ||||
| 				return entryFields[SettingsFieldName].Split(';'); | ||||
| 			} | ||||
|  | ||||
| 			public TotpData GetTotpData(IDictionary<string, string> entryFields) | ||||
| 			{ | ||||
| 				TotpData res = new TotpData(); | ||||
|  | ||||
| 				if (HasSeed(entryFields)) | ||||
| 				if (SettingsCheck(entryFields) && SeedCheck(entryFields)) | ||||
| 				{ | ||||
| 					bool ValidInterval; bool ValidLength; bool ValidUrl; | ||||
| 					if (SettingsValidate(entryFields, out ValidInterval, out ValidLength, out ValidUrl)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user