在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):googlearchive/MobileShoppingAssistant-sample开源软件地址(OpenSource Url):https://github.com/googlearchive/MobileShoppingAssistant-sample开源编程语言(OpenSource Language):Java 64.1%开源软件介绍(OpenSource Introduction):This repository is deprecated and no longer maintained, for endpoint examples, please look at:
Mobile Shopping Assistant - sampleMobile Shopping Assistant demonstrates how to build a mobile backend that will power Android and iOS native applications and expose an API using Google Cloud Endpoints. A tutorial is available on the Google Cloud Platform documentation. AuthorGoogle Cloud Developers Relations. DisclaimerThis sample application is not an official Google product. Google App Engine backend and Android clientProject setup, installation, and configurationThis sample application is designed to work with Android Studio. It was tested with Android Studio 1.1.0, the Google App Engine SDK 1.9.18 and Android SDK 21. For styling purposes, it uses the CheckStyle-IDEA plugin. To install it, go to Preferences > Plugins > Browse Repositories > search for "CheckStyle-IDEA" and "install plugin". Open the project in Android Studio (select the root folder MobileAssistantAndroidAppEngine for the location of the project, as the android client and the backend are combined in one single project). The first time you open it, Android Studio will try to resolve all dependencies using Gradle. When the status bar is no longer indicating Gradle work, verify that both the Android and the Backend configurations are ready. If the Android application configuration is missing, choose Run > Edit Configurations > Click on the + sign > Select Android Application. In the editor, give the configuration a name and associate it with the module "app". If the Backend configuration is missing, choose Run > Edit Configurations > Click on the + sign > Select App Engine DevAppServer. In the editor, give the configuration a name, associate it with the module "backend" and check "synchronize with build.gradle configuration". First, run the backend configuration. This will launch a local dev server on your computer, and also generate all the Google App Engine Endpoints client libraries that will be used by the Android application. Once the backend is running, you can run the Android application in the Emulator. When the application starts, you can notice two things:
Now follow the instructions in MobileAssistantAndroidAppEngine/backend/MobileAssistant-Data/README.md to insert dummy data (Place, Offer and Recommendation objects) inside the local datastore. Once done, access the page at http://localhost:8080/admin/buildsearchindex to build the places index. Now if you hit the "Refresh Store List" button inside the application, the stores should display. Click on them to access the offers and recommendations. DeployingTo deploy on App Engine, you need to create a new project in the Google Cloud Console, and then configure a few credentials in the backend and the Android application.
iOS clientThe Mobile Shopping Assistant iOS Client demonstrates how to build an iOS client that mirrors the functionality of the Android client by leveraging the same Google App Engine backend with the help of Google APIs Client Library for Objective-C. Project setup, installation, and configurationThis sample source code and project is designed to work with Xcode 6.2. The application was tested on iOS 8.2. PrerequisitesFollow the instructions for Google App Engine backend and Android client and deploy the backend to Google App Engine. Note that the Bundle ID for this iOS client is com.google.sample .MobileAssistantIOS. Make sure you have correctly imported sample data to the deployed backend following MobileAssistantAndroidAppEngine/backend/MobileAssistant-Data/README.md. Set up Mobile Assistant iOS Client Xcode ProjectOpen MobileAssistantIOS project in XcodeOpen a new Finder window and navigate to the directory you have extracted the
Mobile Assistant iOS Client. Double click on the Configure Mobile Assistant Backend to Recognize the iOS Client App
Build and Execute the MobileAssistantIOS Project
Take a Closer Look at MobileAssistantIOS Client AppIn
These methods are responsible for making the requests to the Mobile Assistant Backend via the Google APIs Client Library for Objective-C. Optional Reference
Contributing changes
Licensing
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论