Skip to content

Commit 9deee8a

Browse files
committed
sample updated
1 parent 660e15d commit 9deee8a

File tree

6 files changed

+22
-126
lines changed

6 files changed

+22
-126
lines changed

app/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ android {
2424
sourceSets {
2525
main.res.srcDirs = ['src/main/res', 'src/other_source/res']
2626
}
27+
28+
compileOptions {
29+
sourceCompatibility 1.8
30+
targetCompatibility 1.8
31+
}
2732
}
2833

2934
dependencies {

app/src/main/java/com/stringcare/sample/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ class MainActivity : AppCompatActivity() {
1010
override fun onCreate(savedInstanceState: Bundle?) {
1111
super.onCreate(savedInstanceState)
1212
setContentView(R.layout.activity_main)
13-
SC.init(applicationContext)
13+
SC.init { applicationContext }
1414

1515
kenobi.text = SC.reveal(R.string.kenobi)
1616
r2d2.text = SC.reveal(R.string.r2d2)
17-
c3po.text = SC.reveal(R.string.c3po)
17+
c3po.text = SC.reveal(R.string.c3po, false)
1818
}
1919
}

app/src/main/res/layout/activity_main.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565
android:layout_width="wrap_content"
6666
android:layout_height="wrap_content"
6767
android:layout_marginTop="15dp"
68-
tools:text="@string/kenobi"/>
68+
android:text="@string/r2d2"/>
69+
6970
<TextView
7071
style="@style/TextAppearance.AppCompat.Body1"
7172
android:textSize="11sp"

app/src/other_source/res/values/strings_extra.xml

Lines changed: 12 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -3,128 +3,18 @@
33
<i>Hello there</i><br></br>
44
General <strong>Kenobi</strong>.
55
</string>
6-
<string name="r2d2" hidden="true">🤖</string>
7-
<string name="c3po" androidTreatment="true" hidden="true">
8-
+---[RSA 2048]----+
9-
|.*++ o.o. |
10-
|.+B + oo. |
11-
| +++ *+. |
12-
| .o.Oo.+E |
13-
| ++B.S. |
14-
| o * =. |
15-
| + = o |
16-
| + = = . |
17-
| + o o |
18-
+----[SHA256]-----+
19-
+---[RSA 2048]----+
20-
|.*++ o.o. |
21-
|.+B + oo. |
22-
| +++ *+. |
23-
| .o.Oo.+E |
24-
| ++B.S. |
25-
| o * =. |
26-
| + = o |
27-
| + = = . |
28-
| + o o |
29-
+----[SHA256]-----+
30-
+---[RSA 2048]----+
31-
|.*++ o.o. |
32-
|.+B + oo. |
33-
| +++ *+. |
34-
| .o.Oo.+E |
35-
| ++B.S. |
36-
| o * =. |
37-
| + = o |
38-
| + = = . |
39-
| + o o |
40-
+----[SHA256]-----+
41-
+---[RSA 2048]----+
42-
|.*++ o.o. |
43-
|.+B + oo. |
44-
| +++ *+. |
45-
| .o.Oo.+E |
46-
| ++B.S. |
47-
| o * =. |
48-
| + = o |
49-
| + = = . |
50-
| + o o |
51-
+----[SHA256]-----+
52-
+---[RSA 2048]----+
53-
|.*++ o.o. |
54-
|.+B + oo. |
55-
| +++ *+. |
56-
| .o.Oo.+E |
57-
| ++B.S. |
58-
| o * =. |
59-
| + = o |
60-
| + = = . |
61-
| + o o |
62-
+----[SHA256]-----+
63-
+---[RSA 2048]----+
64-
|.*++ o.o. |
65-
|.+B + oo. |
66-
| +++ *+. |
67-
| .o.Oo.+E |
68-
| ++B.S. |
69-
| o * =. |
70-
| + = o |
71-
| + = = . |
72-
| + o o |
73-
+----[SHA256]-----+
74-
+---[RSA 2048]----+
75-
|.*++ o.o. |
76-
|.+B + oo. |
77-
| +++ *+. |
78-
| .o.Oo.+E |
79-
| ++B.S. |
80-
| o * =. |
81-
| + = o |
82-
| + = = . |
83-
| + o o |
84-
+----[SHA256]-----+
85-
+---[RSA 2048]----+
86-
|.*++ o.o. |
87-
|.+B + oo. |
88-
| +++ *+. |
89-
| .o.Oo.+E |
90-
| ++B.S. |
91-
| o * =. |
92-
| + = o |
93-
| + = = . |
94-
| + o o |
95-
+----[SHA256]-----+
96-
+---[RSA 2048]----+
97-
|.*++ o.o. |
98-
|.+B + oo. |
99-
| +++ *+. |
100-
| .o.Oo.+E |
101-
| ++B.S. |
102-
| o * =. |
103-
| + = o |
104-
| + = = . |
105-
| + o o |
106-
+----[SHA256]-----+
107-
+---[RSA 2048]----+
108-
|.*++ o.o. |
109-
|.+B + oo. |
110-
| +++ *+. |
111-
| .o.Oo.+E |
112-
| ++B.S. |
113-
| o * =. |
114-
| + = o |
115-
| + = = . |
116-
| + o o |
117-
+----[SHA256]-----+
118-
+---[RSA 2048]----+
119-
|.*++ o.o. |
120-
|.+B + oo. |
121-
| +++ *+. |
122-
| .o.Oo.+E |
123-
| ++B.S. |
124-
| o * =. |
125-
| + = o |
126-
| + = = . |
127-
| + o o |
6+
<string name="r2d2" hidden="true">🐍😄🍉</string>
7+
<string name="c3po" androidTreatment="false" hidden="true">
8+
+---[RSA 2048]----+
9+
|.*++ o.o. |
10+
|.+B + oo. |
11+
| +++ *+. |
12+
| .o.Oo.+E |
13+
| ++B.S. |
14+
| o * =. |
15+
| + = o |
16+
| + = = . |
17+
| + o o |
12818
+----[SHA256]-----+
12919
</string>
13020
</resources>

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
buildscript {
44
ext.kotlin_version = '1.3.31'
5-
ext.stringcare_version = '2.2'
5+
ext.stringcare_version = '3.0'
66

77
repositories {
88
google()

sample.png

589 KB
Loading

0 commit comments

Comments
 (0)