mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
local-settings naming changed to use "-"
This commit is contained in:
36
BCL.csproj
36
BCL.csproj
@ -111,13 +111,7 @@
|
||||
<DependentUpon>image.d.ts</DependentUpon>
|
||||
</TypeScriptCompile>
|
||||
<TypeScriptCompile Include="image\image.d.ts" />
|
||||
<TypeScriptCompile Include="image\image_impl.android.ts">
|
||||
<DependentUpon>image_impl.d.ts</DependentUpon>
|
||||
</TypeScriptCompile>
|
||||
<TypeScriptCompile Include="image\image_impl.d.ts" />
|
||||
<TypeScriptCompile Include="image\image_impl.ios.ts">
|
||||
<DependentUpon>image_impl.d.ts</DependentUpon>
|
||||
</TypeScriptCompile>
|
||||
<TypeScriptCompile Include="image\image-impl.d.ts" />
|
||||
<TypeScriptCompile Include="image\index.ts" />
|
||||
<TypeScriptCompile Include="location\location.android.ts">
|
||||
<DependentUpon>location.d.ts</DependentUpon>
|
||||
@ -193,21 +187,25 @@
|
||||
<TypeScriptCompile Include="http\http-request.ios.ts">
|
||||
<DependentUpon>http-request.d.ts</DependentUpon>
|
||||
</TypeScriptCompile>
|
||||
<TypeScriptCompile Include="image\image-impl.android.ts">
|
||||
<DependentUpon>image-impl.d.ts</DependentUpon>
|
||||
</TypeScriptCompile>
|
||||
<TypeScriptCompile Include="image\image-impl.ios.ts">
|
||||
<DependentUpon>image-impl.d.ts</DependentUpon>
|
||||
</TypeScriptCompile>
|
||||
<Content Include="image\Readme.md" />
|
||||
<TypeScriptCompile Include="localsettings\index.ts" />
|
||||
<TypeScriptCompile Include="localsettings\local_settings.android.ts">
|
||||
<DependentUpon>local_settings.d.ts</DependentUpon>
|
||||
</TypeScriptCompile>
|
||||
<TypeScriptCompile Include="localsettings\local_settings.d.ts" />
|
||||
<TypeScriptCompile Include="localsettings\local_settings.ios.ts">
|
||||
<DependentUpon>local_settings.d.ts</DependentUpon>
|
||||
</TypeScriptCompile>
|
||||
<TypeScriptCompile Include="localsettings\local_settings_common.ts">
|
||||
<DependentUpon>local_settings.d.ts</DependentUpon>
|
||||
</TypeScriptCompile>
|
||||
<TypeScriptCompile Include="local-settings\index.ts" />
|
||||
<TypeScriptCompile Include="local-settings\local-settings.d.ts" />
|
||||
<TypeScriptCompile Include="location\location_common.ts">
|
||||
<DependentUpon>location.d.ts</DependentUpon>
|
||||
</TypeScriptCompile>
|
||||
<TypeScriptCompile Include="local-settings\local-settings.android.ts">
|
||||
<DependentUpon>local-settings.d.ts</DependentUpon>
|
||||
</TypeScriptCompile>
|
||||
<TypeScriptCompile Include="local-settings\local-settings.ios.ts">
|
||||
<DependentUpon>local-settings.d.ts</DependentUpon>
|
||||
</TypeScriptCompile>
|
||||
<TypeScriptCompile Include="local-settings\local-settings-common.ts" />
|
||||
<Content Include="_references.ts" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@ -245,7 +243,7 @@
|
||||
<Content Include="Tests\Readme.md" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="localsettings\Readme.md" />
|
||||
<Content Include="local-settings\Readme.md" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)' == 'iOS'">
|
||||
<TypeScriptModuleKind>commonjs</TypeScriptModuleKind>
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
var TKUnit = require("Tests/TKUnit");
|
||||
var LocalSettings = require("localsettings");
|
||||
var LocalSettings = require("local-settings");
|
||||
|
||||
var stringKey:string = "stringKey";
|
||||
var boolKey: string = "boolKey";
|
||||
|
@ -1,5 +1,5 @@
|
||||
import app = require("application/application");
|
||||
import impl = require("image/image_impl");
|
||||
import impl = require("image/image-impl");
|
||||
import promises = require("promises/promises");
|
||||
import http = require("http/http");
|
||||
|
||||
|
2
local-settings/index.ts
Normal file
2
local-settings/index.ts
Normal file
@ -0,0 +1,2 @@
|
||||
declare var module, require;
|
||||
module.exports = require("local-settings/local-settings");
|
@ -1,5 +1,5 @@
|
||||
import appModule = require("application/application");
|
||||
import Common = require("localsettings/local_settings_common");
|
||||
import Common = require("local-settings/local-settings-common");
|
||||
|
||||
var sharedPreferences = appModule.android.context.getSharedPreferences("prefs.db", 0);
|
||||
|
@ -1,4 +1,4 @@
|
||||
import Common = require("localsettings/local_settings_common");
|
||||
import Common = require("local-settings/local-settings-common");
|
||||
|
||||
var userDefaults = Foundation.NSUserDefaults.standardUserDefaults();
|
||||
|
@ -1,2 +0,0 @@
|
||||
declare var module, require;
|
||||
module.exports = require("localsettings/local_settings");
|
Reference in New Issue
Block a user