Skip to content

Commit

Permalink
Secss file ready for Android.
Browse files Browse the repository at this point in the history
  • Loading branch information
dimsa committed Sep 16, 2015
1 parent ec3475b commit 558d3c8
Show file tree
Hide file tree
Showing 9 changed files with 74 additions and 556 deletions.
2 changes: 1 addition & 1 deletion Android/Debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<application android:persistent="False"
android:restoreAnyVersion="False"
android:label="ShadowEngineDemo"
android:debuggable="True"
android:debuggable="False"
android:largeHeap="False"
android:icon="@drawable/ic_launcher"
android:theme="@style/AppTheme"
Expand Down
2 changes: 1 addition & 1 deletion Android/Debug/ShadowEngineDemo/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<application android:persistent="False"
android:restoreAnyVersion="False"
android:label="ShadowEngineDemo"
android:debuggable="True"
android:debuggable="False"
android:largeHeap="False"
android:icon="@drawable/ic_launcher"
android:theme="@style/AppTheme"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.\assets\internal\formatters.secss
.\assets\internal\back.jpg
.\assets\internal\res.png
.\assets\internal\images.load
273 changes: 0 additions & 273 deletions Art/formatters.secs

This file was deleted.

6 changes: 3 additions & 3 deletions Engine/uFormatterList.pas
Original file line number Diff line number Diff line change
Expand Up @@ -104,22 +104,22 @@ procedure TFormatterList.LoadSECSS(const AFileName: string);
begin
vFile := TStringList.Create;
vFile.LoadFromFile(AFileName);

// Óáèðàåì ïåðåíîñû ñòðîê
vReg := TRegEx.Create('[\r\n\s\t]*');
vFile.Text := vReg.Replace(vFile.Text, '');

// Äåëèì ïî ñòèëÿì
vReg := TRegEx.Create('}');
vStrs := vReg.Split(vFile.Text);

// Äåëèì íà íàçâàíèå ñòèëÿ è åãî òåêñò
vReg := TRegEx.Create('{');
for i := 0 to Length(vStrs) - 1 do
begin
vDirective := vReg.Split(vStrs[i]);
if Length(vStrs) >= 2 then
if Length(vDirective) >= 2 then
begin
FLoadedStyles.Add(vDirective[0], vDirective[1]);
end;
end;
vFile.Free;
end;
Expand Down
40 changes: 40 additions & 0 deletions ShadowEngineDemo.deployproj
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,14 @@
<RemoteCommand/>
<Overwrite>True</Overwrite>
</DeployFile>
<DeployFile Include="Art\formatters.secss" Condition="'$(Config)'=='Debug'">
<RemoteDir>ShadowEngineDemo\assets\internal\</RemoteDir>
<RemoteName>formatters.secss</RemoteName>
<Operation>0</Operation>
<LocalCommand/>
<RemoteCommand/>
<Overwrite>True</Overwrite>
</DeployFile>
<DeployFile Include="Android\Release\splash_image_def.xml" Condition="'$(Config)'=='Release'">
<RemoteDir>ShadowEngineDemo\res\drawable\</RemoteDir>
<RemoteName>splash_image_def.xml</RemoteName>
Expand Down Expand Up @@ -427,6 +435,14 @@
<RemoteCommand/>
<Overwrite>True</Overwrite>
</DeployFile>
<DeployFile Include="Art\formatters.secss" Condition="'$(Config)'=='Debug'">
<RemoteDir>ShadowEngineDemo\</RemoteDir>
<RemoteName>formatters.secss</RemoteName>
<Operation>0</Operation>
<LocalCommand/>
<RemoteCommand/>
<Overwrite>True</Overwrite>
</DeployFile>
<DeployFile Include="Art\back.jpg" Condition="'$(Config)'=='Debug'">
<RemoteDir>ShadowEngineDemo\</RemoteDir>
<RemoteName>back.jpg</RemoteName>
Expand Down Expand Up @@ -478,6 +494,14 @@
<RemoteCommand/>
<Overwrite>True</Overwrite>
</DeployFile>
<DeployFile Include="Art\formatters.secss" Condition="'$(Config)'=='Debug'">
<RemoteDir>ShadowEngineDemo\</RemoteDir>
<RemoteName>formatters.secss</RemoteName>
<Operation>0</Operation>
<LocalCommand/>
<RemoteCommand/>
<Overwrite>True</Overwrite>
</DeployFile>
<DeployFile Include="Art\back.jpg" Condition="'$(Config)'=='Debug'">
<RemoteDir>ShadowEngineDemo\</RemoteDir>
<RemoteName>back.jpg</RemoteName>
Expand Down Expand Up @@ -528,6 +552,14 @@
<RemoteCommand/>
<Overwrite>True</Overwrite>
</DeployFile>
<DeployFile Include="Art\formatters.secss" Condition="'$(Config)'=='Debug'">
<RemoteDir>ShadowEngineDemo.app\Contents\MacOS\</RemoteDir>
<RemoteName>formatters.secss</RemoteName>
<Operation>0</Operation>
<LocalCommand/>
<RemoteCommand/>
<Overwrite>True</Overwrite>
</DeployFile>
<DeployFile Include="Art\back.jpg" Condition="'$(Config)'=='Debug'">
<RemoteDir>ShadowEngineDemo.app\Contents\MacOS\</RemoteDir>
<RemoteName>back.jpg</RemoteName>
Expand Down Expand Up @@ -594,6 +626,14 @@
<RemoteCommand/>
<Overwrite>True</Overwrite>
</DeployFile>
<DeployFile Include="Art\formatters.secss" Condition="'$(Config)'=='Debug'">
<RemoteDir>ShadowEngineDemo.app\</RemoteDir>
<RemoteName>formatters.secss</RemoteName>
<Operation>0</Operation>
<LocalCommand/>
<RemoteCommand/>
<Overwrite>True</Overwrite>
</DeployFile>
<DeployFile Include="Art\back.jpg" Condition="'$(Config)'=='Debug'">
<RemoteDir>ShadowEngineDemo.app\</RemoteDir>
<RemoteName>back.jpg</RemoteName>
Expand Down
Loading

0 comments on commit 558d3c8

Please sign in to comment.