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 { | |
| implementation 'android.arch.navigation:navigation-fragment:2.3.0-alpha04' | |
| } |
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
| public class MainActivity : AppCompatActivity | |
| { | |
| private Post post; | |
| private ToDo toDo; | |
| protected override async void OnCreate(Bundle savedInstanceState) | |
| { | |
| base.OnCreate(savedInstanceState); | |
| SetContentView(Resource.Layout.activity_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
| public interface IApiService | |
| { | |
| [Get("/posts/1")] | |
| Task<Post> GetPost(); | |
| [Get("/todos/1")] | |
| Task<ToDo> GetToDo(); | |
| } |
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
| public static class NetworkService | |
| { | |
| public static IApiService apiService; | |
| string static baseUrl = "https://jsonplaceholder.typicode.com" | |
| public static IApiService GetApiService() | |
| { | |
| apiService = RestService.For<IApiService>(baseUrl); | |
| return apiService; | |
| } | |
| } |
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
| public class MainActivity : AppCompatActivity | |
| { | |
| protected override async void OnCreate(Bundle savedInstanceState) | |
| { | |
| base.OnCreate(savedInstanceState); | |
| SetContentView(Resource.Layout.activity_main) | |
| var textview = FindViewById<TextView>(Resource.Id.textView); | |
| var apiService = NetworkService.GetApiService(); | |
| await apiService.GetPost() | |
| .ContinueWith(post => |
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
| apply plugin: 'com.android.library' | |
| apply plugin: 'kotlin-android' | |
| apply plugin: 'com.jfrog.bintray' | |
| apply plugin: 'maven-publish' | |
| publishing { | |
| publications { | |
| Production(MavenPublication) { | |
| artifact("$buildDir/outputs/aar/droidils-release.aar") |
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 { | |
| classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' | |
| } |
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
| language: android | |
| jdk: oraclejdk8 | |
| sudo: false | |
| before_cache: | |
| - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | |
| - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ |
NewerOlder