-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommand_to_build_app_through _command_line.txt
108 lines (66 loc) · 2.5 KB
/
command_to_build_app_through _command_line.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<p> First you need to download sdk tools</p>
android create project -a MainActivity -n naino -k com.example.naino -t android-29 -g -v 5.4.1 -p naino
./gradlew assembleDebug
adb devices
./gradlew installDebug
//./gradlew assembleRelease
//./gradlew assembleRelease --no-daemon
keytool -genkey -v -keystore signing.keystore -alias signing -keyalg RSA -keysize 2048 -validity 10000
keytool -genkeypair -v -keystore signing12.keystore -storepass qwerty -keyalg RSA -keysize 2048 -validity 10000 -alias crimson -dname "CN=CrimsonInsight, OU=SoftwareDeveloper, O=CrimsonInsight, L=Deo, S=Haryana, C=IN"
./gradlew assembleDebug
./gradlew assembleRelease
#####################(__Modify in Code__build.gradle)########################################
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'
}
}
apply plugin: 'android'
// gradle.taskGraph.whenReady{ taskGraph ->
// if(taskGraph.hasTask(':assembleRelease')){
// android.signingConfigs.release.storePassword = "qwerty" // new String(System.console().readPassword("\n Enter keystore password:"))
// android.signingConfigs.release.keyPassword = "qwerty"//new String(System.console().readPassword("\n Enter key password:"))
// }
// }
android {
compileSdkVersion 'android-22'
buildToolsVersion '29.0.2'//'29.0.2'
signingConfigs {
release {
storeFile file("signing.keystore")
storePassword 'qwerty'
keyAlias "signing"
keyPassword 'qwerty'
}
}
buildTypes {
release {
minifyEnabled false
proguardFile getDefaultProguardFile('proguard-android.txt')
signingConfig signingConfigs.release
}
}
}
allprojects {
repositories {
google()
jcenter()
}
}
#####################(__Modify in Code__ /gradle-wrapper.properties)#############################
#Wed Apr 10 15:27:10 PDT 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-5.4.1-all.zip
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="http://schemas.android.com/apk/res-auto">
<string name="app_name"> web2app </string>
<string name="main_activity_title">xyz</string>
<!-- <string name="app_name">MainActivity</string> -->
</resources>