Skip to content

Commit aaa99e9

Browse files
committed
Update minimum Unity version to 2021.2
1 parent 44049d3 commit aaa99e9

File tree

4 files changed

+3
-16
lines changed

4 files changed

+3
-16
lines changed

Editor/Csv/SQLiteAssetCsvImporter.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@
2121
*/
2222
using System.IO;
2323
using SQLite.Csv;
24-
#if UNITY_2020_2_OR_NEWER
2524
using UnityEditor.AssetImporters;
26-
#else
27-
using UnityEditor.Experimental.AssetImporters;
28-
#endif
2925
using UnityEngine;
3026

3127
namespace SQLite.Editor.Csv

Editor/SQLiteAssetImporter.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@
2020
* SOFTWARE.
2121
*/
2222
using System.IO;
23-
#if UNITY_2020_2_OR_NEWER
2423
using UnityEditor.AssetImporters;
25-
#else
26-
using UnityEditor.Experimental.AssetImporters;
27-
#endif
2824
using UnityEngine;
2925

3026
namespace SQLite.Editor

Runtime/SQLiteConnectionExtensions.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@
2424
using System.IO;
2525
using System.Runtime.InteropServices;
2626
using SQLite.Csv;
27-
#if UNITY_2018_1_OR_NEWER
2827
using Unity.Collections;
2928
using Unity.Collections.LowLevel.Unsafe;
30-
#endif
3129
using UnityEngine;
3230

3331
namespace SQLite
@@ -78,7 +76,6 @@ public static SQLiteConnection Deserialize(this SQLiteConnection db, byte[] buff
7876
return db;
7977
}
8078

81-
#if UNITY_2018_1_OR_NEWER
8279
public static SQLiteConnection Deserialize(this SQLiteConnection db, NativeArray<byte> buffer, string schema = null, SQLite3.DeserializeFlags flags = SQLite3.DeserializeFlags.None)
8380
{
8481
return Deserialize(db, buffer, buffer.Length, schema, flags);
@@ -97,9 +94,7 @@ public static SQLiteConnection Deserialize(this SQLiteConnection db, NativeArray
9794
}
9895
return db;
9996
}
100-
#endif
10197

102-
#if UNITY_2021_2_OR_NEWER
10398
public static SQLiteConnection Deserialize(this SQLiteConnection db, ReadOnlySpan<byte> buffer, string schema = null, SQLite3.DeserializeFlags flags = SQLite3.DeserializeFlags.None)
10499
{
105100
return Deserialize(db, buffer, buffer.Length, schema, flags);
@@ -121,7 +116,6 @@ public static SQLiteConnection Deserialize(this SQLiteConnection db, ReadOnlySpa
121116
}
122117
return db;
123118
}
124-
#endif
125119

126120
/// <summary>
127121
/// Import a CSV data stream into the table named <paramref name="tableName"/> inside the database.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@
1414
"description": "Demonstrates a simple REPL for SQL statements.",
1515
"path": "Samples~/REPL"
1616
}
17-
]
18-
}
17+
],
18+
"unity": "2021.2"
19+
}

0 commit comments

Comments
 (0)