File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
sample-app/src/main/java/com/google/secrets_gradle_plugin/sample Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 14
14
15
15
package com.google.secrets_gradle_plugin.sample
16
16
17
+ import android.os.Bundle
18
+ import android.widget.LinearLayout
19
+ import android.widget.TextView
17
20
import androidx.appcompat.app.AppCompatActivity
21
+ import com.google.secrets_plugin.sample.BuildConfig
18
22
19
23
/* *
20
24
* Dummy activity. See build.gradle.kts for sample usage of the plugin.
21
25
*/
22
26
class MainActivity : AppCompatActivity () {
27
+
28
+ override fun onCreate (savedInstanceState : Bundle ? ) {
29
+ super .onCreate(savedInstanceState)
30
+
31
+ val textView = TextView (this ).apply {
32
+ @Suppress(" SetTextI18n" )
33
+ text = " GMP API Key: ${BuildConfig .gmpApiKey} "
34
+ }
35
+ val linearLayout = LinearLayout (this ).apply {
36
+ layoutParams = LinearLayout .LayoutParams (
37
+ LinearLayout .LayoutParams .MATCH_PARENT ,
38
+ LinearLayout .LayoutParams .MATCH_PARENT
39
+ )
40
+ addView(textView)
41
+ }
42
+ setContentView(linearLayout)
43
+ }
23
44
}
You can’t perform that action at this time.
0 commit comments