File tree Expand file tree Collapse file tree 4 files changed +21
-3
lines changed Expand file tree Collapse file tree 4 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ export default class App extends Component<Props> {
18
18
} ;
19
19
onChangeText = text => {
20
20
const suggestions = getSuggestions ( text . trim ( ) . toLowerCase ( ) ) ;
21
- console . log ( "suggestions" , suggestions ) ;
22
-
23
21
this . setState ( {
24
22
suggestions : suggestions
25
23
} ) ;
Original file line number Diff line number Diff line change @@ -108,6 +108,16 @@ android {
108
108
versionCode 1
109
109
versionName " 1.0"
110
110
}
111
+ signingConfigs {
112
+ release {
113
+ if (project. hasProperty(' MYAPP_RELEASE_STORE_FILE' )) {
114
+ storeFile file(MYAPP_RELEASE_STORE_FILE )
115
+ storePassword MYAPP_RELEASE_STORE_PASSWORD
116
+ keyAlias MYAPP_RELEASE_KEY_ALIAS
117
+ keyPassword MYAPP_RELEASE_KEY_PASSWORD
118
+ }
119
+ }
120
+ }
111
121
splits {
112
122
abi {
113
123
reset()
@@ -120,6 +130,7 @@ android {
120
130
release {
121
131
minifyEnabled enableProguardInReleaseBuilds
122
132
proguardFiles getDefaultProguardFile(" proguard-android.txt" ), " proguard-rules.pro"
133
+ signingConfig signingConfigs. release
123
134
}
124
135
}
125
136
// applicationVariants are e.g. debug, release
Original file line number Diff line number Diff line change 16
16
# This option should only be used with decoupled projects. More details, visit
17
17
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18
18
# org.gradle.parallel=true
19
+
20
+ MYAPP_RELEASE_STORE_FILE =dyw-release-key.keystore
21
+ MYAPP_RELEASE_KEY_ALIAS =dyw-key-alias
22
+ MYAPP_RELEASE_STORE_PASSWORD =6271218
23
+ MYAPP_RELEASE_KEY_PASSWORD =6271218
24
+
Original file line number Diff line number Diff line change 6
6
"start" : " node node_modules/react-native/local-cli/cli.js start" ,
7
7
"test" : " jest" ,
8
8
"run-android" : " react-native run-android" ,
9
- "run-ios" : " react-native run-ios"
9
+ "run-ios" : " react-native run-ios" ,
10
+ "build-android-apk" : " cd android && ./gradlew assembleRelease && cd ../" ,
11
+ "run-android-release" : " react-native run-android --variant=release" ,
12
+ "release-android" : " yarn build-android-apk && yarn run-android-release"
10
13
},
11
14
"dependencies" : {
12
15
"react" : " 16.8.3" ,
You can’t perform that action at this time.
0 commit comments