Skip to content

Commit

Permalink
package dependencies modify
Browse files Browse the repository at this point in the history
  • Loading branch information
yomunsam committed May 13, 2020
1 parent 4cfc6f0 commit dc6b78b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 33 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ package name: `io.nekonya.tinax.core`

Before setup `TinaX.Core`, please ensure the following dependencies are installed by `Unity Package Manager`:

- [com.neuecc.unirx](https://github.com/yomunsam/UniRx.UPM) :`git://github.com/yomunsam/UniRx.UPM.git`
- [com.cysharp.unitask](https://github.com/yomunsam/UniTask.UPM) :`git://github.com/yomunsam/UniTask.UPM.git`
- [com.neuecc.unirx](https://github.com/neuecc/UniRx#upm-package) :`https://github.com/neuecc/UniRx.git?path=Assets/Plugins/UniRx/Scripts`
- [com.cysharp.unitask](https://github.com/Cysharp/UniTask#upm-package) :`https://github.com/Cysharp/UniTask.git?path=Assets/UniRx.Async`

<br><br>

Expand Down
34 changes: 4 additions & 30 deletions Runtime/Scripts/Extends/DotNet/StringExtend.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,8 @@ public static string Base64ToStr(this string str)
/// <returns></returns>
public static string EncodeBase64(this string str)
{
try
{
var bytes = Encoding.UTF8.GetBytes(str);
return Convert.ToBase64String(bytes);
}
catch (EncoderFallbackException e)
{
throw e;
}
catch (ArgumentNullException e)
{
throw e;
}
var bytes = Encoding.UTF8.GetBytes(str);
return Convert.ToBase64String(bytes);
}

/// <summary>
Expand All @@ -143,23 +132,8 @@ public static string EncodeBase64(this string str)
/// <returns></returns>
public static string DecodeBase64(this string base64_str)
{
try
{
var b = Convert.FromBase64String(base64_str);
return Encoding.UTF8.GetString(b);
}
catch (FormatException e)
{
throw e;
}
catch (EncoderFallbackException e)
{
throw e;
}
catch (ArgumentNullException e)
{
throw e;
}
var b = Convert.FromBase64String(base64_str);
return Encoding.UTF8.GetString(b);
}

public static string GetMD5(this string str,bool lower = true,bool shortMD5 = false)
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
"email": "yomunsam@gmail.com",
"url": "https://yomunchan.moe"
},
"license":"AGPLv3",
"type": "library",
"dependencies": {
"com.neuecc.unirx": "7.1.0"
"com.neuecc.unirx": "7.1.0",
"com.cysharp.unitask":"1.3.1"
}
}

0 comments on commit dc6b78b

Please # to comment.