This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //force a resolution | |
| configurations.all { | |
| resolutionStrategy.force 'com.android.support:support-annotations:25.3.0' | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //excluding a module! | |
| androidTestCompile ("com.android.support.test.espresso:espresso-core:$rootProject.espressoVersion") { | |
| exclude group: 'com.google.code.findbugs', module:'jsr305' | |
| } | |
| androidTestCompile ("com.android.support.test.espresso:espresso-contrib:$rootProject.espressoVersion") { | |
| exclude group: 'com.google.code.findbugs', module:'jsr305' | |
| } | |
| androidTestCompile ("com.android.support.test.espresso:espresso-intents:$rootProject.espressoVersion") { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dependencies { | |
| //resolve a dependency | |
| configurations.all { | |
| resolutionStrategy.force 'com.android.support:support-annotations:25.3.0' | |
| resolutionStrategy.force 'com.android.support:support-compat:25.3.0' | |
| } | |
| // App's dependencies, including test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package models | |
| type User struct { | |
| UserName string `json: "username" gorm: "type:TEXT; primary_key; not null"` | |
| Verified bool `json: "verified" gorm: "type : "BOOLEAN" ` | |
| Password string `json: "password" gorm: "type: TEXT"` | |
| Token string `json: "token" sql:"-" gorm:"-" ` | |
| Podcasts []Podcast `json: "podcasts" gorm: "ForeignKey:UserEmail;AssociationForeignKey:UserName"` | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package models | |
| type User struct { | |
| UserName string `json: "username" gorm: "primary_key; type:TEXT"` | |
| Verified bool `json: "verified" gorm: "type : "BOOLEAN" ` | |
| Password string `json: "password" gorm: "type: TEXT"` | |
| Token string `json: "token" sql:"-" gorm:"-" ` | |
| Podcasts []Podcast `json: "podcasts" gorm: "ForeignKey:UserEmail"` | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bytes" | |
| "encoding/json" | |
| "log" | |
| "net/http" | |
| "os" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bytes" | |
| "encoding/json" | |
| "log" | |
| "net/http" | |
| "os" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "net/http" | |
| "os" | |
| ) | |
| func main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Interceptor addHeadersInterceptor = chain -> { | |
| if (tokenInvalid){ | |
| String token = getToken()); //If multiple call stays here blocked. | |
| } | |
| }; | |
| public String getToken() { | |
OlderNewer