Skip to content

Commit

Permalink
[Windows] vnext c++ app support added (#235)
Browse files Browse the repository at this point in the history
* Windows next port

* Windows next port codes

* JSValue in use

* Newton JSON removed

* getAllItems api fix

* Module should work with c++ application

* Keyname fix

* API usage fix

* Key name and value fix

* Take build dir

* Revert gitignore change

* Remove build dir from git
  • Loading branch information
tero-paananen committed Sep 9, 2020
1 parent af0352b commit b19bb7a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion windows/RNSensitiveInfo/RNSensitiveInfo.csproj
Expand Up @@ -12,7 +12,7 @@
<DefaultLanguage>en-US</DefaultLanguage>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.18362.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.16299.0</TargetPlatformMinVersion>
<TargetPlatformMinVersion>10.0.15063.0</TargetPlatformMinVersion>
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
Expand Down
11 changes: 9 additions & 2 deletions windows/RNSensitiveInfo/RNSensitiveInfoModule.cs
Expand Up @@ -138,9 +138,16 @@ private void putExtra(string key, string value, string name)

private string sharedPreferences(JSValue options)
{
JSValue val;
var opt = options.AsObject();
var value = opt.GetValueOrDefault("sharedPreferencesNameee", "keystore");
return value.AsString();
if (opt.TryGetValue("sharedPreferencesName", out val))
{
return val.AsString();
}
else
{
return "shared_preferences";
}
}

}
Expand Down

0 comments on commit b19bb7a

Please sign in to comment.