File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed
src/main/java/com/github/cshubhamrao/AUtDv2/net Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 14
14
<name >Shubham Rao</name >
15
15
</organization >
16
16
<packaging >jar</packaging >
17
- <version >1.0.0 </version >
17
+ <version >1.0.1 </version >
18
18
19
19
<properties >
20
20
<maven .compiler.source>1.8</maven .compiler.source>
Original file line number Diff line number Diff line change 49
49
*
50
50
* @author Shubham Rao <cshubhamrao@gmail.com>
51
51
*/
52
- public class GDrive {
52
+ class GDrive {
53
53
54
54
private static final Logger logger = Log .logger ;
55
55
Original file line number Diff line number Diff line change 34
34
import java .util .logging .Logger ;
35
35
36
36
/**
37
+ * A "Driver" for all the Google Drive Stuff.
37
38
*
38
39
* @author Shubham Rao <cshubhamrao@gmail.com>
39
40
*/
@@ -46,10 +47,22 @@ public class GoogleDriver {
46
47
47
48
private Credential creds ;
48
49
50
+ /**
51
+ * Spawns a new thread to undertake user authorization.
52
+ *
53
+ */
49
54
public void authorize () {
50
55
new Thread (() -> service = new GDrive ().getDriveService ()).start ();
51
56
}
52
57
58
+ /**
59
+ * Uploads the file to Google Drive.
60
+ *
61
+ * MESSY CODE. FIX THIS.
62
+ *
63
+ * @param localFile File to upload
64
+ * @return
65
+ */
53
66
public String upload (java .io .File localFile ) {
54
67
try {
55
68
if (localFile .length () == 0 ) {
You can’t perform that action at this time.
0 commit comments