PocketCasts是最知名、功能最强大的播客平台之一,PocketCasts归属于Automattic,后者还拥有WordPress和Tumblr。此次开源的是PocketCasts的移动端应用(iOS和Android)。
构建说明(Android)确保已安装AndroidStudio。在AndroidStudio中,从本地存储库中打开项目。转到工具→设备管理器并创建一个模拟设备。转到运行→编辑配置...并创建一个AndroidApp配置。选择模块“pocketcasts-android.app.main”。运行构建和测试(Android)从命令行构建、安装和测试项目:
$./gradlew:app:assembleDebugProd#assemblethedebug.apk$./gradlew:app:installDebugProd#installthedebug.apktoaconnecteddevice$./gradlew:app:testDebugUnitTest#assemble,installandrununittests$./gradlew:app:connectedDebugAndroidTest#assemble,installandrunAndroidtests目录结构(Android).├──app#Mobileapp├──automotive#Automotiveapp├──modules│├──features││├──account#Createaccountandsigninpages.││├──cartheme#Automotiveresourcesneededfortheaccountpages.││├──discover#Discoversection.││├──filters#Filterssection.││├──navigation#Navigationutilities.││├──player#Fullscreenplayer││├──podcasts#Podcastssection.││├──profile#Profilesection.││├──search#Searchpages.││└──settings#Settingspages.│└──services│├──compose#SharedComposecode.│├──images#Imageresources.│├──localization#ContainsthestringsinEnglishandlocalizedstringsfromGlotPress.│├──model#Thedatabaselogicandentities.Alsotransferobjectsrequiredwhicharen'tstoredinthedatabase.│├──preferences#Storestheuserpreferencesandconfigurationsettings.│├──repositories#Providesaccessingtothedatafromthe'servers'and'model'modules.│├──servers#Providesthenetworkcallstotheservers.TheUIlayershouldaccessthesethroughthe'repositories'module.│├──ui#SharedUIcodeforthe'compose'and'views'modules.Thisincludesthethemes.│├──utils#Utilityclasses.│└──views#ShredOnlytheoldviewscode.设置(iOS)需要安装Bundler:
geminstallbundler
接下来,需要使用此脚本安装CocoaPods和FastLane所需的所有依赖项:
makeinstall_dependencies
外部贡献者如果你是外部贡献者,请运行makeexternal_contributor。之后就应该能够构建和运行该项目。
运行(iOS)打开.xcworkspace文件,选择PocketCasts项目和要在其上运行的模拟器设备,然后点击play按钮。
评论